NeurIPS 2026Coming to NeurIPS in Sydney?Explore papers, orals & directions

Improving Image De-raining Using Reference-Guided Transformers

Zihao Ye, Jae Hoon Cho, Changjae Oh · DOI

Abstract

Image de-raining is a critical task in computer vision to improve visibility and enhance the robustness of outdoor vision systems. While recent advances in de-raining methods have achieved remarkable performance, the challenge remains to produce high-quality and visually pleasing de-rained results. In this paper, we present a reference-guided de-raining filter (RDF), a transformer network that enhances de-raining results using a reference clean image as guidance. We leverage the capabilities of the proposed module to further refine the images de-rained by existing methods. We validate our method on three datasets and show that our module can improve the performance of existing prior-based, CNN-based, and transformer-based approaches.

Introduction

Outdoor vision systems, such as those in autonomous vehicles or surveillance, are significantly hampered by rain streaks that obscure the scene. While deep learning has advanced image de-raining, two primary challenges persist. First, Convolutional Neural Networks (CNNs) often have a limited receptive field, focusing on local pixels and failing to capture the long-range context necessary for removing heavy rain. Second, while Transformers excel at global context, they can struggle with local image details, often resulting in "over-smoothed" outputs that lack fine texture.

The core premise of this work is that a single rainy image often lacks sufficient information for perfect scene reconstruction. To address this, we introduce the Reference-guided De-raining Filter (RDF). The RDF is a transformer-based "plug-and-play" module that retrieves a similar clean image to serve as a structural guide, effectively "filling in the blanks" to restore details that standard models might blur or omit.

Methodology

The proposed framework acts as a refinement stage for existing de-rainers. The process involves four key steps:

  1. Initial De-raining: A rainy image ($X_r$) is processed by a baseline model (e.g., a CNN or Uformer) to produce an initial estimate ($\hat{X}_c$).
  2. Reference Retrieval: A database is searched for a clean image ($R_c$) visually similar to the target scene using image hashing.
  3. Symmetric Processing: To align the reference image with the target's characteristics, rain is synthesized on the reference, which is then passed through the same baseline model. This creates a "de-rained reference" ($\hat{R}_c$) containing similar artifacts to the target estimate.
  4. The RDF Module: This transformer-based core consists of a multi-scale Feature Extractor, a Feature Attention mechanism (using the target estimate as Query and de-rained reference as Key to borrow features from the clean reference Value), and a Feature Fusion stage using Cross-Scale Feature Integration (CSFI).

Experimental Setup

The method was evaluated on three major benchmarks:

  • BDD100K-Rain: A large-scale driving dataset with SyRaGAN-synthesized rain.
  • Cityscapes-Rain: Urban scenes with rendered rain streaks.
  • KITTI-Rain: Real-world driving conditions with "bad weather" rendering.

Key Insights

  • Artifact Matching: By processing the reference image through the baseline de-rainer, the model performs an "apples-to-apples" comparison. It identifies similarities between two images processed by the same algorithm, significantly improving attention accuracy.
  • Architectural Versatility: The RDF is model-agnostic. It consistently improves performance across various baselines, including prior-based (GMM), CNN-based (PReNet), and Transformer-based (Uformer) models.
  • Guidance Efficacy: Ablation studies using noise as a reference resulted in performance drops, confirming that the model learns specific semantic and structural cues from the reference image rather than just performing generic sharpening.

Results

The RDF consistently enhanced every baseline model across all tested datasets.

Quantitative Performance: On the KITTI-Rain dataset, the RDF improved the PSNR of the GMM baseline by 8.15 dB and the state-of-the-art Uformer by 1.46 dB. Higher SSIM scores across the board indicate superior preservation of fine-grained details.

Qualitative Comparison: As shown in Figure 1, the "Ours" results exhibit significantly sharper textures and fewer "ghosting" artifacts compared to the Uformer baseline. The reference image provides the necessary structural guidance to reconstruct the scene more accurately.

Qualitative comparison of de-raining results. From top to bottom: rainy input, Uformer baseline, reference image, our RDF-enhanced result, and ground truth.

Conclusion and Future Work

While the RDF provides significant improvements, it currently depends on a database of similar clean images. If the retrieval system fails to find a relevant match, the enhancement is less effective. Additionally, the secondary transformer filter adds computational overhead. Future research may explore using text-to-image generative models to synthesize clean reference images on the fly based on scene context, potentially removing the need for a static image database.

Summary updated

Abstract

Image de-raining is a critical task in computer vision to improve visibility and enhance the robustness of outdoor vision systems. While recent advances in de-raining methods have achieved remarkable performance, the challenge remains to produce high-quality and visually pleasing de-rained results. In this paper, we present a reference-guided de-raining filter, a transformer network that enhances de-raining results using a reference clean image as guidance. We leverage the capabilities of the proposed module to further refine the images de-rained by existing methods. We validate our method on three datasets and show that our module can improve the performance of existing prior-based, CNN-based, and transformer-based approaches.
BibTeX
@misc{ye2024improving,
  author = {Zihao Ye and Jae Hoon Cho and Changjae Oh},
  title = {{Improving Image De-raining Using Reference-Guided Transformers}},
  year = {2024},
  eprint = {2408.00258},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.00258},
}
Figure