Semi-Supervised Transfer Learning for Image Rain Removal.

Wei Wei, Deyu Meng, Qian Zhao, Zongben Xu, Ying WuCVPR 2019 · DOI

TL;DR

This paper introduces a novel semi-supervised approach for single image rain removal that leverages both synthetic (supervised) and real-world (unsupervised) rainy images during training. By doing so, it addresses the generalization gap between synthetic training data and real-world scenarios, leading to improved performance on diverse rain types.

What Problem Does This Paper Address?

Removing rain streaks from single images (Single Image Rain Removal or SIRR) is a challenging computer vision task. While deep learning methods have achieved state-of-the-art results, they typically rely on large datasets of paired rainy and clean images for training. Creating such datasets for real-world rain is difficult and time-consuming. Consequently, most methods use synthetically generated rain streaks added to clean images. However, these synthetic rain patterns often don't fully capture the complexity and diversity of real-world rain (e.g., varying streak directions due to wind, aggregation effects). This mismatch leads to models that perform well on synthetic data but struggle to generalize to actual rainy images, a problem the authors refer to as "bias-to-supervised-sample."

Methods

The core innovation of this paper is a semi-supervised transfer learning framework. Instead of solely relying on supervised pairs of synthetic rainy and clean images, the proposed method incorporates unsupervised real-world rainy images into the training process.

Here's a breakdown of the key components:

  • Shared Network Architecture: A deep convolutional neural network (CNN), specifically inspired by DerainNet [10], is used for rain removal. This network takes a rainy image as input and aims to output a clean image.
  • Supervised Loss: For the synthetic rainy image pairs, a standard least squares loss is used. This loss penalizes the difference between the network's output and the ground truth clean image.
  • Unsupervised Loss: For the real-world rainy images (where clean ground truth is unavailable), the authors formulate a loss based on modeling the rain streaks themselves. They propose that the residual (the difference between the input rainy image and the network's predicted clean image) can be approximated by a Gaussian Mixture Model (GMM). This GMM captures the stochastic nature of rain streaks. The loss function for unsupervised data is derived from the negative log-likelihood of this GMM.
  • Domain Adaptation Regularizer: To explicitly encourage the model to transfer knowledge from the synthetic domain to the real rain domain, a Kullback-Leibler (KL) divergence regularizer is introduced. This term penalizes the difference between the distribution of rain streaks learned from synthetic data and the GMM learned from real rain data, ensuring the model doesn't drift too far from the synthetic domain's characteristics.
  • Total Variation (TV) Regularizer: A TV regularizer is added to slightly smooth the output image, helping to remove residual noise and artifacts.
  • Expectation-Maximization (EM) Algorithm: Due to the intractable nature of the combined loss function, an EM algorithm is employed to iteratively optimize the GMM parameters and the network weights.

Datasets

  • Supervised Training Data: One million 64x64 synthetic rainy/clean image patch pairs, similar to those used in [10].
  • Unsupervised Training Data: One million 64x64 real-world rainy image patches collected from datasets provided by [29, 28, 32] and Google image search.
  • Test Data:
    • Synthesized rainy images generated using a different method than the training data ([28]) to create a distinct validation domain.
  • Real-world rainy images collected from Google search, chosen to represent diverse rain scenarios.

Key Insights and Ideas

  • The "Domain Gap" is Real and Problematic: The paper strongly argues that synthetic rain, even with variations, doesn't fully represent real-world rain. This gap is a significant bottleneck for deep learning models in SIRR.
  • Unsupervised Data as a Bridge: Incorporating real, unlabeled rainy images is not just about increasing data quantity; it's about providing the model with exposure to the true distribution of rain, enabling it to learn more robust and generalizable features.
  • Modeling Rain Residuals is Key: Instead of just trying to predict a clean image, modeling the rain streaks themselves (as a GMM) provides a powerful unsupervised signal for learning.
  • Transfer Learning is Crucial for Generalization: The semi-supervised approach, particularly with the KL divergence regularizer, explicitly guides the model to transfer its learned representations from the synthetic domain to the more complex real-world domain.

Key Results

  • Improved Performance on Real Data: The proposed semi-supervised method significantly outperforms existing state-of-the-art methods (including deep learning and model-based approaches) on real-world rainy images, both qualitatively and quantitatively.
  • Superior PSNR on Synthetic Data: The method also achieves the best Peak Signal-to-Noise Ratio (PSNR) on synthesized test data, demonstrating its effectiveness across different scenarios (sparse and dense rain).
  • Alleviates Overfitting: By using unsupervised data, the model is less prone to overfitting to the specific patterns of synthetic rain, leading to better generalization.
  • Reduced Data Collection Burden: The ability to use unlabeled real-world data reduces the need for extensive manual data collection and annotation.

Limitations and Future Work

  • Not "Almighty": The authors acknowledge that their model is not perfect for all rainy images, especially extremely complex scenarios.
  • Future Directions:
    • More Elaborate Priors: Incorporating more sophisticated priors for rain and background layers could further improve performance.
  • Broader Application: The semi-supervised transfer learning methodology could be extended to other image restoration tasks.
  • Combining Data and Model-Based Methods: The ultimate goal is to better integrate data-driven deep learning with model-based approaches for more explainable and robust solutions.

Summary updated

BibTeX
@inproceedings{wei2019semi,
  author = {Wei Wei and Deyu Meng and Qian Zhao and Zongben Xu and Ying Wu},
  title = {{Semi-Supervised Transfer Learning for Image Rain Removal.}},
  booktitle = {CVPR},
  year = {2019},
  doi = {10.1109/cvpr.2019.00400},
}
Figure