Skip to main content
QUICK REVIEW

[Paper Review] SnowFormer: Context Interaction Transformer with Scale-awareness for Single Image Desnowing

Sixiang Chen, Ye Tian|arXiv (Cornell University)|Aug 20, 2022
Image Enhancement TechniquesComputer Science7 citations
TL;DR

SnowFormer is a novel transformer-based architecture for single image desnowing that leverages scale-aware queries and local-global context interaction via multi-head cross-attention to effectively model diverse snow degradations. It achieves state-of-the-art performance on six synthetic and real-world datasets with competitive computational efficiency.

ABSTRACT

Due to various and complicated snow degradations, single image desnowing is a challenging image restoration task. As prior arts can not handle it ideally, we propose a novel transformer, SnowFormer, which explores efficient cross-attentions to build local-global context interaction across patches and surpasses existing works that employ local operators or vanilla transformers. Compared to prior desnowing methods and universal image restoration methods, SnowFormer has several benefits. Firstly, unlike the multi-head self-attention in recent image restoration Vision Transformers, SnowFormer incorporates the multi-head cross-attention mechanism to perform local-global context interaction between scale-aware snow queries and local-patch embeddings. Second, the snow queries in SnowFormer are generated by the query generator from aggregated scale-aware features, which are rich in potential clean cues, leading to superior restoration results. Third, SnowFormer outshines advanced state-of-the-art desnowing networks and the prevalent universal image restoration transformers on six synthetic and real-world datasets. The code is released in \url{https://github.com/Ephemeral182/SnowFormer}.

Motivation & Objective

  • Address the challenge of complex, irregular, and multi-scale snow degradations in real-world images that existing methods fail to model effectively.
  • Overcome limitations of CNN-based and vanilla Vision Transformer approaches in capturing both local degradation patterns and global clean cues.
  • Improve restoration quality by enabling efficient local-global context interaction through scale-aware, no-parametric queries.
  • Reduce residual snow degradations through a degradation-aware Attention Refinement Head with position encoding.
  • Achieve superior trade-off between performance, model complexity, and inference speed compared to prior universal image restoration transformers.

Proposed method

  • Introduces Local Interaction (LI) using patch-wise self-attention to model intra-patch degradation similarity, enhancing local degradation perception.
  • Generates scale-aware queries from aggregated multi-scale features via a query generator, enabling global context awareness without additional parameters.
  • Employs multi-head cross-attention between scale-aware queries and local patch embeddings to perform efficient local-global context interaction.
  • Utilizes scale-aware feature aggregation with MaxPooling and element-wise addition to preserve diverse spatial snow information.
  • Incorporates an Attention Refinement Head with degradation-aware position encoding to progressively refine residual snow degradations in tail features.
  • Designs a no-parametric query mechanism to avoid the high computational cost of vanilla self-attention while maintaining global context integration.

Experimental results

Research questions

  • RQ1Can local-global context interaction via cross-attention improve single image desnowing beyond what CNNs or standard Vision Transformers achieve?
  • RQ2How does scale-aware query generation from multi-scale features enhance restoration performance compared to learnable or same-layer queries?
  • RQ3To what extent does modeling intra-patch degradation similarity through local interaction improve local degradations perception?
  • RQ4Does the proposed Attention Refinement Head effectively reduce residual snow degradations in complex regions?
  • RQ5Can the model achieve state-of-the-art performance with lower computational cost and parameter count than existing universal image restoration transformers?

Key findings

  • SnowFormer achieves the highest PSNR of 39.45 dB and SSIM of 0.983 on the CSD dataset, outperforming all prior SOTA methods.
  • The ablation study confirms that Local Interaction (LI) with intra-patch attention yields a 2.53 dB improvement in PSNR over the baseline without LI.
  • Local-global context interaction with scale-aware queries (LGCI) achieves 39.45 dB PSNR, significantly outperforming learnable queries (38.03 dB) and same-layer queries (38.36 dB).
  • The scale-aware feature aggregation with MaxPooling and addition achieves the best trade-off, improving PSNR by 1.3 dB over concatenation and 0.44 dB over MaxPooling alone.
  • SnowFormer maintains competitive efficiency with only 8.38M parameters and 19.44 GFLOPs, outperforming methods with significantly higher FLOPs and parameters.
  • On six diverse datasets (including real-world scenes), SnowFormer consistently achieves SOTA results, demonstrating robustness across synthetic and real snow degradations.

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.