NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Efficient Error Certification for Physics-Informed Neural Networks

Francisco Eiras, Adel Bibi, Rudy R Bunel, Krishnamurthy Dj Dvijotham, Philip Torr, M. Pawan Kumar

TL;DR

This paper introduces $\partial$-CROWN, the first framework capable of providing formal "worst-case" error guarantees for Physics-Informed Neural Networks (PINNs) across their entire continuous domain. By extending neural network verification techniques to handle partial derivatives, the authors move beyond unreliable point-wise testing to ensure PINNs are truly safe for real-world scientific and engineering applications.

What Problem Does This Paper Address?

Physics-Informed Neural Networks (PINNs) have become a popular tool for solving Partial Differential Equations (PDEs) because they are significantly faster than traditional numerical solvers. However, they have a major "trust" problem.

Currently, researchers evaluate PINNs by checking the error at a finite set of random points (e.g., using Monte Carlo sampling). The authors demonstrate why this is dangerous: in one example (the Diffusion-Sorption equation), a PINN appeared highly accurate when tested at $10^4$ points, but testing at $10^6$ points revealed a massive error spike—the residual error jumped from roughly $0.001$ to over $21.0$.

In safety-critical fields like groundwater modeling or structural engineering, "usually accurate" isn't good enough. We need error certification: a guarantee that the error remains below a certain tolerance at every possible point in the domain, not just the ones we happened to sample.

Methods

The authors build on CROWN, a well-established framework for formal verification of neural networks. Standard CROWN works by "relaxing" non-linear activations (like ReLU or Tanh) into linear upper and lower bounds, which can then be propagated through the network to find the maximum possible output.

Architecture of the $\partial$-CROWN framework

The core challenge for PINNs is that the "output" we care about isn't just the network's prediction ($u_\theta$), but the PDE residual ($f_\theta$), which involves complex combinations of the network's partial derivatives (Jacobians and Hessians). To handle this, the paper introduces:

  1. $\partial$-CROWN: A hybrid propagation scheme that computes linear bounds for partial derivatives. It uses a clever mix of back-propagation (to find derivative expressions) and forward substitution (to maintain efficiency). This keeps the computational complexity at $O(L)$ relative to network depth, rather than the $O(L^2)$ required by naive methods.
  2. McCormick Envelopes: Used to bound non-linear interaction terms (like $u \cdot \partial_x u$) that frequently appear in PDEs.
  3. Greedy Input Branching: Since linear relaxations get "loose" over large areas, the algorithm recursively splits the input domain into smaller sub-regions, focusing its computational effort on areas where the error bounds are highest.

Datasets

The framework was evaluated on four classic and challenging PDE benchmarks:

  • Burgers’ Equation: A fundamental 1D equation for fluid dynamics and gas dynamics.
  • Schrödinger’s Equation: A staple of quantum mechanics.
  • Allan-Cahn Equation: Used to model phase separation in multi-component alloys.
  • Diffusion-Sorption Equation: A real-world application modeling groundwater contaminant transport.

The authors used pre-trained models from existing literature to show that $\partial$-CROWN works as a "post-training" tool on standard PINN architectures.

Key Insights and Ideas

  • The Sampling Trap: The most striking insight is the empirical proof that high-density sampling is not a substitute for formal verification. PINNs can "fail" in tiny regions of the domain that random sampling is likely to miss.
  • Derivatives as Layers: The authors treat the computation of derivatives as a depth-wise extension of the original network. This allows them to apply verification logic to the physics of the network, not just its raw outputs.
  • Adversarial Training Helps Certification: The paper finds that PINNs trained using "Physics-Informed Adversarial Training" (PIAT) are not only more accurate but also much faster to certify. This suggests that making a model robust to worst-case inputs during training makes it easier to prove that robustness later.

Key Results

  • Tightness: The certified upper bounds produced by $\partial$-CROWN are remarkably close to the empirical lower bounds found via massive sampling, proving the framework isn't just "safe" but also precise.
Comparison of empirical vs. certified error bounds
  • Failure Identification: As shown in the results table above, $\partial$-CROWN successfully "red-flagged" the Diffusion-Sorption PINN. It identified that the model had failed to learn a continuous valid solution (certifying an error bound of $21.34$), despite looking perfectly fine under standard $10^4$ Monte Carlo sampling (which estimated an error of only $1.10 \times 10^{-3}$).
  • Efficiency: The hybrid propagation strategy achieved significant speedups over previous state-of-the-art verification methods while providing tighter bounds.
  • Scalability: The method was able to handle 2nd-order PDEs and non-linear terms across millions of sub-domains within reasonable timeframes (ranging from minutes to hours depending on the complexity).

Limitations and Future Work

  • Computational Cost: While efficient, residual verification still requires a high number of "branchings" (splitting the domain), which can be slow for complex 3D problems or very high-order PDEs.
  • Depth Sensitivity: Like most formal verification tools, the bounds tend to get looser as the neural network gets deeper.
  • Higher-Order PDEs: The current work focuses on 1st and 2nd-order derivatives. Extending this to 3rd or 4th-order equations (like the Kuramoto-Sivashinsky equation) would require even more complex derivative bounding logic.
  • Residual vs. Solution Error: Achieving a low residual error is a necessary condition for a good PINN, but it doesn't always perfectly guarantee a low solution error (the difference between the prediction and the true physics). The authors suggest future work should focus on formally linking these two measures for specific classes of PDEs.

Summary updated

BibTeX
@inproceedings{eiras2024efficient,
  author = {Francisco Eiras and Adel Bibi and Rudy R Bunel and Krishnamurthy Dj Dvijotham and Philip Torr and M. Pawan Kumar},
  title = {{Efficient Error Certification for Physics-Informed Neural Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=5t4V7Q6lmz},
}
Figure