Principled Probabilistic Imaging using Diffusion Models as Plug-and-Play Priors

Zihui Wu, Yu Sun, Yifan Chen, Bingliang Zhang, Yisong Yue, Katherine Bouman

Introduction

In the field of computational imaging, inverse problems—the task of recovering a high-fidelity image from noisy, sparse, or indirect measurements—are fundamental. Whether deblurring a photograph or reconstructing an image of a black hole from interferometric data, the goal is to find an image that is both consistent with the observed data and statistically likely given our prior knowledge of what images look like.

While Diffusion Models (DMs) have emerged as powerful generative tools capable of producing highly realistic imagery, their application to inverse problems has historically relied on "guidance" heuristics. These methods often prioritize visual plausibility over statistical rigor, failing to accurately sample the true posterior distribution. This lack of principled sampling leads to unreliable uncertainty quantification—a critical failure in scientific domains like medical imaging or astronomy, where understanding the range of possible solutions is as important as the reconstruction itself. This paper introduces PnP-DM (Plug-and-Play Diffusion Models), a Bayesian framework designed to turn pre-trained diffusion models into rigorous, accurate solvers for complex inverse problems.

Methodology

PnP-DM is built upon a Markov chain Monte Carlo (MCMC) architecture that treats the diffusion model as a "plug-and-play" prior. The framework is defined by two primary pillars:

1. The Split Gibbs Sampler (SGS)

To avoid the mathematical complexities of solving the entire posterior at once, PnP-DM utilizes the Split Gibbs Sampler. This algorithm alternates between two distinct steps:

  • The Likelihood Step: This ensures the reconstruction remains faithful to the observed physical data (data consistency).
  • The Prior Step: This ensures the reconstruction adheres to the manifold of natural images by utilizing the diffusion model.

2. The EDM Connection

A key innovation of PnP-DM is its integration with the EDM (Elucidating the Design Space of Diffusion Models) framework. The authors identified that the "prior step" in the SGS is mathematically equivalent to a Gaussian denoising problem. By leveraging the EDM formulation, PnP-DM can utilize virtually any pre-trained diffusion model (such as DDPM or VE-SDE) as a prior without requiring additional training or heuristic adjustments. This creates a "universal adapter" for diffusion-based imaging.

To navigate non-convex landscapes—common in nonlinear problems—the authors implement an annealing schedule. By starting with high coupling strength (allowing for more noise) and gradually reducing it, the algorithm can explore the solution space effectively and avoid becoming trapped in suboptimal local minima.

Experimental Setup

The researchers validated PnP-DM across a diverse range of benchmarks to test its versatility:

  • FFHQ: 100 color images for linear tasks (e.g., deblurring) and 100 grayscale images for nonlinear tasks.
  • CelebA: Used for controlled experiments where the ground truth posterior was known, allowing for precise evaluation of sampling accuracy.
  • Black Hole Imaging: The framework was applied to both simulated General Relativistic Magnetohydrodynamic (GRMHD) images and real-world data from the M87 black hole, provided by the Event Horizon Telescope.

Key Results and Insights

Superior Accuracy in Linear Tasks

On standard linear inverse problems, such as Gaussian deblurring, motion deblurring, and super-resolution, PnP-DM consistently outperformed existing baselines like Diffusion Posterior Sampling (DPS) and Denoising Diffusion Restoration Models (DDRM). It achieved higher Peak Signal-to-Noise Ratio (PSNR) and better perceptual similarity scores (LPIPS).

Success in Nonlinear and Ill-posed Problems

PnP-DM demonstrated remarkable robustness in highly ill-posed nonlinear tasks, such as Fourier phase retrieval. In these scenarios, multiple valid solutions often exist (e.g., an image and its 180° rotation). While previous methods often failed to find even a single valid mode, PnP-DM successfully captured the multi-modal nature of the posterior. In black hole simulations, it accurately reconstructed the characteristic "ring" structure and flux distribution where other methods produced inconsistent results.

Reliable Uncertainty Quantification

One of the most significant advantages of PnP-DM is its ability to quantify uncertainty. When tested against problems with a known ground truth posterior, PnP-DM’s standard deviation maps—which highlight areas of the image where the model is less certain—matched the theoretical truth much more closely than existing methods, which tended to significantly overestimate or misplace uncertainty.

Discussion and Limitations

While PnP-DM represents a significant step toward principled probabilistic imaging, it faces certain challenges. As an MCMC-based method, it is computationally more intensive than deterministic "one-shot" solvers, requiring multiple iterations that may limit its immediate application to massive 3D datasets. Additionally, while the prior step is mathematically rigorous, the likelihood step for nonlinear problems still relies on Langevin MCMC approximations, which can introduce minor errors.

Finally, the method is subject to the inherent biases of the pre-trained diffusion model. If a model is trained exclusively on human faces, it will naturally attempt to impose those features onto astronomical or medical data. Future research will focus on improving computational efficiency and developing methods to mitigate these training-data biases, ensuring that PnP-DM remains a robust tool for scientific discovery.

Summary updated

BibTeX
@inproceedings{wu2024principled,
  author = {Zihui Wu and Yu Sun and Yifan Chen and Bingliang Zhang and Yisong Yue and Katherine Bouman},
  title = {{Principled Probabilistic Imaging using Diffusion Models as Plug-and-Play Priors}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=Xq9HQf7VNV},
}
Figure