Generative Uncertainty in Diffusion Models

Metod Jazbec, Eliot Wong-Toi, Guoxuan Xia, Dan Zhang, Eric Nalisnick +1 more
2/28/2025
cs.LGcs.AI

No official code found. Best implementation: metodj/DIFF-UQ (16 stars, last commit 2025-06-23).

Abstract

Diffusion models have recently driven significant breakthroughs in generative modeling. While state-of-the-art models produce high-quality samples on average, individual samples can still be low quality. Detecting such samples without human inspection remains a challenging task. To address this, we propose a Bayesian framework for estimating generative uncertainty of synthetic samples. We outline how to make Bayesian inference practical for large, modern generative models and introduce a new semantic likelihood (evaluated in the latent space of a feature extractor) to address the challenges posed by high-dimensional sample spaces. Through our experiments, we demonstrate that the proposed generative uncertainty effectively identifies poor-quality samples and significantly outperforms existing uncertainty-based methods. Notably, our Bayesian framework can be applied post-hoc to any pretrained diffusion or flow matching model (via the Laplace approximation), and we propose simple yet effective techniques to minimize its computational overhead during sampling.

View on arXivView PDF

Code Implementations(1)

metodj/DIFF-UQCommunity68%

Generative Uncertainty in Diffusion Models

160Shell, PythonFeb 27, 20251 years ago

Similar Papers

Cite this paper

@article{jazbec2025generative,
  title  = {Generative Uncertainty in Diffusion Models},
  author = {Metod Jazbec and Eliot Wong-Toi and Guoxuan Xia and Dan Zhang and Eric Nalisnick and Stephan Mandt},
  year   = {2025},
  eprint = {2502.20946},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.20946v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.20946.svg)](https://codeofpaper.com/paper/2502.20946)

Discussion