Diffusion Posterior Proximal Sampling for Image Restoration

Hongjie Wu, Linchao He, Mingqin Zhang, Dongdong Chen, Kunming Luo, Mengting Luo, Ji-Zhe Zhou, Hu Chen, Jiancheng Lv

Abstract

Diffusion models have set new standards for image generation but face significant hurdles in image restoration tasks, specifically over-smoothing and error accumulation. We present Diffusion Posterior Proximal Sampling (DPPS), a novel framework that replaces the standard stochastic "random walk" with a guided selection process. By generating multiple candidate samples and selecting the one most consistent with the degraded measurement, DPPS achieves superior perceptual quality and stability across tasks such as deblurring, inpainting, and super-resolution.

The Challenge: Over-smoothing and Exposure Bias

While diffusion models have revolutionized generative AI, applying them to image restoration—fixing blur, noise, or missing pixels—presents unique challenges. Most current methods inherit a paradigm designed for unconditional generation: they start with pure white noise and introduce random noise at every denoising step.

This approach is fundamentally flawed for restoration because it ignores the "identity information" already present in the degraded measurement (the blurry or pixelated image). Standard random sampling leads to two major issues:

  1. Over-smoothing: The cumulative impact of random noise at each step washes out fine details.
  2. Exposure Bias: If a random sample at step $t$ deviates too far from the ideal path, the model cannot "correct" itself, leading to a snowball effect of errors that results in unstable or unrealistic outputs.

The DPPS Framework

Diffusion Posterior Proximal Sampling (DPPS) addresses these issues by treating the stochastic nature of diffusion not as a source of mandatory randomness, but as a "candidate generator." The method introduces three core innovations:

  • Proximal Sampling: Instead of picking one random sample from the predicted distribution, the algorithm generates $n$ candidate samples. It then selects the "proximal" sample—the one that, when projected into the measurement subspace, is most consistent with the observed degraded image $y$. This acts as a stable supervisory signal to keep the generation process on track.
  • Adaptive Sampling Frequency: Not all steps in the diffusion process are equally critical. DPPS uses a formula to adaptively determine the number of candidates $n$ based on the signal-to-noise ratio (SNR) of the current timestep, increasing candidates in later stages to optimize the balance between quality and computational cost.
  • Aligned Initialization: Rather than starting from pure white noise, DPPS initializes the process with a combination of the measurement signal and noise. This provides a "warm start" better aligned with the training distribution.

Experimental Results

The researchers evaluated DPPS on the FFHQ (human faces) and ImageNet (diverse objects) datasets across four tasks: random inpainting, Gaussian deblurring, motion deblurring, and 4x super-resolution.

Perceptual Quality and Visual Fidelity

DPPS consistently outperformed state-of-the-art (SOTA) methods like DPS, DDRM, and DiffPIR. On the FFHQ dataset for super-resolution, DPPS achieved an FID of 25.98, significantly better than the baseline DPS (34.50) and DiffPIR (33.03).

Restoration of facial features using DPPS, showing high fidelity in hair and skin textures.

Qualitative results show that DPPS recovers much sharper textures, such as hair strands, skin pores, and complex fabric patterns, that other methods leave blurry or over-smoothed. By picking the best candidate rather than a random one, the authors effectively turn a generative process into a stable optimization process.

DPPS effectively recovers complex fabric patterns, such as this leopard print bag from the ImageNet dataset.

Efficiency

Despite generating multiple candidates, the method is computationally efficient. Because it does not require extra gradient calculations for the selection step, the overhead is negligible. For example, using $n=10$ candidates only increased computation time by approximately 0.8% compared to the baseline.

Conclusion

DPPS demonstrates that using the degraded measurement as a reliable anchor through proximal sampling significantly reduces the variance of the sampling process. While the method navigates the classic perception-distortion tradeoff—sometimes showing a slight decline in traditional metrics like PSNR in exchange for much higher perceptual sharpness—it represents a major step forward in stable, high-fidelity image reconstruction. Future work will explore its application in critical fields like medical image reconstruction, where preserving structural integrity is paramount.

Summary updated

BibTeX
@inproceedings{wu2024diffusion,
  author = {Hongjie Wu and Linchao He and Mingqin Zhang and Dongdong Chen and Kunming Luo and Mengting Luo and Ji-Zhe Zhou and Hu Chen and Jiancheng Lv},
  title = {{Diffusion Posterior Proximal Sampling for Image Restoration}},
  booktitle = {ACM Multimedia},
  year = {2024},
  url = {https://openreview.net/forum?id=Wzqrle4BzA},
}
Figure