Characterizing possible failure modes in physics-informed neural networks

Aditi S. Krishnapriyan, Amir Gholami, Shandian Zhe, Robert M. Kirby, Michael W. Mahoney

Introduction

Physics-Informed Neural Networks (PINNs) are often hailed as the future of scientific computing, offering a way to blend empirical data with known physical laws. However, they frequently fail on non-trivial problems. This paper reveals that these failures aren't due to a lack of model "brainpower" (expressivity), but rather a "navigation" problem: the physics-based loss landscape becomes too jagged and complex to optimize. By using curriculum regularization and sequence-to-sequence learning, the authors demonstrate how to overcome these hurdles and reduce error by up to two orders of magnitude.

What Problem Does This Paper Address?

The standard way to build a PINN is to "graft" physical laws onto a neural network by adding the governing equations (like Partial Differential Equations, or PDEs) as a "soft constraint" in the loss function. In theory, the network learns to minimize both the data error and the "physics error."

However, the authors noticed a troubling trend: while PINNs work beautifully on "toy" problems, they often fail spectacularly when the physics gets interesting—such as in systems with high convection (fluid flow) or intense reaction rates.

Error scaling and failure of standard PINNs at high convection (β=30).

The community wasn't sure if this was because the neural networks weren't large enough to represent the solutions, or if the training process itself was fundamentally broken. This paper sets out to diagnose these failure modes and provide a roadmap for fixing them.

Methods

The authors investigate three canonical physical systems: 1D Convection, 1D Reaction, and 1D Reaction-Diffusion. They use a standard 4-layer fully-connected network and the L-BFGS optimizer. To fix the observed failures, they propose two novel training strategies:

  1. Curriculum Regularization: Instead of forcing the NN to solve a difficult PDE from scratch, they start by training it on a "simple" version of the equation (e.g., very low convection). Once the model learns the easy version, they gradually increase the physical coefficients, using the previous weights as a "warm start" for the next, harder stage.
  2. Sequence-to-Sequence (seq2seq) Learning: Standard PINNs try to predict the entire space-time solution ($u(x, t)$ for all $t$) in one go. The authors instead break the time domain into small segments ($\Delta t$). The model predicts the solution for one step, and that output becomes the initial condition for the next step—essentially "marching" through time like a traditional numerical solver.

Key Insights and Ideas

  • Optimization, Not Expressivity: The most important "aha" moment is that the NN architecture is capable of representing the correct solution. The failure happens because the optimizer gets stuck in bad local minima.
  • The Jagged Landscape: By visualizing the loss landscapes, the authors show that as physical coefficients increase, the loss surface transforms from a smooth, easily navigable "bowl" into a chaotic, non-symmetric "mountain range."
  • Soft Constraints are Ill-Conditioned: Adding differential operators to a loss function isn't like adding simple $L_2$ regularization. It introduces complex structures that make the optimization problem numerically ill-conditioned.
  • The Power of "Warm Starts": Curriculum learning works because it keeps the model in a "good" region of the parameter space, preventing it from ever falling into the deep, incorrect local minima that plague vanilla PINN training.

Key Results

  • Massive Error Reduction: In high-convection scenarios ($\beta=30$), vanilla PINNs failed completely with nearly 100% relative error. Curriculum training reduced this error to roughly 2%.
  • Capturing Sharp Features: In reaction-diffusion problems, vanilla PINNs often "smear" the solution, failing to capture sharp transitions.
Standard PINNs fail to capture sharp transitions in reaction-diffusion problems.

The seq2seq approach was able to recover these sharp features with 1-2 orders of magnitude lower error than the standard approach.

  • Stability: The proposed methods showed significantly lower variance across different random seeds, making PINN training much more reliable and reproducible.

Limitations and Future Work

While the results are a major step forward, the authors acknowledge some hurdles:

  • Dimensionality: The experiments were conducted on 1D problems. Scaling curriculum learning and seq2seq "time-marching" to 3D complex geometries may introduce significant computational overhead.
  • Hyperparameter Sensitivity: While these methods are more robust, they still require tuning (e.g., choosing the right $\Delta t$ or the rate of the curriculum progression).
  • Integration with Data: The paper focuses on the "physics-only" or "physics-heavy" regime. Future work could explore how these optimization strategies hold up when large amounts of experimental data are also present.

Summary updated

BibTeX
@inproceedings{krishnapriyan2021characterizing,
  author = {Aditi S. Krishnapriyan and Amir Gholami and Shandian Zhe and Robert M. Kirby and Michael W. Mahoney},
  title = {{Characterizing possible failure modes in physics-informed neural networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=guHxLRttA6Q},
}
Figure