Outlier-robust Diffusion Posterior Sampling for Bayesian Inverse Problems

Yiming Yang, Xiaoyuan Cheng, Yi He, Kaiyu Li, Wenxuan Yuan, Zhuo Sun

TL;DR

While diffusion models are excellent priors for solving Bayesian inverse problems, standard solvers break down when real-world measurements contain outliers or heavy-tailed noise. This paper introduces Robust Diffusion Posterior Sampling (RDP), a sampler-agnostic framework that dynamically down-weights large measurement residuals using adaptive quantile thresholding. RDP provides theoretical guarantees of outlier robustness and delivers substantial performance gains across both linear and nonlinear imaging tasks without sacrificing accuracy on clean data.

What Problem Does This Paper Address?

Bayesian Inverse Problems (BIPs) aim to recover an unknown signal or image $x$ from noisy, incomplete measurements $y = F(x) + \epsilon$. Recently, diffusion models have become the gold standard for this task, acting as powerful data-driven priors that guide the reconstruction process.

However, existing diffusion solvers (like Diffusion Posterior Sampling, or DPS) rely heavily on a perfectly specified likelihood model—almost always assuming clean, independent Gaussian noise. In practical applications like medical imaging, geophysics, or optical phase retrieval, this assumption fails. Unmodeled physical phenomena (such as unexpected media scattering or sensor spikes) introduce heavy-tailed noise or extreme outliers.

The authors show that while standard DPS is theoretically stable under mild noise, its error bound blows up quadratically when faced with large outliers. As a result, even a few corrupted pixels can completely derail the generative process, introducing severe artifacts into the final reconstruction.

Figure 1: Overview. (a) Our proposed method achieves robust recovery under corruption. Visualization of the measurement model and data corruption, showing the sources of measurement corruption in (b) inverse scattering and (c) phase retrieval.

Methods

To tackle this vulnerability, the authors turn to Generalized Bayes (GB), replacing the standard negative log-likelihood with a robust, differentiable loss function $\ell_y(x)$. They introduce Robust Diffusion Posterior Sampling (RDP), which modifies the likelihood score gradient by applying a component-wise adaptive weighting function $w(r_i)$ to the measurement residuals $r = y - F(\hat{x}_0)$.

The core components of RDP are:

  1. Inverse Multi-Quadratic (IMQ) Weighting: The weights are defined as: $$w(r_i) = \left(1 + \frac{r_i^2}{c^2}\right)^{-1/2}$$ When a residual $r_i$ is small relative to a threshold $c$, $w(r_i) \approx 1$ (recovering the standard Gaussian likelihood). If $r_i$ is large (an outlier), the weight drops significantly, neutralizing its influence on the diffusion guidance.

  2. Adaptive Quantile Thresholding: A fixed threshold $c$ fails because the scale of residuals naturally shrinks as the diffusion model denoises the image. RDP dynamically updates the threshold at each timestep $t$ based on the $q$-th quantile of the current absolute residuals: $$c_t = \text{Quantile}_q(|r_t|)$$ This ensures that the top $(1-q)\%$ of mismatched measurements are treated as potential outliers and suppressed.

  3. Sampler-Agnostic Integration: RDP is designed as a modular plug-in. It can be seamlessly integrated into any gradient-based diffusion sampler (e.g., DPS, LGD, $\Pi$GDM, PnPDM) by simply swapping the standard likelihood gradient with the RDP-weighted gradient.

Datasets

The method was rigorously evaluated using the open-source benchmark InverseBench, spanning both linear and nonlinear tasks:

  • Inverse Scattering (IS): A linear scientific imaging problem ($128 \times 128$).
  • Image Inpainting, Gaussian Deblurring, and Phase Retrieval: Conducted on the FFHQ-256 dataset ($3 \times 256 \times 256$).

Reconstructions were tested under three distinct noise regimes: well-specified Gaussian noise, heavy-tailed noise (Student-t distribution), and sparse impulsive outliers (where a fraction of pixels are multiplied by large amplification factors).

Key Insights and Ideas

  • Stability $\neq$ Robustness: The paper draws a vital theoretical distinction. Standard DPS is stable (small perturbations yield small posterior shifts), but it lacks robustness because its Posterior Influence Function (PIF) is unbounded. RDP achieves true outlier robustness by proving that its posterior KL-divergence remains uniformly bounded regardless of outlier magnitude.
  • The Necessity of Dynamics: Residual distributions change drastically across diffusion timesteps. Figure 4 in the paper highlights how adaptive quantile thresholding successfully separates the true Gaussian residual distribution from extreme outliers dynamically over time.
  • No Free Lunch? Not Here: Traditionally, robust estimators perform worse than standard estimators when the noise actually is Gaussian. Thanks to the adaptive quantile scheduling, RDP matches the performance of standard DPS under clean Gaussian noise while providing an essential safety net for corrupted data.

Key Results

The authors demonstrated consistent quantitative and qualitative improvements across all tasks:

  • Outlier Suppression: In the Inverse Scattering task under outlier contamination, RDP improved reconstruction metrics (PSNR, SSIM, NMAE) by 15% to 50% compared to standard baselines.
  • Perceptual Quality: For natural image tasks (Deblurring, Inpainting) under outlier corruption, RDP variants dramatically lowered LPIPS and FID scores. For instance, on FFHQ-Deblur with outliers, RDP-DPS achieved an LPIPS of ~0.25 compared to standard DPS at ~0.32.
  • Artifact Removal: Visually, standard diffusion solvers produce glaring bright-spot artifacts when exposed to outliers. RDP completely eliminates these anomalies, restoring clean, realistic facial features and scientific structures.
Qualitative comparison showing artifact removal by RDP

Limitations and Future Work

While RDP shows impressive empirical success, the authors note two primary limitations:

  1. Linear Theory vs. Nonlinear Practice: The formal proofs for outlier robustness and stability are currently limited to linear inverse problems. Extending these theoretical guarantees to highly nonlinear forward models (like Phase Retrieval) remains an open challenge.
  2. Isotropic Noise Assumption: The current framework assumes independent, component-wise noise. In many real-world scenarios, noise is structured, spatially varying, or highly correlated (e.g., structured stripes in CT scans), which may require more sophisticated, non-diagonal covariance weighting strategies in the future.

Summary updated

BibTeX
@inproceedings{yang2026outlier,
  author = {Yiming Yang and Xiaoyuan Cheng and Yi He and Kaiyu Li and Wenxuan Yuan and Zhuo Sun},
  title = {{Outlier-robust Diffusion Posterior Sampling for Bayesian Inverse Problems}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=a4Z54rVG8B},
}
Figure