Skip to main content
QUICK REVIEW

[Paper Review] SA-Net: Shuffle Attention for Deep Convolutional Neural Networks

Qinglong Yang|arXiv (Cornell University)|Jan 30, 2021
Advanced Neural Network ApplicationsComputer Science25 references26 citations
TL;DR

SA-Net introduces a lightweight Shuffle Attention module that fuses channel and spatial attention within grouped feature subspaces, improving accuracy with minimal parameter and FLOPs overhead across CNN backbones.

ABSTRACT

Attention mechanisms, which enable a neural network to accurately focus on all the relevant elements of the input, have become an essential component to improve the performance of deep neural networks. There are mainly two attention mechanisms widely used in computer vision studies, extit{spatial attention} and extit{channel attention}, which aim to capture the pixel-level pairwise relationship and channel dependency, respectively. Although fusing them together may achieve better performance than their individual implementations, it will inevitably increase the computational overhead. In this paper, we propose an efficient Shuffle Attention (SA) module to address this issue, which adopts Shuffle Units to combine two types of attention mechanisms effectively. Specifically, SA first groups channel dimensions into multiple sub-features before processing them in parallel. Then, for each sub-feature, SA utilizes a Shuffle Unit to depict feature dependencies in both spatial and channel dimensions. After that, all sub-features are aggregated and a "channel shuffle" operator is adopted to enable information communication between different sub-features. The proposed SA module is efficient yet effective, e.g., the parameters and computations of SA against the backbone ResNet50 are 300 vs. 25.56M and 2.76e-3 GFLOPs vs. 4.12 GFLOPs, respectively, and the performance boost is more than 1.34% in terms of Top-1 accuracy. Extensive experimental results on common-used benchmarks, including ImageNet-1k for classification, MS COCO for object detection, and instance segmentation, demonstrate that the proposed SA outperforms the current SOTA methods significantly by achieving higher accuracy while having lower model complexity. The code and models are available at https://github.com/wofmanaf/SA-Net.

Motivation & Objective

  • Motivate efficient integration of spatial and channel attention without heavy computation.
  • Design a lightweight SA module using grouped feature processing and channel shuffle for information exchange.
  • Show that SA improves CNN performance with minimal parameter/FLOP overhead across tasks.
  • Demonstrate SA-Net gains on ImageNet-1k, MS COCO object detection, and instance segmentation.

Proposed method

  • Group channel dimensions into G sub-features and process in parallel.
  • For each sub-feature, apply a Shuffle Unit that combines channel and spatial attention branches.
  • Channel attention uses global average pooling and a compact gating to recalibrate features.
  • Spatial attention uses Group Norm to generate spatial statistics and a compact gating.
  • Aggregate sub-features and apply a channel shuffle to enable cross-group communication.
  • Integrate SA into CNN backbones by replacing SE blocks to form SA-Net.
Fig. 1 : Comparisons of recently SOTA attention models on ImageNet-1k, including SENet, CBAM, ECA-Net, SGE-Net, and SA-Net, using ResNets as backbones, in terms of accuracy, network parameters, and GFLOPs. The size of circles indicates the GFLOPs. Clearly, the proposed SA-Net achieves higher accurac
Fig. 1 : Comparisons of recently SOTA attention models on ImageNet-1k, including SENet, CBAM, ECA-Net, SGE-Net, and SA-Net, using ResNets as backbones, in terms of accuracy, network parameters, and GFLOPs. The size of circles indicates the GFLOPs. Clearly, the proposed SA-Net achieves higher accurac

Experimental results

Research questions

  • RQ1Can a lightweight fusion of spatial and channel attention outperform existing attention modules with similar or lower model complexity?
  • RQ2Do grouped feature processing and channel shuffle enable effective cross-group information exchange to improve representation?
  • RQ3How does SA-Net perform on ImageNet-1k classification and COCO object detection/instance segmentation compared with state-of-the-art attention blocks?

Key findings

  • On ImageNet-1k with ResNet-50, SA-Net achieves Top-1 77.724% and Top-5 93.798% with 25.557M parameters and 4.125 GFLOPs, surpassing several baselines.
  • With ResNet-50, SA-Net improves Top-1 accuracy by 1.34 percentage points and Top-5 by 0.89 points over the baseline (and generally outperforms SOTA attention methods at similar complexity).
  • On ResNet-101, SA-Net yields improvements of 0.76% (Top-1) and 0.59% (Top-5) over the baseline.
  • In MS COCO object detection, SA improves AP metrics over SE, e.g., Faster R-CNN with ResNet-50 shows AP50:95 up by 2.3 points and AP S/M/L enhancements, and RetinaNet shows similar gains; with ResNet-101 gains include AP50:95 up by 2.2–2.5 points depending on detector.
  • SA also improves Mask R-CNN instance segmentation metrics over SE, with noticeable gains on small objects.
  • Ablation studies demonstrate Group Norm is essential, channel shuffle provides modest gains, and F_c(·) significantly boosts performance.
Fig. 2 : An overview of the proposed SA module. It adopts “channel split” to process the sub-features of each group in parallel. For channel attention branch, using GAP to generate channel-wise statistics, then use a pair of parameters to scale and shift the channel vector. For spatial attention bra
Fig. 2 : An overview of the proposed SA module. It adopts “channel split” to process the sub-features of each group in parallel. For channel attention branch, using GAP to generate channel-wise statistics, then use a pair of parameters to scale and shift the channel vector. For spatial attention bra

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.