Preconditioning for Physics-Informed Neural Networks

Songming Liu, Chang Su, Jiachen Yao, Zhongkai Hao, Hang Su, Youjia Wu, Jun Zhu · DOI

Abstract

Physics-Informed Neural Networks (PINNs) offer a mesh-free approach to solving partial differential equations (PDEs) but often suffer from training instabilities and poor convergence. This paper identifies the ill-conditioning of the PDE operator as a fundamental source of these "training pathologies." By integrating classical numerical preconditioning techniques—specifically Incomplete LU factorization derived from finite difference discretizations—into the PINN framework, we introduce the Preconditioned PINN (PCPINN). Our approach significantly smooths the optimization landscape, leading to order-of-magnitude reductions in prediction error and enabling the solution of complex problems previously considered "unsolvable" by standard PINNs.

Introduction

Physics-Informed Neural Networks (PINNs) have emerged as a versatile tool for scientific machine learning, leveraging the universal approximation capabilities of neural networks to solve PDEs without the rigid constraints of traditional mesh-based solvers. Despite their promise, PINNs frequently encounter significant training hurdles, such as long plateaus in the loss function or divergent oscillations. While previous attempts to address these issues focused on balancing loss terms (e.g., PDE residuals vs. boundary conditions), this work argues that the root cause lies in the inherent ill-conditioning of the underlying PDE operator.

The Role of Ill-Conditioning

In classical numerical analysis, the condition number of a linear system measures how sensitive the solution is to perturbations in the input. A high condition number indicates an unstable problem. We extend this concept to the deep learning regime, demonstrating through Neural Tangent Kernel (NTK) theory that an ill-conditioned PDE translates into a "rugged" and difficult-to-navigate loss landscape for neural networks.

Our theoretical analysis establishes an Error Control Corollary: for ill-conditioned problems, a low training loss does not necessarily guarantee a low prediction error. This discrepancy explains why standard PINNs may appear to converge in terms of loss while failing to capture the true physical solution.

Figure 6: Convergence dynamics across varying condition numbers. Higher condition numbers (red) correlate with slower convergence and higher residual errors.

The Preconditioned PINN (PCPINN) Algorithm

To mitigate the effects of ill-conditioning, we propose the PCPINN framework, which adapts classical preconditioning strategies for neural network training. The process involves:

  1. Discretization: The PDE is briefly discretized using a standard method, such as the Finite Difference Method (FDM), to obtain a sparse system matrix $A$.
  2. Preconditioner Construction: We apply Incomplete LU (ILU) factorization to $A$ to find an approximate inverse, or preconditioner matrix $P$.
  3. Preconditioned Training: The PINN is trained by minimizing the preconditioned residual: $L = \|P^{-1}(Au_\theta - b)\|^2$.

This transformation effectively "flattens" the optimization landscape, bringing the effective condition number closer to unity and allowing gradient-based optimizers to converge more efficiently.

Experimental Results

We evaluated PCPINN against the PINNacle benchmark, which encompasses 18 forward and 2 inverse PDE problems, including the Burgers’, Poisson, Heat, Navier-Stokes, and Wave equations.

Convergence and Accuracy

PCPINN demonstrates superior performance across the benchmark. In 7 out of 18 problems, it reduced the $L^2$ relative error by over an order of magnitude compared to state-of-the-art baselines like MultiAdam, LAAF, and NTK-based weighting. Notably, for complex 3D Poisson equations with intricate geometries where standard PINNs failed completely (100% error), PCPINN achieved errors below 25%.

Figure 4: (a) Convergence dynamics showing PCPINN's rapid and stable error reduction compared to other methods. (b) Visualization of the error landscape: the standard PINN landscape (left) is rugged, while the preconditioned landscape (right) is smooth and funnel-like.

Optimization Landscape

Visualizing the loss landscape reveals the mechanism behind PCPINN's success. As shown in Figure 4b, the standard PINN landscape is characterized by numerous local minima and sharp gradients. In contrast, the preconditioned landscape is significantly smoother, acting like a funnel that guides the optimization process directly toward the global minimum. This leads to what we term "superexponential" convergence in several cases.

Discussion and Future Work

While PCPINN offers a powerful solution to training pathologies, it introduces a dependency on a mesh for the initial discretization step. This mesh-dependency is manageable for 1D to 4D problems, where the preconditioning step typically takes less than 3 seconds. However, for high-dimensional PDEs ($d > 10$), the "curse of dimensionality" makes traditional discretization computationally expensive.

Future research will explore "mesh-free" preconditioning, potentially using auxiliary neural networks to learn the preconditioner $P$. This would preserve the mesh-free advantage of PINNs while retaining the stability and accuracy gains of preconditioning.

Conclusion

By revisiting classical numerical principles, we have identified ill-conditioning as a primary bottleneck in PINN training. The proposed PCPINN framework provides a robust and efficient remedy, transforming the difficult optimization task into a well-behaved problem. This work bridges the gap between traditional scientific computing and modern deep learning, paving the way for more reliable and accurate neural PDE solvers.

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