PINNsFailureRegion Localization and Refinement through White-box AdversarialAttack
Shengzhu Shi, Yao Li, Zhichang Guo, Boying Wu, Yang Zhao
TL;DR
This work introduces WbAR, a white-box adversarial attack refinement strategy for physics-informed neural networks (PINNs), designed to locate and refine regions where PDE solutions fail. By performing gradient-guided adversarial sampling via PINN-PGD and iteratively retraining, WbAR focuses training on high-residual areas, capturing complex features such as multi-scale behavior and sharp or oscillatory solutions. The authors prove that adversarial search can outperform random walks and derive an explicit bound on the generalization error under WbAR, validating the method theoretically. Extensive numerical experiments across 2D and high-dimensional Poisson equations, Burgers’ equation, diffusion, Allen–Cahn, and multiscale problems demonstrate that WbAR robustly locates failure regions and achieves superior accuracy compared with baseline sampling strategies, highlighting its potential as a general tool for solving complex PDEs with PINNs.
Abstract
Physics-informed neural networks (PINNs) have shown great promise in solving partial differential equations (PDEs). However, vanilla PINNs often face challenges when solving complex PDEs, especially those involving multi-scale behaviors or solutions with sharp or oscillatory characteristics. To precisely and adaptively locate the critical regions that fail in the solving process we propose a sampling strategy grounded in white-box adversarial attacks, referred to as WbAR. WbAR search for failure regions in the direction of the loss gradient, thus directly locating the most critical positions. WbAR generates adversarial samples in a random walk manner and iteratively refines PINNs to guide the model's focus towards dynamically updated critical regions during training. We implement WbAR to the elliptic equation with multi-scale coefficients, Poisson equation with multi-peak solutions, high-dimensional Poisson equations, and Burgers equation with sharp solutions. The results demonstrate that WbAR can effectively locate and reduce failure regions. Moreover, WbAR is suitable for solving complex PDEs, since locating failure regions through adversarial attacks is independent of the size of failure regions or the complexity of the distribution.
