EPSANet: An Efficient Pyramid Split Attention Block on Convolutional Neural Network

Hu Zhang, Keke Zu, Jian Lu, Yuru Zou, Deyu Meng

Introduction

Attention mechanisms have become a cornerstone of high-performance deep learning in computer vision. By teaching models to focus on the most informative parts of an image—whether specific channels or spatial regions—researchers have consistently pushed the boundaries of accuracy. However, these gains often come at the cost of increased model complexity and heavy computational burdens. In their paper "EPSANet: An Efficient Pyramid Squeeze Attention Block on Convolutional Neural Network," Hu Zhang and colleagues introduce a novel, lightweight attention module that improves performance while reducing the parameter count compared to standard backbones.

The Pyramid Squeeze Attention (PSA) Module

The core innovation is the Pyramid Squeeze Attention (PSA) module, a plug-and-play component that extracts multi-scale spatial information and establishes long-range channel dependencies. The PSA module operates in four distinct steps:

  1. Squeeze and Concat (SPC): Instead of a single 3x3 convolution, the input is split into multiple branches. Each branch uses a different kernel size (e.g., 3x3, 5x5, 7x7, 9x9) to extract features at different scales. To maintain efficiency, the authors use group convolutions, with group sizes determined by the kernel size.
  2. SEWeight Module: Each scale-specific feature map is passed through a channel attention block to extract its own attention weights.
  3. Softmax Recalibration: The attention vectors from all scales are concatenated and passed through a Softmax layer. This creates a "cross-dimension interaction," allowing the model to adaptively weight the importance of different scales for each channel.
  4. Feature Interaction: The recalibrated weights are multiplied back into the original multi-scale feature maps, which are then concatenated to form the final output.
The Pyramid Squeeze Attention (PSA) module architecture.

By replacing the 3x3 convolution in a standard ResNet bottleneck with this PSA module, the authors create the Efficient Pyramid Squeeze Attention (EPSA) block. This block allows the network to capture both fine-grained details and broader context simultaneously.

Experimental Results

The authors validated EPSANet on two industry-standard benchmarks: ImageNet for classification and MS-COCO for object detection and instance segmentation.

ImageNet Classification

The results demonstrate that EPSANet achieves a superior balance between accuracy and efficiency. EPSANet-50 (Large) achieved 78.64% Top-1 accuracy, a +3.44% improvement over the baseline ResNet-50 and +1.93% over the popular SENet-50. Notably, the "Small" version (EPSANet-50 Small) has fewer parameters (22.56M) than a standard ResNet-50 (25.56M) while achieving significantly higher accuracy and requiring 12.1% lower computational cost (FLOPs).

Comparison of Top-1 Accuracy vs. Parameters for various state-of-the-art models on ImageNet.

Object Detection and Segmentation

On the MS-COCO dataset, EPSANet backbones consistently outperformed SENet and ResNet. When used as a backbone for Mask R-CNN, EPSANet-50 (Large) improved the box AP by +2.7 and the mask AP by +1.7 compared to SENet-50.

Conclusion

EPSANet introduces an efficient mechanism for capturing multi-scale spatial information and long-range channel dependencies. By leveraging group convolutions and a Softmax-based scale selection strategy, the PSA module provides a significant performance boost with minimal computational cost. The source code is available at https://github.com/murufeng/EPSANet.

Summary updated

BibTeX
@inproceedings{zhang2022epsanet,
  author = {Hu Zhang and Keke Zu and Jian Lu and Yuru Zou and Deyu Meng},
  title = {{EPSANet: An Efficient Pyramid Split Attention Block on Convolutional Neural Network}},
  booktitle = {ACCV},
  year = {2022},
  doi = {10.1007/978-3-031-26313-2\_33},
}
Figure