Skip to main content
QUICK REVIEW

[Paper Review] Learning A Sparse Transformer Network for Effective Image Deraining

Xiang Chen, Hao Li|arXiv (Cornell University)|Mar 21, 2023
Image Enhancement TechniquesComputer Science11 citations
TL;DR

DRSformer introduces a top-k sparse attention-based Transformer block with a mixed-scale feed-forward network and a mixture of experts feature compensator to efficiently derain images, achieving state-of-the-art results on multiple benchmarks.

ABSTRACT

Transformers-based methods have achieved significant performance in image deraining as they can model the non-local information which is vital for high-quality image reconstruction. In this paper, we find that most existing Transformers usually use all similarities of the tokens from the query-key pairs for the feature aggregation. However, if the tokens from the query are different from those of the key, the self-attention values estimated from these tokens also involve in feature aggregation, which accordingly interferes with the clear image restoration. To overcome this problem, we propose an effective DeRaining network, Sparse Transformer (DRSformer) that can adaptively keep the most useful self-attention values for feature aggregation so that the aggregated features better facilitate high-quality image reconstruction. Specifically, we develop a learnable top-k selection operator to adaptively retain the most crucial attention scores from the keys for each query for better feature aggregation. Simultaneously, as the naive feed-forward network in Transformers does not model the multi-scale information that is important for latent clear image restoration, we develop an effective mixed-scale feed-forward network to generate better features for image deraining. To learn an enriched set of hybrid features, which combines local context from CNN operators, we equip our model with mixture of experts feature compensator to present a cooperation refinement deraining scheme. Extensive experimental results on the commonly used benchmarks demonstrate that the proposed method achieves favorable performance against state-of-the-art approaches. The source code and trained models are available at https://github.com/cschenxiang/DRSformer.

Motivation & Objective

  • Motivate robust image deraining by reducing interference from irrelevant self-attention in Transformers.
  • Develop a sparse Transformer block that preserves only the most useful attention scores (top-k) for feature aggregation.
  • Incorporate multi-scale feature learning via a mixed-scale feed-forward network to capture rain patterns at multiple scales.
  • Enhance feature refinement with a mixture of experts feature compensator to integrate local and global cues.

Proposed method

  • Propose a sparse Transformer network (DRSformer) built on sparse Transformer blocks (STB) with top-k sparse attention (TKSA) and a mixed-scale feed-forward network (MSFN).
  • TKSA selects the largest K attention scores per query to form SparseAtt(Q,K,V), reducing interference from irrelevant tokens.
  • MSFN uses parallel multi-scale depth-wise convolutions (3x3 and 5x5) to capture multi-scale local information and fuse features.
  • MEFC (mixture of experts feature compensator) combines multiple CNN-based experts to refine features, guided by input-dependent channel descriptors.
  • Overall architecture follows a hierarchical encoder-decoder with skip connections, processing Rain200L/H, DID-Data, DDN-Data, and SPA-Data; training uses an L1 loss between derained output and ground truth.

Experimental results

Research questions

  • RQ1Can a top-k based sparse attention mechanism improve the quality of derained images by suppressing interference from irrelevant token interactions?
  • RQ2Does integrating a multi-scale feed-forward network enhance the restoration of fine details and textures in derained images?
  • RQ3Can a mixture of experts feature compensator further refine sparse Transformer features to preserve high-frequency details?
  • RQ4What are the empirical gains of the proposed sparsity and multi-scale components across synthetic and real-world rainy datasets?

Key findings

  • DRSformer achieves higher PSNR/SSIM than recent state-of-the-art methods across Rain200L, Rain200H, DID-Data, DDN-Data, and SPA-Data (e.g., 41.23/0.9894 on Rain200L; 32.18/0.9330 on Rain200H; 35.38/0.9647 on DID-Data; 34.36/0.9590 on DDN-Data; 48.53/0.9924 on SPA-Data).
  • The top-k sparse attention (TKSA) reduces interference from irrelevant long-range interactions and improves detail preservation versus dense self-attention.
  • The mixed-scale feed-forward network (MSFN) substantially boosts multi-scale feature representation, outperforming conventional FN, DFN, and GDFN baselines.
  • MEFC further enhances deraining by enabling adaptive collaboration among multiple sparse CNN experts, yielding additional gains over single-expert configurations.
  • Real-world results (SPA-Data) show strong generalization, with high non-reference quality metrics (NIQE/BRISQUE) competitive with or better than baselines.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.