Self-Adaptive Physics-Informed Neural Networks using a Soft Attention Mechanism

09/07/2020
by   Levi McClenny, et al.
0

Physics-Informed Neural Networks (PINNs) have emerged recently as a promising application of deep neural networks to the numerical solution of nonlinear partial differential equations (PDEs). However, the original PINN algorithm is known to suffer from stability and accuracy problems in cases where the solution has sharp spatio-temporal transitions. These stiff PDEs require an unreasonably large number of collocation points to be solved accurately. It has been recognized that adaptive procedures are needed to force the neural network to fit accurately the stubborn spots in the solution of stiff PDEs. To accomplish this, previous approaches have used fixed weights hard-coded over regions of the solution deemed to be important. In this paper, we propose a fundamentally new method to train PINNs adaptively, where the adaptation weights are fully trainable, so the neural network learns by itself which regions of the solution are difficult and is forced to focus on them, which is reminiscent of soft multiplicative-mask attention mechanism used in computer vision. The basic idea behind these Self-Adaptive PINNs is to make the weights increase where the corresponding loss is higher, which is accomplished by training the network to simultaneously minimize the losses and maximize the weights, i.e., to find a saddle point in the cost surface. We show that this is formally equivalent to solving a PDE-constrained optimization problem using a penalty-based method, though in a way where the monotonically-nondecreasing penalty coefficients are trainable. Numerical experiments with an Allen-Cahn stiff PDE, the Self-Adaptive PINN outperformed other state-of-the-art PINN algorithms in L2 error by a wide margin, while using a smaller number of training epochs. An Appendix contains additional results with Burger's and Helmholtz PDEs, which confirmed the trends observed in the Allen-Cahn experiments.

READ FULL TEXT

page 7

page 8

page 9

page 10

page 11

research
03/28/2023

Adaptive trajectories sampling for solving PDEs with deep learning methods

In this paper, we propose a new adaptive technique, named adaptive traje...
research
03/19/2021

A Physics-Informed Neural Network Framework For Partial Differential Equations on 3D Surfaces: Time-Dependent Problems

In this paper, we show a physics-informed neural network solver for the ...
research
05/18/2022

Revisiting PINNs: Generative Adversarial Physics-informed Neural Networks and Point-weighting Method

Physics-informed neural networks (PINNs) provide a deep learning framewo...
research
04/29/2021

Adversarial Multi-task Learning Enhanced Physics-informed Neural Networks for Solving Partial Differential Equations

Recently, researchers have utilized neural networks to accurately solve ...
research
04/29/2022

AL-PINNs: Augmented Lagrangian relaxation method for Physics-Informed Neural Networks

Physics-Informed Neural Networks (PINNs) has become a prominent applicat...
research
04/11/2022

Improved Training of Physics-Informed Neural Networks with Model Ensembles

Learning the solution of partial differential equations (PDEs) with a ne...
research
06/28/2023

Separable Physics-Informed Neural Networks

Physics-informed neural networks (PINNs) have recently emerged as promis...

Please sign up or login with your details

Forgot password? Click here to reset