[Paper Review] ELA: Efficient Local Attention for Deep Convolutional Neural Networks
ELA introduces a lightweight local attention module that uses 1D convolutions and group normalization to capture precise spatial localization without reducing channel dimensionality, improving ImageNet classification and COCO/VOC detection and segmentation across CNN backbones.
The attention mechanism has gained significant recognition in the field of computer vision due to its ability to effectively enhance the performance of deep neural networks. However, existing methods often struggle to effectively utilize spatial information or, if they do, they come at the cost of reducing channel dimensions or increasing the complexity of neural networks. In order to address these limitations, this paper introduces an Efficient Local Attention (ELA) method that achieves substantial performance improvements with a simple structure. By analyzing the limitations of the Coordinate Attention method, we identify the lack of generalization ability in Batch Normalization, the adverse effects of dimension reduction on channel attention, and the complexity of attention generation process. To overcome these challenges, we propose the incorporation of 1D convolution and Group Normalization feature enhancement techniques. This approach enables accurate localization of regions of interest by efficiently encoding two 1D positional feature maps without the need for dimension reduction, while allowing for a lightweight implementation. We carefully design three hyperparameters in ELA, resulting in four different versions: ELA-T, ELA-B, ELA-S, and ELA-L, to cater to the specific requirements of different visual tasks such as image classification, object detection and sementic segmentation. ELA can be seamlessly integrated into deep CNN networks such as ResNet, MobileNet, and DeepLab. Extensive evaluations on the ImageNet, MSCOCO, and Pascal VOC datasets demonstrate the superiority of the proposed ELA module over current state-of-the-art methods in all three aforementioned visual tasks.
Motivation & Objective
- Identify limitations of existing coordinate attention methods in utilizing spatial information and channel reduction effects.
- Develop a lightweight attention module that preserves channel dimensionality while capturing precise spatial localization.
- Ensure compatibility with common CNN backbones and assess across classification, detection, and segmentation tasks.
- Provide practical guidelines for hyperparameters to balance performance and complexity.
Proposed method
- Revisit Coordinate Attention (CA) to analyze BN drawbacks and channel downscaling effects on generalization.
- Propose Efficient Local Attention (ELA) that uses 1D convolutions on horizontal and vertical localization embeddings derived from strip pooling.
- Replace BN with Group Normalization (GN) and avoid channel dimensionality reduction to preserve channel-attention mapping.
- Apply 1D convolutions with kernel sizes 5 or 7 and use GN to produce horizontal and vertical positional attentions, then fuse via element-wise product.
- Provide four ELA variants (ELA-T, ELA-B, ELA-S, ELA-L) by combining kernel size, groups, and GN settings for different backbones.
- Demonstrate integration into ResNet, MobileNet, and DeepLab-style backbones and validate with Grad-CAM visualizations.
Experimental results
Research questions
- RQ1Can Efficient Local Attention capture long-range spatial dependencies without reducing channel dimensionality?
- RQ2Does replacing BN with GN improve generalization in attention modules for smaller networks?
- RQ3What hyperparameter configurations (kernel size, groups, GN) yield the best performance-complexity trade-offs across classification, detection, and segmentation tasks?
- RQ4How does ELA compare to state-of-the-art attention modules on ImageNet, COCO, and Pascal VOC datasets?
- RQ5Is ELA easily integrable into common CNN architectures with minimal code?
Key findings
- ELA achieves a 2.39% absolute improvement in ImageNet top-1 accuracy over the baseline with MobileNetV2-1.0 when using ELA-S/L versions.
- ELA consistently improves detection and segmentation performance, showing notable gains on MS COCO and Pascal VOC compared with CA and other attention modules.
- Replacing BN with GN in CA markedly improves performance on smaller models, and ELA inherits this benefit by using GN and avoiding channel downscaling.
- ELA variants offer favorable trade-offs: ELA-T and ELA-B are lightweight for shallow networks, while ELA-S and ELA-L suit deeper or larger networks.
- ELAs can outperform CA and other attentions while maintaining or reducing parameter counts and FLOPs in several backbones and tasks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.