An operator preconditioning perspective on training in physics-informed machine learning

Tim De Ryck, Florent Bonnet, Siddhartha Mishra, Emmanuel de Bezenac

TL;DR

Training Physics-Informed Neural Networks (PINNs) is notoriously difficult because the underlying differential operators are often "ill-conditioned." This paper proves that training speed is governed by the Hermitian square of the PDE's operator ($D^*D$). By applying preconditioning techniques to this operator, we can transform slow, failing training processes into fast, exponentially converging ones.

The Challenge with PINNs

Physics-Informed Neural Networks (PINNs) have become a go-to tool for solving Partial Differential Equations (PDEs) by embedding physical laws directly into a neural network's loss function. However, they are famously "stiff" and difficult to train. Researchers often find that PINNs converge slowly, get stuck in local minima, or fail entirely on seemingly simple problems like high-frequency Poisson equations or advection.

While previous studies blamed non-convex loss landscapes or the "spectral bias" of neural networks, this paper identifies a more fundamental mathematical culprit: operator conditioning. The authors argue that the training dynamics of PINNs are intrinsically tied to the spectral properties of the differential operator defining the PDE. If that operator is ill-conditioned—meaning its eigenvalues are spread across many orders of magnitude—gradient descent will struggle to find the solution, regardless of the network architecture.

A Mathematical Perspective: Operator Preconditioning

The authors bridge the gap between numerical analysis and machine learning by analyzing PINN training through the lens of operator preconditioning.

  1. Linearized Dynamics: They analyze training in the "lazy" regime (Neural Tangent Kernel or NTK regime), where the network behaves like a linear model, deriving a simplified gradient descent update rule.
  2. The Condition Number Connection: They prove that the convergence rate of gradient descent is determined by the condition number of a specific matrix $\mathbb{A}$, which is derived from the PDE's differential operator $D$.
  3. The Hermitian Square: A key theoretical contribution links the training matrix to the Hermitian square ($A = D^*D$) of the PDE operator. For example, if the PDE involves a Laplacian ($\Delta$), the training difficulty is tied to the bi-Laplacian ($\Delta^2$).
  4. Preconditioning Strategies: To fix ill-conditioning, the authors propose several strategies:
  5. Feature Rescaling: Rescaling basis functions (like Fourier features) based on the eigenvalues of the operator.
  6. Optimal Weighting ($\lambda$): Finding the best balance between the PDE residual loss and boundary condition loss to minimize the condition number.
  7. Direct Inversion: For MLPs, they experiment with preconditioning the gradient by multiplying it with the (regularized) inverse of the matrix $\mathbb{A}$.

Key Insights and Results

By viewing PINN training as an iterative solver for an operator equation, we can borrow decades of wisdom from numerical analysis. Preconditioning isn't just a "trick"; it's a mathematical necessity for these types of operators.

  • The $K^4$ Penalty: For the Poisson equation, the authors show that the condition number grows as $K^4$ (where $K$ is the frequency). This explains why PINNs struggle so much with high-frequency components—the "stiffness" of the problem increases quartically with complexity.
  • Why "Hard" BCs Help: Imposing boundary conditions (BCs) exactly ("hard" BCs) rather than as a loss term ("soft" BCs) naturally improves the condition number of the system, explaining why this common empirical trick works so well.

Exponential Speedup and Condition Number Stability

In the Poisson and Helmholtz cases, preconditioned Fourier models achieved convergence to errors of $10^{-10}$ within 100 epochs, while unpreconditioned models stalled at errors around $10^{-2}$ or $10^{-3}$ even after 200 epochs. For preconditioned models, the condition number remains nearly constant ($O(1)$) as the problem complexity increases, whereas it explodes for standard models.

Impact of preconditioning on condition number and loss for Fourier features

Solving the Advection "Failure Mode"

Standard PINNs notoriously fail on advection problems when the speed $\beta$ is high. The authors show that their preconditioned models remain stable and accurate even at high speeds where standard approaches fail to converge.

Impact of preconditioning on condition number and loss for the advection equation

Limitations and Future Work

  • Computational Cost: Preconditioning MLPs via direct inversion of the matrix $\mathbb{A}$ is computationally expensive ($O(n^3)$ where $n$ is the number of parameters). While it proves the theory, it may not be practical for very large networks without further optimization.
  • Linear vs. Nonlinear: The rigorous analysis focuses on linear PDEs. While the authors show empirical success on nonlinear-style training with MLPs, a full theoretical extension to nonlinear PDEs (like Navier-Stokes) remains an open challenge.
  • Universal Preconditioners: There is no "one-size-fits-all" preconditioner yet; the strategy must be somewhat tailored to the specific differential operator of the PDE being solved.

Summary updated

BibTeX
@inproceedings{ryck2024operator,
  author = {Tim De Ryck and Florent Bonnet and Siddhartha Mishra and Emmanuel de Bezenac},
  title = {{An operator preconditioning perspective on training in physics-informed machine learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=WWlxFtR5sV},
}
Figure