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

Conffusion: Confidence Intervals for Diffusion Models

Eliahu Horwitz, Yedid HoshenarXiv 2022

Abstract

Diffusion models have become the go-to method for many generative tasks, particularly for image-to-image generation tasks such as super-resolution and inpainting. Current diffusion-based methods do not provide statistical guarantees regarding the generated results, often preventing their use in high-stakes situations. To bridge this gap, we construct a confidence interval around each generated pixel such that the true value of the pixel is guaranteed to fall within the interval with a probability set by the user. Since diffusion models parametrize the data distribution, a straightforward way of constructing such intervals is by drawing multiple samples and calculating their bounds. However, this method has several drawbacks: i) slow sampling speeds ii) suboptimal bounds iii) requires training a diffusion model per task. To mitigate these shortcomings we propose Conffusion, wherein we fine-tune a pre-trained diffusion model to predict interval bounds in a single forward pass. We show that Conffusion outperforms the baseline method while being three orders of magnitude faster.

Introduction

Diffusion models (DMs) have revolutionized image generation, yet they remain "black boxes" prone to "hallucinating" fine details. In high-stakes applications—such as medical imaging or forensic analysis—this lack of reliability is a significant barrier. If a model adds a detail that isn't present in reality, or obscures a critical feature, the consequences can be severe.

To deploy DMs safely, we require a way to quantify their uncertainty. Ideally, this takes the form of a "confidence interval" for every pixel: a lower and upper bound where we are statistically certain (e.g., with 90% probability) the true pixel value resides. While traditional sampling-based methods can estimate variance, they are computationally expensive and often fail to provide formal statistical "coverage" guarantees.

Methods

The proposed method, Conffusion, integrates the representational power of pretrained diffusion models with the statistical rigor of Conformal Prediction.

Quantile Regression

Instead of the standard diffusion training objective, Conffusion fine-tunes the model using a "pinball loss" (quantile loss). This trains the network to directly predict specific percentiles (e.g., the 5th and 95th percentiles) of the pixel distribution.

Decoupling and Efficiency

A key innovation is the decoupling of interval estimation from the iterative diffusion process. While standard image generation requires hundreds of denoising steps, Conffusion predicts the bounds in a single forward pass. This is possible because interval bounds primarily contain low-frequency information, which DMs can learn to predict efficiently.

Model Variants

The authors explore two flavors:

  • Narrow Conffusion (N-Conffusion): Fine-tuning a DM already specialized for a specific task (e.g., super-resolution).
  • Global Conffusion (G-Conffusion): Fine-tuning a general-purpose DM (e.g., ImageNet-pretrained) to perform task-specific interval estimation.

Calibration

To ensure mathematical guarantees, the method employs Risk-Controlling Prediction Sets (RCPS). A small calibration dataset is used to determine a scaling factor ($\lambda$) that ensures the error rate remains below a user-defined threshold.

Results

Conffusion demonstrates significant improvements over existing baselines in terms of both speed and interval tightness.

Visual results of Conffusion for inpainting (top) and super-resolution (bottom) tasks, showing predicted bounds, ground truth, and interval sizes.

Efficiency and Tightness

The method is three orders of magnitude faster (1,000x) than sampling-based baselines by avoiding the iterative denoising loop. Furthermore, compared to previous state-of-the-art methods like ADMUQ, Conffusion produces significantly smaller intervals. Smaller intervals are more informative while still maintaining the required statistical guarantees.

Leveraging Pretraining

A major insight is that models pretrained for diffusion have already captured the underlying image distribution. Repurposing these features for quantile regression yields much tighter bounds than training a standard architecture from scratch. G-Conffusion further shows that general-purpose pretrained models can be effectively adapted for specific tasks, reducing compute costs.

Discussion and Future Work

While Conffusion provides a robust framework for pixel-wise confidence, some limitations remain. Currently, the calibration factor is applied globally; "Adaptive Calibration" could potentially lead to even tighter bounds by tuning guarantees spatially. Additionally, the method currently produces continuous intervals, which may be less informative for multimodal pixel distributions (e.g., a pixel that could be either very dark or very bright). Future research could also extend these pixel-level bounds to higher-level semantic concepts, providing confidence intervals for features like age or gender in generated faces.

Summary updated

BibTeX
@misc{horwitz2022conffusion,
  author = {Eliahu Horwitz and Yedid Hoshen},
  title = {{Conffusion: Confidence Intervals for Diffusion Models}},
  year = {2022},
  eprint = {2211.09795},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.09795},
}
Figure