Denoising Diffusion Models for Plug-and-Play Image Restoration

Yuanzhi Zhu, Kai Zhang, Jingyun Liang, Jiezhang Cao, Bihan Wen, Radu Timofte, Luc Van Gool

Abstract

Image Restoration (IR) aims to recover high-quality images from degraded observations. While Plug-and-Play (PnP) methods have successfully modularized this process using discriminative denoisers, they often fail to reconstruct high-frequency details in severely ill-posed scenarios. This paper introduces DiffPIR, a flexible framework that integrates the generative power of Denoising Diffusion Models into the PnP paradigm. By leveraging Half-Quadratic Splitting (HQS), DiffPIR decouples the restoration process into a data fidelity step and a generative prior step. Experimental results on FFHQ and ImageNet demonstrate that DiffPIR achieves state-of-the-art perceptual quality in as few as 20 to 100 steps without requiring task-specific training.

Introduction

Image Restoration (IR) is a fundamental inverse problem in computer vision, mathematically represented as recovering a clean image $x$ from a corrupted observation $y = \Phi(x) + n$, where $\Phi$ is a degradation operator (e.g., blurring or downsampling) and $n$ is additive noise. Traditional Plug-and-Play (PnP) methods have gained popularity due to their modularity; they replace the proximal operator of a regularization term with a standard denoiser, effectively using it as an implicit image prior.

However, most existing PnP frameworks rely on discriminative denoisers like BM3D or CNN-based models. While these are excellent at suppressing noise, they lack the "imagination" required for tasks like 8x super-resolution or large-scale inpainting, where missing information must be hallucinated rather than just filtered. Conversely, while Denoising Diffusion Models (DDMs) offer unparalleled generative capabilities, they are often computationally expensive or require specific fine-tuning for different degradation tasks. DiffPIR addresses these challenges by bridging the gap between efficient PnP optimization and the generative strength of diffusion models.

Methodology

The HQS Framework

DiffPIR utilizes the Half-Quadratic Splitting (HQS) algorithm to decouple the data fidelity term and the prior term of the restoration objective. This results in two iterative subproblems:

  1. The Data Subproblem: This step ensures that the intermediate restored image remains consistent with the observed measurement $y$. For common degradations like blurring, inpainting, and super-resolution, the authors derive fast, closed-form analytic solutions using Fast Fourier Transforms (FFT) or iterative back-projection, significantly reducing computational overhead.
  2. The Prior Subproblem: This step involves denoising the intermediate result to ensure it aligns with the distribution of natural images. DiffPIR replaces the standard discriminative denoiser with a pre-trained, unconditional diffusion model (such as DDPM or DDIM).

Diffusion as a Generative Prior

By treating the diffusion model as a generative denoiser, DiffPIR can synthesize plausible high-frequency textures—such as skin pores or hair—that are absent in the corrupted input. To further refine the process, the authors introduce a hyperparameter $\zeta$ to control the variance of noise injected during the reverse diffusion process, allowing for a customizable balance between deterministic reconstruction and stochastic generation.

Additionally, the framework employs a "$t_{start}$ trick." For tasks like deblurring where the input $y$ still contains significant structural information, the diffusion process does not need to start from pure Gaussian noise. Instead, it begins from a partially noised version of the measurement, accelerating inference and improving stability.

Experimental Evaluation

Datasets and Setup

The researchers evaluated DiffPIR on two high-resolution benchmarks:

  • FFHQ (Flickr-Faces-HQ): 70,000 high-quality human face images at $256 \times 256$ resolution.
  • ImageNet: A diverse dataset of general objects, also tested at $256 \times 256$.

The benchmarks were conducted on 100 hold-out validation images from each set, focusing on tasks such as super-resolution, deblurring, and inpainting.

Performance and Efficiency

DiffPIR demonstrates significant improvements over existing diffusion-based restoration methods like DPS and DDRM. Key findings include:

  • Perceptual Quality: DiffPIR consistently outperforms competitors in FID (Fréchet Inception Distance) and LPIPS (Learned Perceptual Image Patch Similarity), metrics that correlate closely with human visual perception.
  • Computational Efficiency: While methods like DPS often require 1,000 Neural Function Evaluations (NFEs) to reach high quality, DiffPIR achieves superior results in only 20 to 100 NFEs. This order-of-magnitude speedup makes diffusion-based restoration more practical for real-world applications.
  • Versatility: Because the model is unconditional and training-free, a single pre-trained model can be applied to any linear inverse problem without retraining.

Limitations

Despite its performance, DiffPIR has certain limitations. Its efficiency is currently tied to the availability of fast analytic solutions for the data subproblem. For highly non-linear degradations, the framework may require first-order approximations which could impact accuracy. Furthermore, the model's performance is sensitive to hyperparameters like the guidance scale $\lambda$ and noise balance $\zeta$, which currently require manual tuning per task. Finally, in super-resolution tasks, the use of an approximated bicubic kernel can lead to small accumulated errors during the iterative sampling process.

Conclusion

DiffPIR represents a significant step forward in image restoration by successfully marrying the flexibility of Plug-and-Play frameworks with the generative prowess of diffusion models. By providing a training-free, efficient, and high-quality solution for various inverse problems, it sets a new standard for perceptual image reconstruction.

Summary updated

BibTeX
@inproceedings{zhu2023denoising,
  author = {Yuanzhi Zhu and Kai Zhang and Jingyun Liang and Jiezhang Cao and Bihan Wen and Radu Timofte and Luc Van Gool},
  title = {{Denoising Diffusion Models for Plug-and-Play Image Restoration}},
  booktitle = {Workshops @ CVPR},
  year = {2023},
  url = {https://openreview.net/forum?id=o4OaVeoufM},
}
Figure