A Decoder-free Transformer-like Architecture for High-efficiency Single Image Deraining

Xiao Wu, Ting-Zhu Huang, Liang-Jian Deng, Tian-Jing Zhang

Abstract

Single image deraining is a critical task in computer vision, aimed at removing rain streaks and the accompanying "veil" effect. While Vision Transformers (ViTs) have shown promise in capturing the long-range dependencies necessary for this task, their standard encoder-decoder architectures are often computationally prohibitive. We propose the Decoder-Free Transformer-Like (DFTL) architecture, which demonstrates that heavy Transformer decoders are largely redundant for image restoration. By replacing the decoder with a lightweight Progressive Patch Merging (PPM) module and utilizing efficient linear projections, DFTL achieves state-of-the-art results with significantly lower GPU memory usage and faster runtimes.

Introduction

Single image deraining involves distinguishing rain streaks from complex background textures. Convolutional Neural Networks (CNNs) often struggle with this due to their limited receptive fields. Vision Transformers (ViTs) address this by using self-attention to capture global context, but they impose a massive computational "tax." Standard encoder-decoder Transformer architectures are memory-hungry and slow, making them difficult to deploy on consumer hardware. This research identifies the Transformer decoder blocks (TDB) as a primary bottleneck that contributes heavily to complexity while offering diminishing returns in actual deraining performance.

Methodology

The DFTL framework departs from the traditional U-Net-style encoder-decoder Transformer through three core innovations:

  1. Cheap Linear Projection (LP): Instead of standard linear projections or heavy convolutions, DFTL uses a depthwise-like operation to expand channels more efficiently, reducing the initial parameter count.
  2. Decoder-Free Design: The architecture completely removes Transformer Decoder Blocks, relying instead on a high-efficiency encoder and a novel restoration path.
  3. Progressive Patch Merging (PPM): To replace the decoder, PPM uses bilinear interpolation for upsampling and simple convolution layers to restore spatial details. This approach maintains performance while slashing computational overhead.
The proposed DFTL architecture (b) compared to a standard Transformer architecture (a), highlighting the removal of the decoder blocks.

Additionally, the paper introduces two attention variants: DFTL-W (Window-based) for local pixel similarity and DFTL-X (Cross-Covariance) for efficient channel-dimension correlations. Training is guided by a Gradient-Based Hybrid Loss (GBHL) function combining SSIM, MAE, and MSE.

Experimental Results

The model was evaluated on five synthetic datasets (Rain12, Rain200L, Rain200H, DID-Data, and DDN-Data) and real-world rainy images. DFTL-X achieved the highest PSNR on Rain200L (41.27 dB) and Rain200H (31.81 dB), surpassing established models like Restormer and IPT.

Performance and efficiency comparison across different models, demonstrating that removing the decoder and adding PPM maintains quality while significantly improving batch capacity and speed.

Efficiency is a primary advantage of this architecture. DFTL-W utilizes only 1.8G FLOPs, compared to 148.1G for models like Uformer. Furthermore, DFTL-W supports a MaxBatch size of 180 on a single GPU, a massive improvement over the MaxBatch of 9 seen in the IPT model.

Conclusion

The most significant insight of this work is the "Redundant Decoder" hypothesis: for image restoration, a well-designed upsampling path like PPM can recover images as effectively as complex Transformer decoders. By prioritizing efficiency through "Cheap LP" and a decoder-free design, DFTL proves that Transformers can be lightweight without sacrificing performance. Future work will explore applying this philosophy to other restoration tasks such as deblurring and denoising.

Summary updated

BibTeX
@inproceedings{wu2022decoder,
  author = {Xiao Wu and Ting-Zhu Huang and Liang-Jian Deng and Tian-Jing Zhang},
  title = {{A Decoder-free Transformer-like Architecture for High-efficiency Single Image Deraining}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.24963/ijcai.2022/205},
}
Figure