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

Posterior-Variance-Based Error Quantification for Inverse Problems in Imaging

Dominik Narnhofer, Andreas Habring, Martin Holler, Thomas Pock

Abstract

In imaging inverse problems, providing reliable uncertainty estimates alongside reconstructed images is critical for high-stakes applications. This paper introduces a rigorous framework for calculating pixel-wise error bounds by combining Bayesian posterior variance with conformal prediction. We address the challenge of non-smooth image priors by developing the Unadjusted Langevin Primal-Dual Algorithm (ULPDA). Our approach guarantees statistical coverage without restrictive distributional assumptions, effectively treating posterior variance as a feature to predict error quantiles. Experimental results on BSDS and fastMRI datasets demonstrate that this method produces tight, reliable error bounds, particularly when paired with sophisticated learned priors.

1. Introduction

Image reconstruction—recovering a latent image from noisy or undersampled data—is a fundamental challenge in medical imaging and computer vision. While modern deep learning and Bayesian techniques provide high-quality "best guess" reconstructions, they often lack a formal measure of reliability. Standard Bayesian approaches use posterior variance to quantify uncertainty, but these estimates are highly sensitive to the accuracy of the chosen prior. If the prior is misspecified, the resulting uncertainty measures can be misleading.

This work addresses the need for error bounds that are both tight (informative) and guaranteed (statistically valid). We propose a pipeline that leverages the strengths of Bayesian sampling while correcting for model inaccuracies through conformal prediction.

2. Methodology

The proposed framework consists of two primary stages: uncertainty estimation and conformal calibration.

2.1 Uncertainty Estimation and ULPDA

To estimate pixel-wise uncertainty, we employ Markov Chain Monte Carlo (MCMC) sampling to approximate the posterior mean and variance. A significant technical hurdle in imaging is the use of non-smooth priors, such as Total Variation (TV), which are non-differentiable and thus incompatible with standard Langevin dynamics.

To overcome this, we introduce the Unadjusted Langevin Primal-Dual Algorithm (ULPDA). This algorithm integrates Langevin dynamics into a primal-dual optimization framework, allowing for efficient sampling from distributions with non-smooth potentials without requiring pre-smoothing, which often compromises image detail.

2.2 Conformal Calibration

To transform raw variance estimates into rigorous error bounds, we utilize conformal prediction. The process involves:

  1. Binning: Using a small calibration dataset of known images, we bin pixels based on their estimated posterior variance.
  2. Quantile Calculation: For each bin, we calculate the empirical error quantiles required to achieve a target coverage (e.g., 90%).
  3. Inference: For a new, unseen image, we compute the posterior variance, identify the corresponding bin, and apply the calibrated error quantile to generate a guaranteed bound.

3. Experimental Setup

The method was evaluated on three key benchmarks:

  • BSDS (Berkeley Segmentation Dataset): Focused on general image denoising experiments.
  • fastMRI: A large-scale dataset of knee MRI scans used to test accelerated reconstruction.
  • ImageNet: Used to validate the statistical independence of neighboring pixels and the robustness of joint estimation.

4. Key Results

4.1 Statistical Reliability

The framework consistently achieved the target statistical coverage across all experiments. For a requested 90% confidence level, the empirical coverage closely matched the target (e.g., 89.51% for TV-denoising), demonstrating that the bounds are reliable regardless of the underlying data distribution.

4.2 Impact of Priors on Tightness

While the statistical guarantees hold for any prior, the "tightness" of the bounds depends on the prior's quality. Using the Total Deep Variation (TDV) prior—a learned, high-capacity model—resulted in significantly smaller error bounds (magnitudes of $10^{-3}$ to $10^{-2}$) compared to traditional hand-crafted priors. This suggests that better models lead to more certain, and thus more useful, predictions.

4.3 Algorithmic Efficiency

ULPDA demonstrated superior convergence rates compared to standard Langevin schemes when handling non-smooth potentials. It matched the accuracy of high-precision benchmarks, such as Belief Propagation, while maintaining the flexibility required for complex imaging tasks.

5. Discussion and Limitations

The current approach provides pixel-wise guarantees. While effective in practice, extending these guarantees to the entire image simultaneously (creating an "error tube") remains a challenge, as simultaneous coverage often results in overly conservative bounds. Additionally, the computational cost of MCMC sampling (typically 50,000 iterations) is higher than standard neural network inference.

Future research will focus on developing faster approximate samplers that maintain conformal guarantees and exploring alternative statistical regressors, such as Median Absolute Deviation, to further refine the tightness of the error bounds.

Summary updated

BibTeX
@article{narnhofer2022posterior,
  author = {Dominik Narnhofer and Andreas Habring and Martin Holler and Thomas Pock},
  title = {{Posterior-Variance-Based Error Quantification for Inverse Problems in Imaging}},
  journal = {SIAM J. Imaging Sci.},
  year = {2022},
}
Figure