Hybrid CNN-Transformer Feature Fusion for Single Image Deraining

Xiang Chen, Jinshan Pan, Jiyang Lu, Zhentao Fan, Hao Li

Abstract

Single Image Deraining (SID) requires balancing local texture preservation with global structural consistency. We present the Hybrid CNN-Transformer Feature Fusion Network (HCT-FFN), a lightweight three-stage architecture that integrates the local modeling strengths of CNNs with the long-range dependency capabilities of Transformers. By employing a "sandwich" structure (CNN-Transformer-CNN) and a novel Interactive Fusion Branch (IFB), HCT-FFN achieves state-of-the-art performance with significantly fewer parameters than existing models, offering a highly efficient solution for real-time deraining.

Introduction

Single Image Deraining is a fundamental task in computer vision, complicated by the diverse density, direction, and shape of rain streaks. Traditional Convolutional Neural Networks (CNNs) are effective at capturing local textures due to their inductive bias for local invariance, yet they often struggle with global structures due to limited receptive fields. Conversely, Vision Transformers (ViTs) excel at modeling global dependencies through self-attention but may overlook fine-grained local details.

A major hurdle in hybrid architectures is the "knowledge discrepancy" between CNN and Transformer representations. Simple concatenation often fails to bridge this gap effectively. HCT-FFN addresses this by harmonizing these paradigms through a multi-stage fusion approach.

Methodology

The HCT-FFN architecture follows a three-stage "sandwich" design: Stage 1 (CNN), Stage 2 (Transformer), and Stage 3 (CNN).

The HCT-FFN architecture featuring three stages (CNN-Transformer-CNN) and specialized modules like DaMoE and BaViT.

Core Components

  1. Degradation-aware Mixture of Experts (DaMoE): Integrated into the CNN stages, DaMoE utilizes parallel "experts" (e.g., dilated convolutions) and an internal attention mechanism to adaptively weight operations based on local rain distribution.
  2. Background-aware Vision Transformer (BaViT): Occupying the middle stage, BaViT uses a "feature split" operation to reduce computational overhead while capturing long-range dependencies necessary for background texture recovery.
  3. Interactive Fusion Branch (IFB): Acts as the bridge between stages. It includes a Prior Guidance Block (PGB), which leverages Residual Channel Priors to identify object structures, and a Coupled Representation Block (CRB), which uses similarity maps to smooth knowledge transfer between CNN and Transformer features.

Evaluation and Results

HCT-FFN was evaluated on standard synthetic datasets (Rain100L, Rain100H, Rain12) and real-world benchmarks (RainDS-RS100).

Efficiency and Performance

A defining characteristic of HCT-FFN is its parameter efficiency. With only 0.87 million parameters, it outperforms significantly larger models. For instance, on the Rain100H dataset, HCT-FFN achieved a PSNR of 31.51 dB, surpassing Uformer-B (50.8M parameters, 31.06 dB) and MPRNet (3.63M parameters, 30.92 dB).

PSNR vs. Parameters comparison showing HCT-FFN's superior efficiency.

Qualitative Analysis

Visual results demonstrate that HCT-FFN produces cleaner edges and more consistent global textures compared to competitors, which often leave residual streaks or introduce blurring. The model also showed strong generalization on real-world images and competitive performance in image dehazing tasks (SateHaze1k).

Conclusion

The HCT-FFN demonstrates that a carefully designed hybrid architecture can achieve state-of-the-art deraining performance while remaining lightweight. The "C-T-C" sequence, combined with adaptive expert selection and interactive fusion, effectively bridges the gap between local and global feature representations. Future work will focus on deepening the interaction between global and local representations within individual stages to further refine rain distribution modeling.

Summary updated

BibTeX
@inproceedings{chen2023hybrid,
  author = {Xiang Chen and Jinshan Pan and Jiyang Lu and Zhentao Fan and Hao Li},
  title = {{Hybrid CNN-Transformer Feature Fusion for Single Image Deraining}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i1.25111},
}
Figure