Skip to main content
QUICK REVIEW

[Paper Review] DiffIR: Efficient Diffusion Model for Image Restoration

Bin Xia, Yulun Zhang|arXiv (Cornell University)|Mar 16, 2023
Image and Signal Denoising MethodsComputer Science16 citations
TL;DR

DiffIR uses a compact IR prior representation and a two-stage training scheme to adapt diffusion models for image restoration, achieving state-of-the-art results with far fewer iterations and lower computation than prior DM-based IR methods.

ABSTRACT

Diffusion model (DM) has achieved SOTA performance by modeling the image synthesis process into a sequential application of a denoising network. However, different from image synthesis, image restoration (IR) has a strong constraint to generate results in accordance with ground-truth. Thus, for IR, traditional DMs running massive iterations on a large model to estimate whole images or feature maps is inefficient. To address this issue, we propose an efficient DM for IR (DiffIR), which consists of a compact IR prior extraction network (CPEN), dynamic IR transformer (DIRformer), and denoising network. Specifically, DiffIR has two training stages: pretraining and training DM. In pretraining, we input ground-truth images into CPEN$_{S1}$ to capture a compact IR prior representation (IPR) to guide DIRformer. In the second stage, we train the DM to directly estimate the same IRP as pretrained CPEN$_{S1}$ only using LQ images. We observe that since the IPR is only a compact vector, DiffIR can use fewer iterations than traditional DM to obtain accurate estimations and generate more stable and realistic results. Since the iterations are few, our DiffIR can adopt a joint optimization of CPEN$_{S2}$, DIRformer, and denoising network, which can further reduce the estimation error influence. We conduct extensive experiments on several IR tasks and achieve SOTA performance while consuming less computational costs. Code is available at \url{https://github.com/Zj-BinXia/DiffIR}.

Motivation & Objective

  • Motivate efficient use of diffusion models for image restoration where most input pixels are given.
  • Develop a compact IR prior representation (IPR) to guide restoration.
  • Propose a two-stage training scheme to leverage CPEN and diffusion for IR.
  • Enable joint optimization of CPENS2, the DIRformer, and the denoising network to reduce estimation errors.

Proposed method

  • Introduce CPEN to extract a compact IR prior representation from ground-truth images.
  • Propose Dynamic IRformer (DIRformer) with DMTA and DGFN to utilize the IPR for restoration.
  • Train in Stage 1 by jointly optimizing CPEN S1 and DIRformer with a reconstruction loss.
  • In Stage 2, train a diffusion model to estimate the IPR from low-quality images, using a compact latent vector and joint optimization.
  • Use CPEN S2 and a denoising network within the diffusion framework to iteratively refine the IPR and restore images.
Figure 1: The Mult-Adds are measured on 256 $\times$ 256 inputs. Our DiffIR achieves SOTA performance on IR tasks. Notably, LDM [ 50 ] and RePaint [ 40 ] are DM-based methods, and DiffIR is 1000 $\times$ more efficient than RePaint while achieving better performance.
Figure 1: The Mult-Adds are measured on 256 $\times$ 256 inputs. Our DiffIR achieves SOTA performance on IR tasks. Notably, LDM [ 50 ] and RePaint [ 40 ] are DM-based methods, and DiffIR is 1000 $\times$ more efficient than RePaint while achieving better performance.

Experimental results

Research questions

  • RQ1Can a diffusion model effectively operate on a compact IR prior vector rather than full images for IR tasks?
  • RQ2Does two-stage training (ground-truth guidance and low-quality guidance) improve restoration quality and stability?
  • RQ3Does joint optimization of CPEN S2, DIRformer, and the denoising network reduce error propagation and artifacts?
  • RQ4How does DiffIR perform across inpainting, super-resolution, and motion deblurring compared to state-of-the-art DM-based IR methods?

Key findings

  • DiffIR achieves state-of-the-art performance on multiple IR tasks while using substantially fewer iterations and lower computational resources.
  • The compact IPR, when guided by CPEN, enables effective restoration with a lightweight DIrformer.
  • Joint optimization of CPEN S2, DIRformer, and the denoising network mitigates estimation error impacts on restoration quality.
  • In experiments, DiffIR is significantly more efficient than RePaint and LDM, and outperforms several DM-based baselines in inpainting, SR, and deblurring.
  • Ablation studies show the benefits of the DiffIR S2 design, the joint training scheme, and avoiding variance noise in the reverse DM for IPR estimation.
Figure 2: The overview of the proposed DiffIR, which consists of DIRformer, CPEN, and denoising network. DiffIR has two training stages: (a) In the first stage, CPEN S1 takes the ground-truth image as input and outputs an IPR $\mathbf{Z}$ to guide DIRformer to restore images. We optimize the CPEN S1
Figure 2: The overview of the proposed DiffIR, which consists of DIRformer, CPEN, and denoising network. DiffIR has two training stages: (a) In the first stage, CPEN S1 takes the ground-truth image as input and outputs an IPR $\mathbf{Z}$ to guide DIRformer to restore images. We optimize the CPEN S1

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.