Rethinking Real-world Image Deraining via An Unpaired Degradation-Conditioned Diffusion Model

Yiyang Shen, Mingqiang Wei, Yongzhen Wang, Xueyang Fu, Jing Qin

This paper introduces RainDiff, a pioneering framework that applies diffusion models to real-world image deraining without the need for paired training data. By integrating a non-adversarial cycle-consistent architecture with a degradation-conditioned hypernetwork, the authors achieve state-of-the-art results that handle the complex, multi-modal nature of real-world rain.

TL;DR

RainDiff is the first unpaired, diffusion-based paradigm for real-world image deraining, eliminating the need for hard-to-obtain clean/rainy image pairs. It uses a degradation-conditioned hypernetwork to adapt to diverse rain patterns (streaks, haze, drops) while providing a more stable, non-adversarial training process compared to traditional GAN-based methods.

What Problem Does This Paper Address?

Image deraining is fundamentally an "ill-posed" problem—there are many possible clean images for a single rainy one. While deep learning has improved synthetic deraining, real-world application faces two massive hurdles:

  1. The Data Gap: It is nearly impossible to collect large-scale, perfectly aligned pairs of "rainy" and "clean" images in the real world. Most models rely on synthetic data, which fails to generalize to the messy complexity of actual rain.
  2. Degradation Diversity: Real-world rain isn't just streaks; it’s a mixture of streaks, raindrops on lenses, and "rainy haze" (accumulation of light scattering). Most existing models are designed for a single type of degradation and struggle when faced with a mixture.

Existing unpaired methods typically rely on Generative Adversarial Networks (GANs), which are notoriously difficult to train, prone to "model collapse," and often introduce unwanted artifacts or color distortions.

Methods

RainDiff moves away from the instability of GANs toward the generative power of Denoising Diffusion Probabilistic Models (DDPM). The framework consists of two main components:

1. Unpaired Cycle-Consistent Architecture

To train without paired data, the authors use a cycle-consistent loop (similar in spirit to CycleGAN but without the adversarial discriminators).

  • Two simple U-Net generators create initial translations (Rainy $\rightarrow$ Clean and Clean $\rightarrow$ Rainy).
  • These translations provide the "pseudo-pairs" needed to train the core diffusion model.
  • Crucially, these generators are only used during training; the final deraining is handled entirely by the diffusion process.

2. Degradation-Conditioned Diffusion Model (DCDM)

This is the "brain" of RainDiff, designed to handle multiple rain types (see Figure 3).

  • DG-Hyper (Degradation-guided Hypernetwork): This sub-network learns a latent representation of the specific rain degradation in an image using contrastive learning. It then dynamically predicts the weights (kernels) for the main noise estimator. In essence, the model "reconfigures" itself based on whether it sees streaks, haze, or drops.
  • Multi-scale Noise Estimator: Since rain patterns often look similar at different scales, the model estimates noise across multiple resolutions (1x, 1/2x, 1/4x) and uses an attention mechanism to fuse these features, ensuring scale-robustness.
The pipeline of RainDiff, showing the cycle-consistent training loop.

Datasets

The authors established a comprehensive mixture dataset to evaluate performance across five distinct rain degradations:

  • RS (Rain Streaks): From RainDS.
  • RH (Rainy Haze): From RESIDE-$\beta$ (OTS/RTTS).
  • RD (Raindrops): From RainDS.
  • RDS & RHS: Combinations of streaks, drops, and haze from RainCityscapes and GT-Rain.

The final dataset includes 5,000 synthetic and 750 real-world training images, with a separate test set of 1,000 synthetic and 490 real-world images.

Key Insights and Ideas

  • Stability over Adversarialism: By replacing GAN discriminators with a diffusive generative process, RainDiff avoids common pitfalls like training instability and artifacts. The diffusion process acts as a refiner, leading to perceptually more pleasing results.
  • Hypernetworks as Adapters: The use of a hypernetwork to modulate weights is a clever way to handle "mixture" degradations. Instead of training a massive model to handle everything at once, the model learns to adapt its parameters to the specific degradation detected in the input.
  • Scale-Awareness: Recognizing that rain streaks maintain similar characteristics across different image scales allows the multi-scale noise estimator to capture more comprehensive features than a single-scale approach.

Key Results

RainDiff significantly outperforms existing unpaired and semi-supervised methods and even rivals some fully supervised models.

  • Quantitative: On real-world datasets (RDS), RainDiff achieved a PSNR of 22.18 and SSIM of 0.681, markedly higher than the leading unpaired competitor, NLCL (PSNR 19.88, SSIM 0.580).
  • Qualitative: As shown in Figure 4, RainDiff produces cleaner images with better detail retention and fewer color distortions compared to CycleGAN or DCD-GAN.
Qualitative comparison on real-world rainy images. RainDiff (f) shows clearer details and better rain removal across various types.

Limitations and Future Work

  • Inference Speed: Like most diffusion models, RainDiff requires multiple iterative steps to generate an image. Even with the "implicit sampling" strategy used to accelerate the process, it remains slower than simple end-to-end CNNs.
  • Weather Generalization: While it handles various rain types, its performance on other adverse weather conditions like snow or low-light rainy scenes remains an open question for future research.
  • Computational Cost: Training a diffusion model within a cycle-consistent framework is computationally intensive compared to standard supervised learning.

Summary updated

BibTeX
@misc{shen2023rethinking,
  author = {Yiyang Shen and Mingqiang Wei and Yongzhen Wang and Xueyang Fu and Jing Qin},
  title = {{Rethinking Real-world Image Deraining via An Unpaired Degradation-Conditioned Diffusion Model}},
  year = {2023},
  eprint = {2301.09430},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.09430},
}
Figure