Residual Denoising Diffusion Models

Jiawei Liu, Qiang Wang, Huijie Fan, Yinong Wang, Yandong Tang, Liangqiong Qu

TL;DR

Residual Denoising Diffusion Models (RDDM) introduce a dual diffusion framework that splits the standard diffusion process into directional "residual diffusion" and random "noise diffusion." This elegant decoupling unifies image generation and restoration into a single, interpretable model, allowing a generic UNet to achieve state-of-the-art restoration performance in as few as 2 to 5 sampling steps.

What Problem Does This Paper Address?

Standard denoising diffusion models (like DDPM and DDIM) are incredibly powerful for generating images from scratch, but they struggle with image restoration tasks such as removing shadows, blur, or rain. Typically, researchers adapt them by feeding a degraded image as a conditional input while keeping the original diffusion process intact.

However, this forward process completely destroys the image structure by turning it into pure Gaussian noise, ignoring the fact that the degraded image is already known. Starting the reverse process from pure noise is both computationally inefficient and non-interpretable for restoration tasks, where the target domain is tightly bound to the input domain.

Figure 1. Denoising diffusion process - DDPM [17] (a) and our residual denoising diffusion process (b). For image restoration, we introduce residual diffusion to represent the diffusion direction from the target image to the input image.

Methods

RDDM solves this by introducing a dual diffusion process that explicitly incorporates the residual ($I_{res} = I_{in} - I_{0}$), which is the difference between the degraded input image ($I_{in}$) and the target clean image ($I_{0}$).

Instead of a single coefficient schedule, RDDM employs two independent schedules:

  1. Residual Diffusion: Controls the directional shift from the target image to the degraded input image, prioritizing certainty.
  2. Noise Diffusion: Controls random perturbations in the diffusion process, emphasizing diversity.
Figure 3. The proposed residual denoising diffusion model (RDDM) is a unified framework for image generation and restoration (a shadow removal task is shown here). We introduce residuals (Ires) in RDDM, redefining the forward diffusion process to involve simultaneous diffusion of residuals and noise. The residuals (Ires = Iin −I0) diffusion represents the directional diffusion from the target image I0 to the degraded input image Iin, while the noise (ϵ) diffusion represents the random perturbations in the diffusion process. In RDDM, I0 gradually diffuses into IT = Iin + ϵ, ϵ ∼N(0, I). In the third columns, IT is a purely noisy image for image generation since Iin = 0, and a noise-carrying degraded image for image restoration as Iin is the degraded image.

The authors propose three sampling methods based on what the network predicts: residual prediction (SM-Res), noise prediction (SM-N), and joint residual-noise prediction (SM-Res-N). To make this practical for unknown tasks, they introduce an Automatic Objective Selection Algorithm (AOSA), which automatically learns whether a task requires predicting noise or residuals. Furthermore, they demonstrate a partially path-independent generation process, proving that the speed of removing residuals can be dynamically adjusted during inference without breaking the model.

Datasets

The authors extensively evaluate RDDM across several standard image generation and restoration benchmarks:

  • Image Generation / Inpainting / Translation: CelebA (64×64 and 256×256), CelebA-HQ, and AFHQ.
  • Shadow Removal: ISTD dataset.
  • Low-Light Enhancement: LOL and SID-RGB datasets.
  • Image Deraining: RainDrop dataset.
  • Image Deblurring: GoPro dataset.

Key Insights and Ideas

  • Certainty vs. Diversity: Residuals represent deterministic, directional changes (perfect for restoration tasks where certainty is high), while noise introduces stochastic diversity (essential for creative generation). Unifying them allows one framework to balance both requirements.
  • Decoupled Control: Separating residuals and noise means the "deresidual pace" can be adjusted independently of denoising during the reverse process. You can even reduce the noise perturbation to zero, causing RDDM to degenerate into a deterministic image interpolation model similar to Rectified Flow.
  • Seamless Compatibility: RDDM is mathematically compatible with existing pre-trained DDPM/DDIM models. Through a simple coefficient transformation, a pre-trained model can be converted into an RDDM without retraining.
Figure 2. Decoupled dual diffusion framework. The previous for- ward diffusion process is decoupled into residual diffusion and noise diffusion, while in the reverse process, the simultaneous sampling can be decoupled into first removing the residuals and then removing noise.

Key Results

  • High Efficiency: For image restoration, RDDM achieves competitive or state-of-the-art (SOTA) performance in remarkably few steps—requiring just 2 steps for low-light enhancement and 5 steps for shadow removal and deraining.
  • Simplicity Beats Complexity: Using a generic UNet trained with a simple $L_1$ loss and a batch size of 1, RDDM outperforms or matches highly specialized, complex SOTA architectures (like multi-stage networks or Transformers). For example, on the LOL dataset, RDDM achieved a top-tier PSNR of 25.392 and an SSIM of 0.937.
  • Resource Friendly: Training with the SM-Res method requires only 4.8G of GPU memory, making diffusion models accessible to researchers with constrained hardware.

Limitations and Future Work

Because RDDM is designed as a unified prototype framework for both generation and restoration, it may face minor performance limitations compared to highly customized, task-specific SOTA architectures.

The authors suggest several promising future directions:

  1. Scaling up the network parameters (e.g., larger UNet architectures) and batch sizes to further boost performance.
  2. Developing a single diffusion model trained to handle multiple distinct restoration tasks simultaneously.
  3. Implementing adaptive coefficient schedules to further reduce sampling steps while improving image quality.
  4. Exploring the use of residuals in consistency model distillation to accelerate convergence.

Summary updated

BibTeX
@misc{liu2023residual,
  author = {Jiawei Liu and Qiang Wang and Huijie Fan and Yinong Wang and Yandong Tang and Liangqiong Qu},
  title = {{Residual Denoising Diffusion Models}},
  year = {2023},
  eprint = {2308.13712},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.13712},
}
Figure