SCSA: Exploring the synergistic effects between spatial and channel attention

Yunzhong Si, Huiying Xu, Xinzhong Zhu, Wenhao Zhang, Yao Dong, Yuxing Chen, Hongbo Li

TL;DR

The paper introduces Spatial and Channel Synergistic Attention (SCSA), a novel plug-and-play module designed to unlock the hidden synergy between spatial and channel attention mechanisms. By using multi-scale spatial priors to actively guide channel-wise self-attention, SCSA effectively mitigates semantic disparities across feature maps, delivering state-of-the-art performance boosts across image classification, object detection, and segmentation tasks with minimal computational overhead.

What Problem Does This Paper Address?

Attention mechanisms are a staple in modern computer vision, helping convolutional neural networks (CNNs) and vision transformers (ViTs) focus on the most salient parts of an image. These mechanisms typically fall into three buckets: channel attention (weighting what features matter), spatial attention (weighting where features matter), and hybrid attention (doing both).

However, existing hybrid approaches (like CBAM or EMA) suffer from a critical blind spot: they treat spatial and channel dimensions as largely independent or simply chain them together without exploring their synergistic relationship. Furthermore, standard methods often ignore the inherent spatial semantic disparities across different feature channels—meaning different channels naturally focus on entirely different parts or semantic levels of an object (e.g., fine textures vs. global shapes), as illustrated in Figure 1.

Visualization of inherent spatial semantic disparities across feature maps

SCSA addresses this gap by explicitly leveraging multi-semantic spatial information to guide channel recalibration while smoothing out these channel-wise semantic discrepancies.

Methods

SCSA is a sequential, plug-and-play architecture composed of two primary sub-modules:

  1. Shareable Multi-Semantic Spatial Attention (SMSA): Instead of performing computationally expensive 2D spatial operations, SMSA decomposes the input feature map along the height ($H$) and width ($W$) dimensions into unidirectional 1D sequences. The feature channels are split into independent sub-features, which are then processed by parallel, multi-scale depth-shared 1D convolutions (with kernel sizes of 3, 5, 7, and 9). This allows the network to capture local textures and global shapes simultaneously. Group Normalization (GN) is applied to keep these sub-features distinct and prevent attention dilution.

  2. Progressive Channel-wise Self-Attention (PCSA): The spatial priors generated by SMSA are fed into PCSA. To keep computational complexity linear, PCSA employs a progressive compression strategy (average pooling) before computing a channel-wise single-head self-attention (CA-SHSA). Computing self-attention along the channel dimension allows the module to capture robust inter-channel similarities, effectively mitigating the semantic disparities introduced during the spatial feature extraction phase.

Detailed architecture of the proposed SCSA module

SCSA is highly flexible and can be seamlessly integrated into standard network backbones, including ResNet BasicBlocks/Bottlenecks, MobileNet Inverted Residual Blocks, and RepVGG blocks.

Integration of SCSA into mainstream network blocks

Datasets

The authors rigorously evaluated SCSA across seven benchmark datasets spanning four distinct visual tasks:

  • Image Classification: ImageNet-1K
  • Object Detection & Instance Segmentation: MSCOCO 2017, Pascal VOC
  • Semantic Segmentation: ADE20K
  • Complex/Robustness Scenes: VisDrone2019 (small-object detection), ExDark (low-light detection), and FLIR-ADAS v2 (infrared automotive dataset).

Key Insights and Ideas

  • Spatial-First Guidance: The authors discovered that applying spatial attention before channel attention yields superior results. The spatial module provides precise structural priors that act as a guide for the subsequent channel recalibration. Swapping this order results in a noticeable drop in accuracy.
  • Single-Head Attention for Disparity Mitigation: While multi-head self-attention is standard in ViTs, SCSA intentionally uses a single-head channel-wise self-attention mechanism. This design choice maximizes inter-channel feature interactions, which is crucial for smoothing out the semantic gaps between different convolutional branches.
  • Avoiding Channel Compression: Unlike traditional channel attention modules (like SENet) that squeeze channels to reduce parameters, SCSA maintains the full channel dimension throughout the self-attention block, preventing the loss of critical feature information.

Key Results

SCSA consistently outperforms existing state-of-the-art plug-and-play attention mechanisms across multiple backbones:

  • ImageNet-1K Classification: Integrated into a ResNet-50 backbone, SCSA achieves a 77.49% Top-1 accuracy, outperforming popular alternatives like CBAM (77.12%) and ECA-Net (77.05%) with a negligible increase in parameters. It also boosts the advanced Swin-Transformer (Swin-T) by 0.70%.
ImageNet-1K classification performance comparison
  • MSCOCO Object Detection: When paired with a Faster R-CNN detector (ResNet-50 backbone), SCSA improves the Average Precision (AP) by 1.7% over the baseline model, reaching 39.3% AP and outperforming Coordinate Attention (CA).
MSCOCO object detection performance comparison
  • ADE20K Semantic Segmentation: Using the UperNet framework, SCSA delivers a 0.94% mIoU improvement on ResNet-50 and a 1.02% mIoU improvement on ResNet-101, demonstrating its strength in dense, pixel-level prediction tasks.

Limitations and Future Work

Despite its strong performance and linear computational complexity, the authors note that inference latency remains a hurdle for real-world deployment in very wide networks. The architectural choice to use multi-scale depth-wise convolutions and branching structures inherently leads to lower FLOP efficiency and high memory access frequency, which can bottleneck throughput on hardware.

Additionally, the module showed limited performance gains on highly long-tailed/imbalanced datasets like FLIR-ADAS v2. Future work will focus on developing even more lightweight, hardware-friendly variations of synergistic attention.

Summary updated

BibTeX
@article{si2025scsa,
  author = {Yunzhong Si and Huiying Xu and Xinzhong Zhu and Wenhao Zhang and Yao Dong and Yuxing Chen and Hongbo Li},
  title = {{SCSA: Exploring the synergistic effects between spatial and channel attention}},
  journal = {Neurocomputing},
  year = {2025},
  doi = {10.1016/j.neucom.2025.129866},
}
Figure