Scalable Uncertainty Quantification for Deep Operator Networks using Randomized Priors

Yibo Yang, Georgios Kissas, Paris PerdikarisComputer 2022 · DOI

Abstract

We present a simple and effective approach for posterior uncertainty quantification in deep operator networks (DeepONets); an emerging paradigm for supervised learning in function spaces. We adopt a frequentist approach based on randomized prior ensembles, and put forth an efficient vectorized implementation for fast parallel inference on accelerated hardware. Through a collection of representative examples in computational mechanics and climate modeling, we show that the merits of the proposed approach are fourfold. (1) It can provide more robust and accurate predictions when compared against deterministic DeepONets. (2) It shows great capability in providing reliable uncertainty estimates on scarce data-sets with multi-scale function pairs. (3) It can effectively detect out-of-distribution and adversarial examples. (4) It can seamlessly quantify uncertainty due to model bias, as well as noise corruption in the data. Finally, we provide an optimized JAX library called UQDeepONet that can accommodate large model architectures, large ensemble sizes, as well as large data-sets with excellent parallel performance on accelerated hardware, thereby enabling uncertainty quantification for DeepONets in realistic large-scale applications.

Introduction

Deep Operator Networks (DeepONets) have emerged as a powerful tool in scientific machine learning, designed to learn mappings between infinite-dimensional function spaces—such as mapping a heat source distribution to a resulting temperature field. Despite their success, standard DeepONet architectures are typically deterministic. They provide a single point estimate without any measure of predictive confidence.

This lack of uncertainty quantification (UQ) leads to several critical vulnerabilities in scientific applications:

  1. Overconfidence: Deterministic models often make highly confident but incorrect predictions when encountering out-of-distribution (OOD) data.
  2. Scale Bias: Standard training often struggles with multi-scale data, where models over-fit to high-magnitude signals while ignoring smaller, physically significant details.
  3. Data Scarcity: In domains where data acquisition is expensive, deterministic models lack the necessary safeguards to prevent overfitting to small datasets.

To address these issues, we introduce UQDeepONet, a framework that brings scalable and reliable UQ to operator learning through randomized prior ensembles and high-performance vectorized computation.

Methodology

Randomized Prior Networks

The core of the UQDeepONet framework is the use of Randomized Prior Networks. This approach involves training an ensemble of DeepONets where each member is augmented with a fixed, randomly initialized "prior" network. For a given sub-network (either the branch or trunk), the output is defined as:

$$\hat{f}_\theta = f_\theta + \beta f_\Theta$$

In this formulation, $f_\theta$ represents the trainable network, while $f_\Theta$ is a fixed random prior. The prior acts as a "source of truth" in regions where training data is absent, preventing the ensemble from becoming overconfident in unknown regions of the function space.

Scalable Implementation via JAX

To make ensemble training computationally feasible, we developed the UQDeepONet library using JAX. By leveraging JAX's vmap (vectorized mapping) and jit (just-in-time compilation) capabilities, we transformed the sequential bottleneck of training multiple models into a parallel operation. This allows for the training of hundreds of models simultaneously on a single GPU with near-linear scaling.

Normalized Loss Functions

To combat the magnitude bias inherent in standard Mean Squared Error (MSE) loss, we employ a normalized loss function using the infinity norm. This ensures the model pays equal attention to both high- and low-magnitude function pairs, which is essential for accurately capturing multi-scale physical phenomena.

Experimental Results

We evaluated the framework across four diverse benchmarks: an anti-derivative operator, reaction-diffusion equations, the viscous Burgers’ equation, and a real-world climate modeling dataset (NCEP/NCAR reanalysis).

Robustness and Accuracy

In the anti-derivative task, UQDeepONet achieved a 6x reduction in relative error for worst-case "corner-case" predictions compared to a standard deterministic DeepONet. This suggests that the ensemble approach not only provides uncertainty estimates but also improves the overall generalization of the model.

Out-of-Distribution Detection

The model demonstrated a high sensitivity to OOD data. In reaction-diffusion tests, UQDeepONet assigned significantly higher uncertainty to samples that deviated from the training distribution, effectively acting as a safety check for the model's predictions.

Computational Efficiency

The efficiency of the JAX implementation is a key highlight. We successfully trained an ensemble of 512 networks for a complex climate model in under 30 minutes on a single NVIDIA RTX A6000 GPU. This level of performance enables UQ for DeepONets in realistic, large-scale applications that were previously computationally prohibitive.

Conclusion and Future Work

UQDeepONet provides a robust, scalable framework for quantifying uncertainty in function-to-function learning. By combining randomized priors with efficient vectorization, it addresses the primary failures of deterministic operator networks.

Future work will focus on integrating newer architectural variants, such as those incorporating attention mechanisms or Fourier features, and exploring active learning strategies. By using these uncertainty estimates to identify the most informative data points for sampling, we can further improve the data efficiency of operator learning in complex physical domains.

Summary updated

BibTeX
@inproceedings{yang2022scalable,
  author = {Yibo Yang and Georgios Kissas and Paris Perdikaris},
  title = {{Scalable Uncertainty Quantification for Deep Operator Networks using Randomized Priors}},
  booktitle = {Computer},
  year = {2022},
  doi = {10.1016/j.cma.2022.115399},
}
Figure