Provably Robust Score-Based Diffusion Posterior Sampling for Plug-and-Play Image Reconstruction

Xingyu Xu, Yuejie Chi

Introduction

In fields ranging from medical imaging to astronomy, researchers frequently face the challenge of reconstructing high-quality images from noisy, incomplete, or distorted measurements. This is known as an inverse problem. Because these problems are typically ill-posed—meaning multiple different images could theoretically produce the same measurements—reconstruction algorithms rely on a "prior," a mathematical model of what a natural image should look like.

While score-based diffusion models have become the gold standard for image priors due to their expressive power, using them for posterior sampling (finding the original image given the measurements) remains difficult. Existing methods often struggle with nonlinear forward models, such as phase retrieval or quantized sensing. They tend to be computationally prohibitive, mathematically inconsistent, or lack theoretical guarantees for real-world reliability. To address this, researchers have introduced Diffusion Plug-and-Play (DPnP), a new algorithmic framework that uses pre-trained, unconditional diffusion models to solve complex, nonlinear image reconstruction tasks with rigorous theoretical backing.

The DPnP Framework

Inspired by the "Plug-and-Play" (PnP) philosophy in imaging, DPnP avoids training a new neural network for every specific task. Instead, it "plugs in" a standard, pre-trained diffusion model. The algorithm alternates between two specialized samplers:

  1. Proximal Consistency Sampler (PCS): This step ensures the reconstructed image matches the observed measurements. It uses the likelihood function of the forward model to pull the current estimate toward data consistency.
  2. Denoising Diffusion Sampler (DDS): This step ensures the image looks natural according to the diffusion prior.

The core innovation lies in the DDS. The authors rigorously derive how to use standard score functions—originally trained for image generation—to solve the specific sub-problem of denoising under Gaussian noise. They provide two versions: a stochastic sampler (DDS-DDPM) and a deterministic sampler (DDS-DDIM), the latter allowing for significantly faster sampling. By splitting the problem into consistency and denoising, DPnP avoids the need to compute complex gradients through the entire diffusion process, a major bottleneck in prior methods.

Theoretical Guarantees

A significant contribution of this work is its provable robustness. The paper establishes non-asymptotic guarantees, demonstrating that even if score estimates are slightly inaccurate or the sampler isn't run for an infinite number of steps, the algorithm's performance degenerates gracefully rather than failing catastrophically. Furthermore, the paper proves that the prior step in image reconstruction can be treated exactly as a posterior sampling problem for denoising, allowing the use of Exponential Integrators to make the sampling process highly stable and accurate.

Experimental Validation

The researchers evaluated DPnP on two standard high-resolution benchmarks (256×256): FFHQ (human faces) and ImageNet (general objects). They tested the algorithm across three distinct tasks: Super-resolution (linear), Phase Retrieval (nonlinear), and Quantized Sensing (nonlinear).

DPnP successfully reconstructs high-fidelity images from severely degraded or noisy measurements across various datasets.

DPnP consistently outperformed state-of-the-art methods like Diffusion Posterior Sampling (DPS) and LGD-MC, particularly in nonlinear scenarios:

  • Phase Retrieval: On the FFHQ dataset, DPnP achieved an LPIPS score of 0.376, significantly better than DPS (0.490). A lower LPIPS indicates the reconstructed image is perceptually closer to the ground truth.
  • Quantized Sensing: DPnP maintained high fidelity even when measurements were reduced to just one bit per channel, achieving a PSNR of 24.2 dB compared to 21.7 dB for DPS.
  • Visual Quality: Qualitatively, DPnP recovers much finer details and crisper textures. While other methods often produce blurry or hallucinated features in nonlinear tasks, DPnP remains faithful to the underlying data.

Limitations and Future Directions

While DPnP represents a major step forward, challenges remain. Even with the faster DDIM variant, sampling takes about 90 seconds per image on a high-end Nvidia L40 GPU, which is too slow for real-time applications. Additionally, the annealing schedule—how the noise level is reduced during iterations—is crucial for performance and currently requires manual tuning. Future work may explore faster ODE solvers to reduce computation time and extend the framework to handle "blind" inverse problems where the forward model is partially unknown.

Summary updated

BibTeX
@inproceedings{xu2024provably,
  author = {Xingyu Xu and Yuejie Chi},
  title = {{Provably Robust Score-Based Diffusion Posterior Sampling for Plug-and-Play Image Reconstruction}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=SLnsoaY4u1},
}
Figure