Preconditioning for Physics-Informed Neural Networks

Songming Liu, Chang Su, Jiachen Yao, Zhongkai Hao, Hang Su, Youjia Wu, Jun Zhu · Submission to ICLR 2024 · Rejected

TL;DR

Physics-Informed Neural Networks (PINNs) often fail or stall due to severe optimization pathologies. This paper diagnoses these failures through the lens of classical numerical analysis—specifically, the condition number of the underlying differential equation. By introducing an Incomplete LU (ILU) preconditioner directly into the PINN loss function, the authors dramatically reshape the optimization landscape, speeding up convergence and cutting errors by an order of magnitude across multiple benchmark problems.

What Problem Does This Paper Address?

While PINNs offer an elegant framework for solving partial differential equations (PDEs) by embedding physical residuals into neural network loss functions, they are notoriously difficult to train. Even for moderately complex PDEs (e.g., fluid dynamics, wave propagation, or chaotic systems), gradient descent often hits prolonged plateaus, diverges, or gets trapped in poor local minima.

Prior work has attributed these pathologies to conflicting gradient magnitudes between boundary conditions and residual loss terms. However, even with "hard" boundary constraints, PINNs still frequently fail. This paper tackles the root cause of these optimization failures by establishing a theoretical connection between the ill-conditioning of the differential operator and the training dynamics of PINNs.

Methods

The authors introduce Preconditioned PINNs (PCPINN):

  1. Condition Number as a Diagnostic Metric: The authors define the relative condition number $\text{cond}(\mathcal{P})$ for a boundary value problem. They prove that when $\text{cond}(\mathcal{P})$ is large, tiny optimization errors in the loss translate to massive errors in the network's solution. Furthermore, through local Taylor expansion and Neural Tangent Kernel (NTK) analysis, they prove that lower condition numbers strictly improve convergence rates.
  2. Discrete Loss via Preconditioning:
  3. The PDE domain is discretized onto a mesh (using finite differences or finite elements) into a sparse linear system $A u = b$, which inherently folds in boundary conditions.
  4. The system is preconditioned using Incomplete LU (ILU) factorization: $P = \hat{L}\hat{U} \approx A$.
  5. Instead of minimizing the standard residual $\|A u_\theta - b\|^2$, the network optimizes the preconditioned residual: $$\mathcal{L}^\dagger(\theta) = \| P^{-1}(A u_\theta - b) \|^2 = \| \hat{U}^{-1}\hat{L}^{-1}(A u_\theta - b) \|^2$$
  6. Because $\hat{L}$ and $\hat{U}$ are sparse triangular matrices, computing $P^{-1}r$ is extremely fast via forward and back-substitution, driving the effective condition number close to 1.
  7. No Automatic Differentiation Overhead: Evaluating the operator via sparse matrix multiplication on grid points bypasses high-order automatic differentiation (AD) during backpropagation.

Datasets

The authors evaluated their method on the comprehensive PINNacle benchmark (Hao et al., 2023), covering 18 forward PDE problems across diverse domains:

  • Burgers' equations (1D and 2D)
  • Poisson equations (2D/3D with complex geometries, multi-scale behaviors, and discontinuous sources)
  • Heat equations (varying coefficients and long-time integration)
  • Navier-Stokes (NS) equations (fluid flow in complex geometries)
  • Wave equations (including high-frequency and multi-scale variants)
  • Chaotic systems (Gray-Scott and Kuramoto-Sivashinsky)

(Note: High-dimensional problems from PINNacle were excluded due to the mesh-based nature of the discretization).

Key Insights and Ideas

  • Pathology is an intrinsic PDE property, not just a neural network bug: The authors show that PINN failure is often governed by the Lipschitz constant of the inverse differential operator $\mathcal{F}^{-1}$. If the mathematical problem is ill-conditioned, standard gradient descent cannot reliably find the right parameters without reformulating the objective.
  • Empirical Predictor: Across wave, Helmholtz, and Burgers' equations, the authors observed strong linear correlations between normalized condition numbers and test errors, confirming that condition numbers can directly predict PINN solvability.
  • Reshaping the Loss Surface: Preconditioning eliminates wild gradient oscillations and wide plateaus, turning an ill-conditioned optimization landscape into a well-behaved basin where gradient descent converges rapidly.

Key Results

  • Order-of-Magnitude Improvements: Across 18 benchmark problems, PCPINN achieved state-of-the-art accuracy in most cases, reducing the $L^2$ relative error (L2RE) by an order of magnitude in 7 problems.
  • Solving Previously Unsolvable Tasks: In two challenging cases where all baseline PINNs failed completely ($\approx 100\%$ relative error), PCPINN was the only method to succeed:
  • 2D Multi-Scale Wave: Slashed error from $>100\%$ down to 5.71%.
  • 2D Long-Time Heat: Reduced error from $99.9\%$ down to 21.1%.
  • Computational Efficiency & Scaling: Despite requiring a preconditioning step, computing the ILU factor typically takes under 3 seconds. By bypassing automatic differentiation graph overhead, per-epoch wall-clock time was on par with or faster than vanilla PINN. On large 3D grids, the neural network's runtime scaling curve was markedly flatter than traditional iterative solvers like Preconditioned Conjugate Gradient (PCG).

Limitations and Future Work

  • Mesh Dependency & Dimensionality: Because PCPINN constructs a sparse matrix $A$ over a spatial grid, it inherits the "curse of dimensionality" of classical grid-based schemes (FDM/FEM), making it unsuitable for very high-dimensional PDEs ($d > 4$).
  • Nonlinear & Time-Dependent Complexities: Nonlinear PDEs require extra iterative procedures (e.g., moving nonlinearities to the source term or using Newton-Raphson iterations), which adds implementation and runtime overhead.
  • Preconditioner Quality Trade-off: The ablation study showed that reducing preconditioner precision degrades convergence; completely removing it causes divergence. Selecting optimal drop tolerances remains a problem-dependent tuning choice.

Summary updated

BibTeX
@misc{liu2024preconditioning,
  author = {Songming Liu and Chang Su and Jiachen Yao and Zhongkai Hao and Hang Su and Youjia Wu and Jun Zhu},
  title = {{Preconditioning for Physics-Informed Neural Networks}},
  year = {2024},
  eprint = {2402.00531},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.00531},
}
Figure