Using Uncertainty Quantification to Characterize and Improve Out-of-Domain Learning for PDEs

S Chandra Mouli, Danielle C. Maddix, Shima Alizadeh, Gaurav Gupta, Andrew Stuart, Michael W. Mahoney, Bernie Wang

Introduction

Neural Operators (NOs) have emerged as a transformative tool in Scientific Machine Learning (SciML), offering a "lightning-fast" alternative to traditional numerical solvers. By learning to map input parameters directly to solution fields, these models can bypass the computationally expensive iterations required by classical methods. However, a significant bottleneck remains: reliability. When faced with physics parameters outside their training distribution—known as out-of-domain (OOD) scenarios—Neural Operators are notoriously fragile. This paper, authored by researchers from Purdue, AWS AI Labs, Caltech, and Amazon, introduces a framework to quantify this uncertainty and use it to enforce physical consistency, significantly improving model robustness.

The Challenge: OOD Fragility and Unreliable Uncertainty

In the context of partial differential equations (PDEs), OOD fragility manifests when a model trained on a specific parameter range (e.g., diffusivity $k \in [1, 5]$) is tested on a different range (e.g., $k=8$). In these cases, models often produce "hallucinations"—results that are physically impossible or mathematically inconsistent.

Standard Uncertainty Quantification (UQ) methods, such as MC-Dropout or Bayesian approaches, often fail to provide a reliable "warning light" in these scenarios. These methods frequently remain overconfident even when their predictions are wildly inaccurate. To address this, the researchers identify two primary needs: a more efficient way to generate diverse uncertainty estimates and a mechanism to use those estimates to correct model behavior.

Methodology

DiverseNO: Efficient Functional Diversity

While full ensembles (training multiple independent models) are considered the gold standard for UQ, they are often too computationally expensive for practical SciML applications. The authors propose DiverseNO, which achieves the benefits of an ensemble within a single model architecture.

  • Architecture: DiverseNO utilizes a shared backbone with the final layer split into $M$ multiple "heads."
  • Diversity-Enforcing Loss: To prevent the heads from collapsing into identical solutions, the authors introduce a regularization term that maximizes the distance between the weights of these heads. This forces functional diversity, ensuring that the heads provide varied predictions in OOD regions while maintaining accuracy on the training data.

Operator-ProbConserv: Physics-Informed Correction

Once reliable uncertainty estimates are obtained via DiverseNO, the next step is to use that information to improve the solution. The authors integrate DiverseNO into the ProbConserv framework, treating the PDE solution as a constrained least-squares problem.

By using the variance from DiverseNO as a spatial map of uncertainty, the framework "projects" the model's prediction onto a subspace that satisfies physical constraints, such as the conservation of mass. Crucially, the largest corrections are applied to the specific spatial regions where DiverseNO reports the highest uncertainty, such as the shock fronts in discontinuous problems.

Experimental Evaluation

The methods were evaluated across a suite of 1D and 2D PDE problems with varying levels of difficulty:

  • Generalized Porous Medium Equation (GPME): Covering the linear Heat Equation, the nonlinear Porous Medium Equation, and the discontinuous Stefan Problem.
  • Hyperbolic Linear Advection: Testing the model's ability to handle transport phenomena.
  • 2D Elliptic Darcy Flow: A benchmark for steady-state flow in porous media.

In each case, the models were trained on one parameter range and tested on significantly different, unseen ranges to evaluate OOD performance.

Key Insights and Results

1. Improved Accuracy and Physical Consistency

Integrating uncertainty into the physics-informed correction step (Operator-ProbConserv) improved OOD accuracy by up to 34% compared to unconstrained models. The method successfully reduced conservation errors to zero and eliminated common numerical artifacts, such as the Gibbs phenomenon (spurious oscillations) in shock-heavy problems like the Stefan problem.

2. Computational Efficiency

DiverseNO provides UQ quality comparable to full ensembles at a fraction of the cost. For a fixed computational budget (FLOPs), DiverseNO outperformed standard ensembles by 49% to 80% in terms of mean-squared error.

3. Superior Calibration

The researchers used the n-MeRCI metric to measure how well uncertainty tracks with actual prediction error. DiverseNO achieved a 2x to 70x improvement in this metric over standard UQ methods, demonstrating that its "warning lights" are far more reliable for identifying when a model is likely to fail.

Conclusion and Future Work

This work demonstrates that explicit diversity in model heads is essential for reliable UQ in Neural Operators. By treating uncertainty as a spatial map, the authors show that physics-informed constraints can be applied precisely where they are needed most.

While the current study focused on Fourier Neural Operators (FNOs) and global conservation laws, future work may expand this to other architectures like DeepONets and incorporate local physical constraints. As SciML moves toward 3D, time-dependent engineering applications, the ability to quantify and correct OOD errors will be critical for the deployment of Neural Operators in safety-critical systems.

Summary updated

BibTeX
@inproceedings{mouli2024using,
  author = {S Chandra Mouli and Danielle C. Maddix and Shima Alizadeh and Gaurav Gupta and Andrew Stuart and Michael W. Mahoney and Bernie Wang},
  title = {{Using Uncertainty Quantification to Characterize and Improve Out-of-Domain Learning for PDEs}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=Y50K6DSrWo},
}
Figure