Introduction
Single Image Deraining (SID) is a critical preprocessing step for outdoor computer vision systems, such as those used in autonomous driving and surveillance. While deep learning has significantly advanced the field, most existing models rely on large-scale paired datasets consisting of synthetic rainy images and their clean counterparts. This reliance creates a significant performance gap when models encounter real-world rain, which often differs in appearance and density from synthetic approximations. Furthermore, supervised models frequently struggle to distinguish between rain streaks and similar-looking background textures, such as road markings or fences.
To address these challenges, we present MOSS (Memory-Oriented Semi-Supervised), a novel framework designed to bridge the gap between synthetic training data and real-world rainy scenes. MOSS leverages a self-supervised memory module and a target-network-based self-training scheme to effectively remove complex real-world rain while preserving critical background details.
Methodology
The MOSS framework introduces two primary innovations to improve generalization and robustness:
1. Memory-Oriented Encoder-Decoder Network (MOEDN)
The core of the architecture is the MOEDN, which consists of an encoder, a memory module, and a decoder. The encoder extracts high-level features from the rainy input. These features are then used to query the Memory Module, which acts as a repository of prototypical rain patterns.
Unlike traditional networks that must "re-learn" rain for every image, the memory module provides a prior of rain styles. It uses soft-attentive reading to retrieve relevant patterns and is updated in a self-supervised manner using an exponential moving average (EMA) of observed features. The decoder then uses these retrieved features to reconstruct a "rain residual" (the streaks alone), which is subtracted from the original image to reveal the clean background. This subtraction-based approach forces the network to focus specifically on rain-relevant features.
2. Self-Training Mechanism
To utilize unlabeled real-world data, MOSS employs a Target Network—a slowly evolving copy of the main network. The Target Network generates "pseudo-labels" for unlabeled real-world rainy images. By mixing real backgrounds with synthetic or pseudo-rain residuals, the system creates pseudo-paired data that forces the main network to adapt to diverse, real-world rain styles without requiring manual ground-truth labels.
Key Results
The effectiveness of MOSS was evaluated on major benchmarks, including DDN-SIRR, Rain200H, and Rain800, as well as various real-world images.
Quantitative Performance
On the challenging DDN-SIRR "Dense" rain test set, MOSS achieved a PSNR of 22.91, significantly outperforming the previous semi-supervised state-of-the-art, Syn2Real (22.36), and the supervised PReNet (20.65). These results underscore the value of incorporating unlabeled real-world data into the training process.
Qualitative and Real-World Impact
Visual comparisons demonstrate that MOSS is superior at removing dense rain streaks while better preserving background textures. In autonomous driving scenarios, MOSS was notably more effective at keeping traffic markings visible compared to competing methods, which often blurred or erased these critical features.
In a user study, MOSS was preferred 32.92% of the time, the highest among all tested methods. Furthermore, the model is highly efficient, with an inference time of just 7.93ms for a 256x256 image, making it suitable for real-time computer vision applications.
Conclusion
MOSS represents a significant step forward in semi-supervised image deraining. By combining a memory-oriented architecture with a robust self-training scheme, the framework successfully bridges the domain gap between synthetic and real-world data. Future work will explore the application of this memory-oriented approach to other image restoration tasks, such as dehazing and denoising, where paired real-world data is similarly scarce.
Summary updated