Understanding and mitigating gradient pathologies in physics-informed neural networks

Sifan Wang, Yujun Teng, Paris Perdikaris
1/13/2020
cs.LGmath.NAstat.ML
survey

Official code: PredictiveIntelligenceLab/GradientPathologiesPINNs (275 stars, Python, last commit 2021-10-14).

Abstract

The widespread use of neural networks across different scientific domains often involves constraining them to satisfy certain symmetries, conservation laws, or other domain knowledge. Such constraints are often imposed as soft penalties during model training and effectively act as domain-specific regularizers of the empirical risk loss.

Show full abstract

Physics-informed neural networks is an example of this philosophy in which the outputs of deep neural networks are constrained to approximately satisfy a given set of partial differential equations. In this work we review recent advances in scientific machine learning with a specific focus on the effectiveness of physics-informed neural networks in predicting outcomes of physical systems and discovering hidden physics from noisy data. We will also identify and analyze a fundamental mode of failure of such approaches that is related to numerical stiffness leading to unbalanced back-propagated gradients during model training. To address this limitation we present a learning rate annealing algorithm that utilizes gradient statistics during model training to balance the interplay between different terms in composite loss functions. We also propose a novel neural network architecture that is more resilient to such gradient pathologies. Taken together, our developments provide new insights into the training of constrained neural networks and consistently improve the predictive accuracy of physics-informed neural networks by a factor of 50-100x across a range of problems in computational physics. All code and data accompanying this manuscript are publicly available at \url{https://github.com/PredictiveIntelligenceLab/GradientPathologiesPINNs}.

View on arXivView PDF

Code Implementations(1)

27555PythonJan 13, 20205 years ago

Similar Papers

Cite this paper

@article{wang2020understanding,
  title  = {Understanding and mitigating gradient pathologies in physics-informed neural networks},
  author = {Sifan Wang and Yujun Teng and Paris Perdikaris},
  year   = {2020},
  eprint = {2001.04536},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2001.04536}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2001.04536.svg)](https://codeofpaper.com/paper/2001.04536)

Discussion