DiffIR: Efficient Diffusion Model for Image Restoration

Bin Xia, Yulun Zhang, Shiyin Wang, Yitong Wang, Xinglong Wu, Yapeng Tian, Wenming Yang, Luc Van Gool

Introduction

Diffusion models (DMs) have demonstrated remarkable success in image synthesis, but their application to Image Restoration (IR) tasks—such as inpainting, super-resolution, and deblurring—has been hindered by extreme computational costs. Traditional DMs are "synthesis-first," starting from pure noise and iteratively refining it over hundreds or thousands of steps. In IR, however, the low-quality (LQ) input already provides significant structural information. Using a standard DM to denoise full-resolution feature maps is often wasteful and can lead to "hallucinations" that deviate from the original scene.

DiffIR addresses these challenges by reimagining the diffusion process. Instead of synthesizing an entire high-resolution image, DiffIR focuses on estimating a compact prior representation, achieving state-of-the-art results with up to 1000x greater efficiency than previous diffusion-based restorers.

Methodology

DiffIR decouples the restoration process into two distinct training stages to move the diffusion process from high-dimensional pixel space to a compact vector space:

  1. Stage 1: Pretraining the Restorer. The framework utilizes a Compact IR Prior Extraction Network (CPEN) and a Dynamic IR Transformer (DIRformer). During pretraining, CPEN compresses the "restoration essence" of a ground-truth (HQ) image into a compact vector called the IR Prior Representation (IPR). This IPR then guides the DIRformer to reconstruct the HQ image from its LQ counterpart.
  2. Stage 2: Training the Diffusion Model. Rather than predicting pixels, a small denoising network is trained to estimate the IPR vector from the LQ image.
The two-stage training architecture of DiffIR: Stage 1 learns a compact prior (IPR), and Stage 2 trains a DM to predict that prior.

By shifting the diffusion process to this compact vector space, DiffIR requires significantly fewer iterations—as few as 4 steps—to achieve high-quality results. This efficiency allows for joint optimization of the denoising network and the DIRformer, making the transformer robust to minor errors in the DM's prior estimation.

Experimental Results

DiffIR was evaluated across standard benchmarks for inpainting (Places, CelebA-HQ), super-resolution (DIV2K, Set5, Urban100), and motion deblurring (GoPro, HIDE).

Performance and Efficiency

DiffIR consistently outperforms both traditional CNN/Transformer baselines and previous DM-based methods across all metrics:

  • Efficiency: In inpainting tasks, DiffIR is 1000x more efficient than RePaint while achieving superior FID scores.
  • SOTA Results: In motion deblurring on the GoPro dataset, it surpassed the previous best (Restormer) by 0.28 dB in PSNR while using significantly fewer computational resources (Mult-Adds).
  • Visual Fidelity: Qualitative results demonstrate that DiffIR produces sharper textures and more accurate structures compared to methods like LDM or LaMa.
Efficiency vs. Performance plots showing DiffIR (red star) achieving superior results with drastically lower computational costs (Mult-Adds) across inpainting, super-resolution, and deblurring.

Conclusion

DiffIR demonstrates that diffusion models can be highly effective for image restoration when focused on compact prior estimation rather than full-image synthesis. By reducing the diffusion process to just a few steps in a latent vector space, the model achieves a superior balance of efficiency and restoration quality, setting a new benchmark for the field.

Summary updated

BibTeX
@inproceedings{xia2023diffir,
  author = {Bin Xia and Yulun Zhang and Shiyin Wang and Yitong Wang and Xinglong Wu and Yapeng Tian and Wenming Yang and Luc Van Gool},
  title = {{DiffIR: Efficient Diffusion Model for Image Restoration}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
}
Figure