Neural network surrogates with uncertainty quantification for inverse problems in partial differential equations

Christian Jimenez-Beltran, Aretha L. Teckentrup, Antonio Vergari, Konstantinos C. ZygalakisarXiv 2026

TL;DR

The paper introduces DeepGaLA (Deep Galerkin via Laplace Approximation), a neural-network surrogate model that solves parametric partial differential equations (PDEs) while providing reliable uncertainty quantification. By combining the Deep Galerkin Method with a lightweight Bayesian approach, DeepGaLA matches the accuracy of traditional Gaussian Process surrogates but scales much better to high-dimensional parameter spaces and handles nonlinear PDEs.

What Problem Does This Paper Address?

Many problems in science and engineering require solving inverse problems—inferring hidden system parameters (like underground permeability or fluid velocity) from noisy, incomplete physical observations. In a Bayesian framework, this requires running Markov chain Monte Carlo (MCMC) algorithms, which evaluate the system's likelihood millions of times. Because each evaluation requires solving a complex PDE numerically, the computational cost is often prohibitively high.

Surrogate models, like Gaussian Processes (GPs), can speed up this process by mimicking the PDE solver. However, GPs suffer from the curse of dimensionality, scaling poorly as parameter dimensions grow. Neural networks scale better but are notoriously overconfident and lack built-in uncertainty quantification (UQ), making them unreliable when training data is scarce. This paper bridges the gap by creating a fast, neural surrogate that actually knows what it doesn't know.

Methods

The authors propose DeepGaLA, which integrates physics-informed deep learning with classical Bayesian statistics:

  1. Deep Galerkin Method (DGM): The base architecture uses a neural network trained on random collocation points within the PDE domain, embedding the physical equations directly into the loss function.
  2. Last-Layer Laplace Approximation: To avoid the massive computational cost of making a full neural network Bayesian, the authors randomize only the weights of the final layer. After finding the Maximum A Posteriori (MAP) estimate, they fit a local Gaussian distribution around it using a Generalized Gauss-Newton (GGN) approximation of the Hessian matrix.
  3. Mean vs. Marginal Posteriors: DeepGaLA can generate both mean predictions (deterministic) and marginal predictions (which bake the surrogate's own uncertainty into the likelihood function to prevent overconfident, incorrect inferences).
  4. DA-MCMC Diagnostic: The authors introduce a short run of Delayed-Acceptance MCMC as a cheap diagnostic tool. It computes an acceptance metric ($\alpha_{val}$) to validate how close the surrogate's posterior is to the true posterior without needing a full, expensive MCMC run on the exact solver.

Datasets

The method was evaluated using synthetic data generated from three distinct physical systems:

  • 1D Elliptic Boundary Value Problem: A classic Darcy flow variant used to model fluid flow through porous media, parameterized via a Karhunen–Loève (KL) expansion.
  • 2D Elliptic Inverse Problem: An extension of the fluid flow problem into two dimensions, testing higher parameter dimensions ($d_\theta$ up to 5).
  • 2D Incompressible Navier-Stokes Equations: A highly nonlinear, time-dependent fluid dynamics problem formulated in vorticity-stream function form, serving as a benchmark for complex, non-linear settings.

Key Insights and Ideas

  • The Last-Layer Trick Works: Computing the Hessian matrix for a full neural network scales quadratically with the number of parameters, making standard Laplace approximations intractable. Restricting the uncertainty to the last layer provides high-quality UQ at a fraction of the cost.
  • Marginalization Saves Low-Data Regimes: When training data is limited, standard neural networks yield highly overconfident, incorrect posteriors. DeepGaLA’s marginal approximation widens the posterior distribution to safely reflect this lack of data, preventing the MCMC chain from getting stuck in wrong solutions.
  • Constant Online Evaluation Cost: Unlike Gaussian Processes, where calculating variance scales cubically ($O(N^3)$) with the number of training points $N$, DeepGaLA’s online evaluation time is completely independent of the training set size. It is driven entirely by the fixed network architecture.

Key Results

  • Dimension-Independent Speed: In the 1D and 2D elliptic problems, DeepGaLA maintained a near-constant likelihood evaluation time (~0.22 ms) as the parameter dimension increased from 2 to 5. In contrast, the Physics-Informed Gaussian Process (PIGP) slowed down as dimensions grew.
  • Comparable Accuracy to GPs: In high-data regimes, DeepGaLA achieved posterior approximation accuracy ($\alpha_{val} > 95\%$) comparable to well-established PIGP frameworks.
  • Nonlinear Capability: DeepGaLA successfully performed UQ on the nonlinear Navier-Stokes equations—a task where traditional linear PIGP frameworks inherently fail.

Limitations and Future Work

  • Last-Layer Restriction: Because uncertainty is only captured in the final layer, the UQ alignment isn't perfect. The authors note that a fully Bayesian neural network could yield superior uncertainty estimates, though it would drastically increase computational overhead.
  • Optimization Sensitivities: Jointly optimizing the hyperparameters ($\sigma^2_{dG}$ and $\gamma$) can cause the uncertainty estimates to shrink too quickly. The authors had to manually fix $\sigma^2_{dG} = 1$ to stabilize the UQ.
  • Lack of Theoretical Guarantees: While the paper provides convergence proofs for the DA-MCMC diagnostic metric, there is currently no theoretical framework proving how the DeepGaLA covariance matrix behaves or converges as the network size approaches infinity.

Summary updated

BibTeX
@misc{jimenezbeltran2026neural,
  author = {Christian Jimenez-Beltran and Aretha L. Teckentrup and Antonio Vergari and Konstantinos C. Zygalakis},
  title = {{Neural network surrogates with uncertainty quantification for inverse problems in partial differential equations}},
  year = {2026},
  eprint = {2606.20417},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.20417},
}
Figure