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

Mingqiang Wei, Yiyang Shen, Yongzhen Wang, Haoran Xie, Fu Lee Wang · DOI

Abstract

Recent diffusion models have exhibited great potential in generative modeling tasks, largely due to their ability to train stably on large sets of paired synthetic data. However, adapting these models to real-world image deraining remains difficult for two reasons. First, collecting large-scale paired real-world clean/rainy datasets is unfeasible, yet standard conditional diffusion models rely heavily on such data. Second, real-world rain involves diverse, unknown degradation types, challenging the generative process. To address these, we propose RainDiff, the first real-world image deraining paradigm based on diffusion models. We introduce a stable, non-adversarial unpaired cycle-consistent architecture for training with only unpaired data and a degradation-conditioned diffusion model (DCDM) that refines outputs using learned priors of multiple rain degradations. Extensive experiments confirm RainDiff's superiority over existing unpaired/semi-supervised methods and its competitive performance against fully-supervised ones.

The Challenge of Real-World Deraining

Most image deraining models are trained on synthetic datasets where "clean" and "rainy" image pairs are perfectly aligned. However, real-world rain is far more complex, consisting of diverse patterns like streaks, raindrops, and rainy haze. Collecting paired real-world data is nearly impossible—one cannot capture the exact same scene twice, once with rain and once without. Consequently, models trained on synthetic data often fail to generalize to the unpredictable nature of real-world weather.

The RainDiff Approach

RainDiff addresses these hurdles through a two-pronged approach: an unpaired learning architecture and a degradation-aware diffusion process.

Unpaired Cycle-Consistent Architecture

Instead of relying on unstable adversarial training (GANs), RainDiff utilizes a cycle-consistent circuit integrated with a diffusion model. The model learns to translate images from the rainy domain to the clean domain and back again. This circular supervision allows the model to be trained end-to-end using only unpaired sets of clean and rainy images, providing a more stable training signal than traditional GAN-based unpaired methods.

Degradation-Conditioned Diffusion Model (DCDM)

To handle the variety of real-world rain, the DCDM incorporates two key components:

  • Degradation-guided Hypernetwork (DG-Hyper): This network learns a latent representation of the specific rain type in an image. It acts as a "meta-learner," predicting optimal weights for the noise estimator based on the detected degradation.
  • Multi-scale Noise Estimator: Since rain streaks vary in size, this component processes the image at multiple scales (1x, 0.5x, 0.25x) and uses attention mechanisms to fuse these features, ensuring the model captures both fine raindrops and large streaks.

Experimental Results

The researchers evaluated RainDiff on a comprehensive mixture dataset covering various rain degradations, including RainDS, RESIDE-$\beta$, RainCityscapes, and GT-Rain.

Qualitative Comparison

Visual results highlight RainDiff's ability to produce cleaner images with fewer artifacts and better color preservation than competing methods. It successfully removes complex mixtures of rain and haze that often cause other models to "smudge" or blur the underlying scene.

Visual comparison of deraining results on real-world rainy images across various methods. RainDiff (f) produces the cleanest results.
Detailed view of the deraining result achieved by RainDiff, showing superior texture restoration and rain removal.

Quantitative Performance

On synthetic benchmarks, RainDiff achieved a PSNR of 31.30 dB on rain streaks (RS), significantly outperforming other unpaired methods like CycleGAN (25.08 dB). It also showed competitive advantages over several fully-supervised models, demonstrating the effectiveness of the DCDM.

Conclusion

RainDiff sets a new standard for real-world image deraining by successfully bridging the gap between synthetic training and real-world application. By combining the generative power of diffusion models with a stable cycle-consistent framework and dynamic degradation conditioning, it offers a robust solution for restoring images affected by complex weather patterns. While computational efficiency remains a challenge typical of diffusion models, RainDiff represents a significant step forward in unsupervised image restoration.

Summary updated

BibTeX
@misc{wei2023rethinking,
  author = {Mingqiang Wei and Yiyang Shen and Yongzhen Wang and Haoran Xie and Fu Lee Wang},
  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