Stochastic Generative Plug-and-Play Priors

Chicago Y. Park, Edward P. Chandler, Yuyang Hu, Michael T. McCann, Cristina Garcia-Cardona, Brendt Wohlberg, Ulugbek S. KamilovarXiv 2026

TL;DR

This paper introduces Stochastic Generative Plug-and-Play (SGPnP), a framework that seamlessly integrates pretrained score-based diffusion models (SBDMs) directly into classical PnP optimization algorithms. By strategically injecting and decoupling noise during the optimization process, SGPnP allows standard optimization workflows to leverage the massive generative power of diffusion priors, establishing a new theoretical guarantee for escaping strict saddle points and delivering state-of-the-art results in severely ill-posed imaging problems.

What Problem Does This Paper Address?

Imaging inverse problems—such as recovering a clean image from a blurry, downsampled, or partially obstructed measurement—are foundational to computational imaging. The Plug-and-Play (PnP) framework handles this by alternating between a data-fidelity step (ensuring the image matches the physical measurements) and a prior step (using a pretrained deep-learning denoiser to enforce realism).

However, traditional PnP methods fall flat when dealing with severely ill-posed problems, such as inpainting large missing regions. Traditional denoisers are trained only on low-noise images and lack the generative capacity to "hallucinate" complex missing structures. Conversely, modern Score-Based Diffusion Models (SBDMs) excel at generating realistic details from pure noise, but adapting them to inverse problems usually requires running a slow, iterative reverse-diffusion sampling process at every single optimization step.

The authors address this gap by figuring out how to use pretrained SBDMs directly as priors within an optimization-centric PnP framework, avoiding full reverse-diffusion loops while maintaining robustness against severe data degradation.

Figure 1: Comparison of deterministic PnP [3], stochastic PnP [2], and SGPnP on three inpainting tasks: random masks, box masks with small missing regions, and box masks with large missing regions. Deterministic PnP succeeds only on random inpainting, while stochastic PnP extends this to small box masks but fails for large missing regions. In contrast, the proposed SGPnP approach performs reliably across all three settings.

Methods

The authors bridge the gap between optimization and diffusion through two key innovations:

  1. Score Adaptation & Parameter Matching: Using Tweedie’s formula, they mathematically map the score networks of both Variance-Exploding (VE) and Variance-Preserving (VP) diffusion models directly into PnP denoisers. They implement a continuous interpolation scheme to precisely match the continuous noise levels ($\sigma$) used in PnP with the discrete time steps ($t$) of off-the-shelf diffusion models.
  2. Noise Injection and Decoupling: Instead of a deterministic update, SGPnP explicitly injects Gaussian noise into the denoiser input at each iteration. Crucially, they decouple the injected noise level ($\sigma^{\text{inject}}$) from the denoiser's conditioning noise level ($\sigma^{\text{cond}}$). This allows $\sigma^{\text{cond}}$ to simultaneously clean up both the deliberately injected noise and the structured artifacts left behind by the data-fidelity step.

The framework is highly flexible and can be adapted into standard optimization algorithms like ADMM, Proximal Gradient Method (PGM), and Regularization by Denoising (RED).

Datasets

The authors evaluated their approach on two standard imaging benchmarks:

  • FFHQ (Flickr-Faces-HQ): 100 natural face images ($256 \times 256$) used to test box inpainting ($128 \times 128$ center mask), motion deblurring, and $4\times$ super-resolution.
  • fastMRI: 100 complex-valued multi-coil brain scans ($256 \times 256$) used to evaluate accelerated MRI reconstruction ($4\times$ acceleration).

Key Insights and Ideas

  • Noise as an Optimization Tool: Injecting noise sounds counterintuitive for image restoration, but mathematically, it smooths out the non-convex objective function. The authors provide the first formal proof in PnP literature showing that this stochasticity satisfies the Correlated Negative Curvature (CNC) condition, giving the algorithm the exact "kick" it needs to escape strict saddle points.
  • The Power of Decoupling: Previous stochastic PnP methods failed to outperform deterministic ones because they kept the injected noise and conditioning noise identical. SGPnP recognizes that intermediate optimization steps introduce non-Gaussian, structured artifacts. Decoupling the parameters allows the denoiser to aggressively target these artifacts.
  • Optimization over Generation: Instead of turning the inverse problem into a pure generative sampling scheme (which can easily drift away from the true measurements), SGPnP preserves the optimization backbone. It uses the diffusion model strictly as a powerful, multi-scale prior.

Key Results

SGPnP consistently outperformed both traditional PnP baselines and pure diffusion-based solvers across multiple tasks:

  • Large-Mask Inpainting (FFHQ): SGPnP achieved a PSNR of 25.21 dB, vastly superior to deterministic DPIR (18.42 dB) and the previous stochastic baseline SNORE (18.50 dB). It also outperformed pure diffusion solvers like Diffusion Posterior Sampling (DPS) (23.69 dB).
  • Compressed Sensing MRI (fastMRI): SGPnP reached 32.54 dB PSNR, outperforming deterministic PnP (26.93 dB) and DiffPIR (29.81 dB).

Qualitatively, while traditional methods leave large gray blocks or blurry smudges in missing regions, SGPnP successfully hallucinates realistic semantic features like teeth, eyes, and sharp brain tissue structures.

Figure 2: Qualitative visual comparison corresponding to the quantitative results in Table 1. Note that for challenging box inpainting, deterministic PnP method (DPIR) and stochastic DRUNet-based PnP (SNORE) produce incomplete reconstructions, whereas SGPnP produces more plausible image completions.

Limitations and Future Work

  • Hyperparameter Tuning: SGPnP introduces separate schedules for $\sigma^{\text{inject}}$ and $\sigma^{\text{cond}}$. Currently, these must be tuned via grid search on a validation set, which can be tedious.
  • Speed: Although it avoids full reverse-diffusion sampling per step, running a large U-Net-based diffusion backbone over 200 iterations is still computationally heavier than using classical, lightweight CNN denoisers.
  • Future Directions: The authors suggest exploring automated or adaptive noise schedules and extending SGPnP to non-linear or blind inverse problems where the degradation operator is unknown.

Summary updated

BibTeX
@misc{park2026stochastic,
  author = {Chicago Y. Park and Edward P. Chandler and Yuyang Hu and Michael T. McCann and Cristina Garcia-Cardona and Brendt Wohlberg and Ulugbek S. Kamilov},
  title = {{Stochastic Generative Plug-and-Play Priors}},
  year = {2026},
  eprint = {2604.03603},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.03603},
}
Figure