Residual-based error bound for physics-informed neural networks

Shuheng Liu, Xiyue Huang, Pavlos ProtopapasUAI 2023

Introduction

Physics-Informed Neural Networks (PINNs) have revolutionized the solution of differential equations (DEs) by integrating physical laws directly into the neural network's loss function. Despite their flexibility, PINNs have faced skepticism in high-stakes engineering due to a lack of rigorous error guarantees. Unlike traditional methods like the Finite Element Method (FEM), which offer well-defined error bounds, PINNs often operate as "black boxes." This research addresses this critical gap by introducing a suite of algorithms that derive provable error bounds from the network's residual.

Bridging the Gap: From Residual to Error

The fundamental challenge in PINN verification is that a low residual $r$ (how well the network satisfies the DE) does not automatically guarantee a low approximation error $\eta$ (the distance from the true solution). By analyzing the differential operator's structure, the authors demonstrate that the error $\eta = u - v$ (where $u$ is the network output and $v$ is the exact solution) itself satisfies a differential equation driven by the residual $r$.

The paper introduces six algorithms tailored to different equation types:

  • Linear ODEs: Utilizing characteristic roots to define inverse operators.
  • Systems of ODEs: Extending bounds to multi-variable systems via Jordan canonical forms.
  • Nonlinear ODEs: Applying perturbation theory to decompose nonlinear problems into a hierarchy of linear ones.
  • First-Order PDEs: Using the method of characteristics to map spatial problems onto ODE trajectories.

Performance and Tightness

A key contribution is the distinction between "loose" and "tight" bounds. While loose bounds are computationally simpler and suitable for stable systems, tight bounds utilize numerical integration to provide a much more accurate estimate of the actual error.

Comparison of loose and tight error bounds across different linear ODE profiles. The absolute error |η| consistently remains below the calculated bounds.

As shown in the figure above, the "Tight" bound (Algorithm 2) tracks the true error significantly more closely than the "Loose" bound (Algorithm 1), particularly as the temporal domain increases. Crucially, in all tested scenarios—including stable, semi-stable, and unstable systems—the absolute error $|\eta|$ remained strictly below the calculated bound $\mathcal{B}(t)$.

Handling Nonlinearity

The framework's robustness is further demonstrated in nonlinear contexts, such as the Duffing oscillator. By employing a perturbation-based approach, the authors successfully bound the error for various levels of nonlinearity ($\epsilon$).

Error bounds for the nonlinear Duffing equation across a range of nonlinearity parameters ε. The bounds successfully encapsulate the absolute error in all cases.

This approach allows PINNs to be used with a "safety certificate." Researchers can monitor these bounds during training to establish rigorous stopping criteria, ensuring that the guaranteed error falls below a required threshold before deployment.

Conclusion and Future Outlook

This work provides a foundational step toward making PINNs a reliable tool for scientific computing. By providing mathematical guarantees independent of network architecture or training hyperparameters, the proposed algorithms move PINNs closer to the reliability standards of classical numerical methods. Future research aims to extend these bounds to high-order nonlinear PDEs, such as the Navier-Stokes equations, and to stochastic systems.

Summary updated

BibTeX
@inproceedings{liu2023residual,
  author = {Shuheng Liu and Xiyue Huang and Pavlos Protopapas},
  title = {{Residual-based error bound for physics-informed neural networks}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2023},
}
Figure