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

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

TL;DR

This paper introduces EPSANet, a novel convolutional neural network architecture featuring an efficient "Pyramid Squeeze Attention" (PSA) block. EPSANet enhances multi-scale feature representation and channel dependency, achieving state-of-the-art performance on image classification, object detection, and instance segmentation tasks with fewer parameters and lower computational cost compared to existing attention mechanisms.

What Problem Does This Paper Address?

Deep convolutional neural networks (CNNs) have achieved remarkable success in computer vision. However, their performance can be further boosted by incorporating attention mechanisms, which help the network focus on more informative features. Existing attention methods, particularly channel attention, often struggle to effectively capture and utilize multi-scale spatial information and establish long-range channel dependencies. While some methods attempt to address this by combining spatial and channel attention or using multi-scale feature representations, they often lead to increased model complexity and computational burden. This paper aims to develop a low-cost, efficient, and effective attention module that can integrate multi-scale spatial information and long-range channel dependencies to improve CNN performance across various vision tasks.

Methods

The core contribution is the Pyramid Squeeze Attention (PSA) module. PSA is designed to address the limitations of existing attention mechanisms by:

  • Multi-scale Feature Extraction: It employs a "Squeeze and Concat" (SPC) module that processes input features across multiple branches, each using different kernel sizes and group convolutions. This allows for the extraction of spatial information at various scales in parallel without significantly increasing computational cost.
  • Channel Attention with Multi-scale Fusion: The extracted multi-scale features are then fed into a modified Squeeze-and-Excitation (SE) module (termed SEWeight) to generate attention weights for each scale. These weights are then recalibrated using a Softmax function to establish a long-range channel dependency.
  • Efficient Pyramid Squeeze Attention (EPSA) Block: The PSA module is integrated into the bottleneck blocks of the ResNet architecture, replacing the standard 3x3 convolution. This creates the EPSA block, which is designed to be a plug-and-play component.
  • EPSANet Architecture: The paper proposes EPSANet, a backbone architecture built by stacking these EPSA blocks in a ResNet-style manner. This architecture leverages the strengths of the EPSA block for enhanced multi-scale representation and adaptive channel recalibration.

Datasets

The proposed EPSANet was evaluated on the following standard datasets:

  • ImageNet: Used for image classification tasks.
  • MS-COCO: Used for object detection and instance segmentation tasks.

No new benchmarks were introduced in this paper.

Key Insights and Ideas

  • The Power of Multi-scale Attention: The paper demonstrates that effectively integrating information from different spatial scales within an attention mechanism is crucial for improving performance. The PSA module's pyramid structure is key to achieving this.
  • Balancing Performance and Efficiency: A significant insight is that it's possible to achieve state-of-the-art results without drastically increasing model complexity. EPSANet achieves this by carefully designing the PSA module to be lightweight and efficient, particularly through the use of group convolutions.
  • Long-Range Channel Dependency is Achievable with Low Cost: By combining multi-scale feature extraction with a refined channel attention mechanism, EPSANet successfully establishes long-range channel dependencies, a capability often lacking in simpler attention modules.
  • Plug-and-Play Simplicity: The EPSA block's design as a drop-in replacement for standard convolutional blocks makes it highly practical for researchers and practitioners looking to improve existing CNN architectures.

Key Results

EPSANet demonstrated strong performance across various computer vision tasks:

  • Image Classification (ImageNet):
    • EPSANet-50(Small) achieved a Top-1 accuracy of 77.49%, outperforming SENet-50 by 0.78% while using 11.7% fewer parameters and requiring 12.1% lower computational cost.
  • EPSANet-50(Large) achieved the best accuracy among the compared attention methods, with a Top-1 accuracy of 78.52%, outperforming SENet-50 by 1.93%.
  • Object Detection (MS-COCO):
    • EPSANet-50(Small) achieved a bounding box AP of 39.2% on Faster R-CNN, outperforming SENet-50 by 1.5% with fewer parameters and lower FLOPs.
  • EPSANet-50(Large) achieved the best performance, with an AP of 40.9% on Faster R-CNN, a significant improvement.
  • Instance Segmentation (MS-COCO):
    • EPSANet-50(Large) surpassed FcaNet by 0.9% on AP, 0.4% on AP50, and 1.4% on AP75, demonstrating its effectiveness in more complex tasks.

Limitations and Future Work

  • Limitations: The paper acknowledges that while the PSA module is efficient, further exploration into its application with even more lightweight CNN architectures is warranted. The current focus is on ResNet-style backbones.
  • Future Work: The authors plan to investigate the effects of adding the PSA module to more lightweight CNN architectures. They also suggest that the proposed EPSANet has good generalization ability and can be easily applied to other downstream tasks.

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 Squeeze Attention Block on Convolutional Neural Network}},
  booktitle = {ACCV},
  year = {2022},
  doi = {10.1007/978-3-031-26313-2\_33},
}
Figure