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

Zero-Shot Uncertainty Quantification using Diffusion Probabilistic Models

Dule Shu, Amir Barati FarimaniarXiv 2024

Abstract

The success of diffusion probabilistic models in generative tasks, such as text-to-image generation, has motivated the exploration of their application to regression problems commonly encountered in scientific computing and various other domains. In this context, the use of diffusion regression models for ensemble prediction is becoming a practice with increasing popularity. Under such background, we conducted a study to quantitatively evaluate the effectiveness of ensemble methods on solving different regression problems using diffusion models. We consider the ensemble prediction of a diffusion model as a means for zero-shot uncertainty quantification, since the diffusion models in our study are not trained with a loss function containing any uncertainty estimation. Through extensive experiments on 1D and 2D data, we demonstrate that ensemble methods consistently improve model prediction accuracy across various regression tasks. Notably, we observed a larger accuracy gain in auto-regressive prediction compared with point-wise prediction, and that enhancements take place in both the mean-square error and the physics-informed loss. Additionally, we reveal a statistical correlation between ensemble prediction error and ensemble variance, offering insights into balancing computational complexity with prediction accuracy and monitoring prediction confidence in practical applications where the ground truth is unknown. Our study provides a comprehensive view of the utility of diffusion ensembles, serving as a useful reference for practitioners employing diffusion models in regression problem-solving.

Introduction

In scientific computing and engineering, machine learning is increasingly leveraged for regression tasks—predicting continuous physical fields such as fluid velocity or temperature. Traditional deep learning models are typically deterministic, providing a single point estimate without a measure of confidence. While traditional "Deep Ensembles" can provide uncertainty estimates by training multiple models, the computational overhead is often prohibitive.

Diffusion Probabilistic Models (DMs), renowned for their generative capabilities, offer a unique alternative. Because DMs generate data through an inherently stochastic iterative denoising process, multiple runs on the same input yield a distribution of results. This study investigates whether this variability can be harnessed as a "feature" for zero-shot uncertainty quantification (UQ) and to enhance prediction accuracy in complex physical simulations governed by Partial Differential Equations (PDEs).

Methodology

The researchers propose a Bayesian perspective on diffusion ensembles, arguing that the stochastic nature of the backward diffusion process effectively samples from a predictive distribution.

The autoregressive conditional diffusion model (ACDM) architecture, showing the iterative prediction u(t) and the internal denoising process p_theta.

Key components of the approach include:

  • Ensemble Prediction: Generating $J$ samples and averaging them to produce an "enhanced" prediction.
  • Zero-Shot UQ: Using the spatial variance across these $J$ samples as a measure of uncertainty. This is "zero-shot" because the models are not explicitly trained for uncertainty estimation.
  • Architectural Diversity: The method was validated across three state-of-the-art architectures: PDE-Refiner (solution refinement), ACDM (autoregressive flow prediction), and PI-DFS (physics-informed super-resolution).

Experimental Evaluation

The study utilized three challenging physical simulation benchmarks to evaluate performance:

  1. 1D Kuramoto-Sivashinsky Equation: A model for chaotic systems.
  2. 2D Transonic Cylinder Flow: High-speed air flow simulation.
  3. 2D Turbulent Flow Vorticity: High-resolution fluid dynamics data.

Key Insights and Results

The quantitative results demonstrate consistent improvements across all tested models. For instance, the relative $L^2$ error for the ACDM model dropped significantly from 0.5516 (single sample) to 0.3966 (ensemble).

The zero-shot uncertainty quantification workflow, illustrating how ensemble variance correlates with prediction confidence.
  • Accuracy Gains: Averaging multiple samples consistently outperforms single-sample predictions. This is particularly effective in auto-regressive tasks, where ensembling helps mitigate the accumulation of errors over time.
  • Variance as an Error Proxy: A remarkably high Pearson correlation coefficient (e.g., $\rho = 0.9998$ for PDE-Refiner) was observed between ensemble variance and actual prediction error. This allows practitioners to monitor model confidence in real-world applications where ground truth is unavailable.
  • Physics-Informed Consistency: For the PI-DFS model, ensembling reduced the physics-informed residual loss from 0.2586 to 0.1846, indicating that ensembled predictions better adhere to underlying physical laws like the Navier-Stokes equations.
  • Optimal Ensemble Size: Analysis suggests that an ensemble size of $J=7$ often provides an optimal balance between computational cost and gains in accuracy and UQ reliability.

Conclusion

Diffusion ensembles provide a powerful, "zero-shot" mechanism for improving regression accuracy and quantifying uncertainty in scientific machine learning. While the iterative sampling process introduces additional computational costs, the high correlation between variance and error offers a valuable tool for monitoring model reliability. Future research may focus on leveraging these uncertainty estimates for importance sampling to further optimize model training.

Summary updated

BibTeX
@misc{shu2024zero,
  author = {Dule Shu and Amir Barati Farimani},
  title = {{Zero-Shot Uncertainty Quantification using Diffusion Probabilistic Models}},
  year = {2024},
  eprint = {2408.04718},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.04718},
}
Figure