Multi-Task Learning Enhanced Single Image De-Raining

Yulong Fan, Rong Chen, Bo LiarXiv 2020

Introduction

Single-image de-raining is a fundamental yet challenging computer vision task that aims to recover a clean background from an image obscured by rain streaks. This problem is inherently ill-posed, as a single rainy pixel can represent an infinite number of combinations of background and rain. While deep learning has significantly advanced the field, many existing models struggle with two primary issues: the loss of fine-grained structural details (leading to blurry reconstructions) and the difficulty of balancing multiple auxiliary training tasks, which often requires tedious manual hyperparameter tuning.

To address these challenges, the Multi-task Enhanced Network (MENET) is proposed. MENET treats de-raining as a multi-task optimization problem, utilizing a U-Net backbone enhanced with novel structural layers and automated loss-weighting mechanisms to achieve high-fidelity results at real-time speeds.

The MENET Framework

Multi-Task Loss Functions

Rather than relying solely on standard pixel-wise reconstruction losses like Mean Squared Error (MSE), which often result in over-smoothed images, MENET incorporates two specialized auxiliary losses:

  1. Edge-Aware Loss: This loss utilizes a shallow, non-trainable network equipped with Sobel filters. By focusing on high-frequency components, it forces the model to prioritize the reconstruction of sharp boundaries and edges.
  2. Texture Matching Loss: Borrowing techniques from style transfer, this loss employs Gram matrices to ensure that the local patterns and textures of the de-rained output closely match the ground truth, preserving the natural "feel" of the scene.

Structural Innovations

MENET introduces desubpixel and subpixel layers for downsampling and upsampling, respectively. Unlike standard max-pooling or strided convolutions—which discard spatial information—desubpixel layers reshuffle spatial data into the channel dimension. This reversible process ensures that all high-frequency information is preserved for the final reconstruction phase. Additionally, a Channel Attention (CA) module is integrated to help the network focus on the most informative feature maps while suppressing irrelevant noise.

Automated Task Balancing via Dynamic Weighting

One of the most significant contributions of this work is the introduction of two dynamic weighting algorithms: Gradient-Balanced (GB) and Loss-Balanced (LB). In traditional multi-task learning, researchers must manually tune the weights of different loss components. The GB and LB algorithms automate this process by adjusting the importance of each task during training based on their current gradients or magnitudes. This "meta-optimization" ensures that no single task dominates the learning process, allowing the model to converge on a solution that balances pixel accuracy with structural and textural integrity.

Experimental Results

Quantitative Performance

The model was rigorously evaluated on synthetic benchmarks, including the Rain100L (light rain) and Rain100H (heavy rain) datasets. On the challenging Rain100H dataset, MENET-GB achieved a PSNR of 28.14 and an SSIM of 0.8524, outperforming established models such as DDN and RESCAN.

Qualitative Quality and Speed

Visually, MENET excels at removing both distinct rain streaks and the "rain accumulation" effect—the misty, foggy appearance common in heavy downpours. As shown in the comparison below, MENET-LB maintains significantly sharper background textures, such as the details on the church facade and the windows of the skyscraper, compared to competing methods.

Qualitative comparison of MENET-LB against other state-of-the-art de-raining methods. MENET-LB effectively removes rain streaks and accumulation while preserving background sharpness compared to DDN, JORDER-E, and RESCAN.

Beyond image quality, MENET is designed for efficiency. It can process a 224x224 image in just 0.0030 seconds on a GPU. This is roughly five times faster than JORDER-E and over thirteen times faster than RESCAN, making it highly suitable for real-time applications like autonomous driving or outdoor surveillance.

Conclusion and Future Work

MENET demonstrates that treating de-raining as a multi-task problem, supported by information-preserving architectures and automated loss balancing, yields superior results in both quality and efficiency. While the model shows some limitations in handling extreme real-world light interference (halation) or highly unusual rain patterns, it represents a significant step toward robust, real-time image restoration. Future research may explore incorporating temporal data for video de-raining or expanding the diversity of synthetic training sets to further improve generalization to natural environments.

Summary updated

BibTeX
@misc{fan2020multi,
  author = {Yulong Fan and Rong Chen and Bo Li},
  title = {{Multi-Task Learning Enhanced Single Image De-Raining}},
  year = {2020},
  eprint = {2003.09689},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.09689},
}
Figure