Approximate Bayesian Neural Operators: Uncertainty Quantification for Parametric PDEs

Emilia Magnani, Nicholas Krämer, Runa Eschenhagen, Lorenzo Rosasco, Philipp Hennig

Neural operators have emerged as a powerful tool for scientific computing, acting as "foundation models" for physics by learning to solve entire families of partial differential equations (PDEs) at once. However, like most deep learning architectures, they are typically "black boxes" that provide a single answer without any indication of how much they trust that answer. In a new paper published in Transactions on Machine Learning Research, Emilia Magnani and her colleagues introduce a framework to change that, bringing structured uncertainty quantification (UQ) to the world of neural operators.

The Challenge of Uncertainty in Physics-AI

Partial Differential Equations (PDEs) describe fundamental physical phenomena, from aerodynamics to thermal management. While Neural Operators (NOs) significantly accelerate these simulations by learning the mapping from PDE parameters to solutions, they can make significant errors. These errors are particularly prevalent when models encounter "out-of-distribution" data or complex multiscale structures. Without reliable UQ, these models cannot be safely deployed in high-stakes engineering applications where failure could lead to catastrophic consequences.

A Two-Tiered Bayesian Approach

The authors address UQ by bridging classical mathematical physics with modern deep learning through two distinct stages:

1. The "Shallow" Case: Gaussian Processes

The researchers demonstrate that a single-layer neural operator is mathematically equivalent to a Green’s function integral. By treating the learning of this kernel as a Gaussian Process (GP) regression problem with functional observations, they derive an exact analytical Bayesian solution for linear PDEs. This provides a rigorous theoretical foundation for UQ in operator learning.

2. The "Deep" Case: Laplace Approximation

For multi-layer Graph Neural Operators (GNOs), exact inference is computationally intractable. The authors instead employ a Last-Layer Laplace Approximation. By approximating the posterior distribution of the final layer's weights as a Gaussian post-hoc, they enable structured uncertainty estimates for existing pre-trained models without requiring expensive retraining from scratch.

Experimental Results and Insights

The framework was evaluated across several benchmarks, including 1D Dirichlet problems, 2D Darcy Flow, and the APEbench suite (Burgers’, Hyper-diffusion, and Kuramoto–Sivashinsky equations).

Comprehensive view of the 2D Darcy flow benchmark, showing the mapping from right-hand side functions to 2D and 1D solution spaces for varying parameters $\lambda_0$.

Key findings include:

  • Structured Error Detection: Unlike simple global error bounds, this method identifies where in the spatial domain a prediction is likely to be unreliable, such as near boundaries or sharp physical transitions.
  • Artifact Identification: In high-data regimes, the Bayesian GNO successfully flagged subtle model artifacts caused by ReLU activations—errors that are often invisible to human inspection but clearly captured by the predictive standard deviation.
  • Computational Efficiency: The Last-Layer Laplace method matched or exceeded the performance of "Deep Ensembles" while being significantly cheaper to compute, as it does not require training multiple independent models.
  • Resolution Agnosticism: Because UQ is modeled in the operator's parameter space, the uncertainty estimates remain valid across different grid resolutions at test time.

Limitations and Future Directions

While promising, the approach currently focuses on the last layer, potentially missing uncertainties from earlier nonlinear transformations. Additionally, the method requires tuning hyperparameters like prior precision and assumes a locally quadratic loss surface. Future research will explore joint hyperparameter optimization and moving beyond the last-layer limitation to further enhance the reliability of neural PDE solvers.

Summary updated

BibTeX
@article{magnani2025approximate,
  author = {Emilia Magnani and Nicholas Krämer and Runa Eschenhagen and Lorenzo Rosasco and Philipp Hennig},
  title = {{Approximate Bayesian Neural Operators: Uncertainty Quantification for Parametric PDEs}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2025},
  url = {https://openreview.net/forum?id=DoZG167fwC},
}
Figure