Contrastive Learning Based Recursive Dynamic Multi-Scale Network for Image Deraining

Zhiying Jiang, Risheng Liu, Shuzhou Yang, Zengxi Zhang, Xin FanarXiv 2023 · DOI

Abstract

Single-image deraining is a challenging task due to the complex overlap of rain streaks and background textures. We present RDMC, a recursive dynamic multi-scale network that leverages contrastive learning and automated architecture design. RDMC employs a Contrastive Prior (CP) to regularize the restoration process, a Multi-scale Feature Extraction (MFE) module for diverse rain patterns, and Dynamic Cross-level Recruitment (DCR) optimized via Neural Architecture Search (NAS). Experimental results demonstrate state-of-the-art performance on synthetic and real-world datasets, with significant improvements in downstream vision tasks like object detection and semantic segmentation.

Introduction

Rain streaks significantly degrade the performance of computer vision systems in outdoor environments, such as autonomous driving and surveillance. Single-image deraining is a "highly ill-posed" problem because rain streaks and background details often overlap in the high-frequency spectrum, making separation difficult.

Complex rain patterns overlapping with background details.

Existing deep learning methods often face three main hurdles:

  1. Overfitting: Models may over-rely on simple similarity to ground truth, leading to poor generalization on real-world rain.
  2. Information Loss: Deep architectures can lose shallow-level textures as data passes through many layers.
  3. Static Design: Manually designed skip connections in U-Net-style networks may not be optimal for diverse rain scales and shapes.

Methodology

The RDMC framework introduces three core innovations to address these challenges.

Recursive Multi-Scale Extraction (MFE)

RDMC utilizes a recursive mechanism, typically involving three stages, to remove rain progressively. Within each stage, a Multi-scale Feature Extraction (MFE) module uses parallel paths with different dilated factors (DF=1, 2, 3). This allows the network to capture rain streaks of varying sizes and orientations without sacrificing spatial resolution.

Dynamic Cross-level Recruitment (DCR) via NAS

To mitigate information loss in deep layers, the authors employ Neural Architecture Search (NAS)—specifically the DARTS algorithm—to automatically determine the optimal "skip-up" and "skip-down" connections between the encoder and decoder. This Dynamic Cross-level Recruitment (DCR) ensures that high-level features are selectively compensated by the most relevant shallow-level information.

The RDMC architecture, featuring (a) the recursive framework, (b) the DCR module, and (c) the MFE module, alongside the Contrastive Prior loss setup.

Contrastive Prior (CP)

A novel Contrastive Prior (CP) is introduced to regularize the restoration. By treating the rainy image as a negative sample, the ground truth as a positive sample, and the restored image as the anchor, the loss function forces the network to push the restored image away from "rainy" representations and pull it toward "clear" ones in a latent VGG-19 feature space.

Experimental Results

The model was evaluated on synthetic benchmarks (Rain12, Rain100L/H, Rain1200, Rain1400) and real-world images using metrics such as PSNR, SSIM, and NIQE.

Quantitative Performance

RDMC achieved state-of-the-art results, notably reaching a PSNR of 35.90 dB on the Rain12 dataset. Despite its recursive nature, the model is highly efficient, utilizing only 249K parameters compared to 3,637K in models like MPRNet.

Downstream Task Impact

The practical utility of RDMC was demonstrated through significant boosts in downstream task accuracy on rainy data:

  • Object Detection (VOC2007): mAP improved to 97.26%.
  • Semantic Segmentation (ADE20K): mIoU reached 79.01%, outperforming competitors by 6-10%.

Conclusion

RDMC represents a significant advancement in image deraining by combining recursive refinement with automated architecture search and contrastive regularization. While the model excels at streak removal, future work will focus on addressing heavy rain accumulation and "muddy" rain effects where the background is severely obscured.

Summary updated

BibTeX
@misc{jiang2023contrastive,
  author = {Zhiying Jiang and Risheng Liu and Shuzhou Yang and Zengxi Zhang and Xin Fan},
  title = {{Contrastive Learning Based Recursive Dynamic Multi-Scale Network for Image Deraining}},
  year = {2023},
  eprint = {2305.18092},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.18092},
}
Figure