[Paper Review] BAM: Bottleneck Attention Module
BAM introduces a lightweight Bottleneck Attention Module with channel and spatial attention streams placed at network bottlenecks, improving classification and detection with negligible overhead across CIFAR-100, ImageNet, VOC2007, and COCO.
Recent advances in deep neural networks have been developed via architecture search for stronger representational power. In this work, we focus on the effect of attention in general deep neural networks. We propose a simple and effective attention module, named Bottleneck Attention Module (BAM), that can be integrated with any feed-forward convolutional neural networks. Our module infers an attention map along two separate pathways, channel and spatial. We place our module at each bottleneck of models where the downsampling of feature maps occurs. Our module constructs a hierarchical attention at bottlenecks with a number of parameters and it is trainable in an end-to-end manner jointly with any feed-forward models. We validate our BAM through extensive experiments on CIFAR-100, ImageNet-1K, VOC 2007 and MS COCO benchmarks. Our experiments show consistent improvement in classification and detection performances with various models, demonstrating the wide applicability of BAM. The code and models will be publicly available.
Motivation & Objective
- Motivate the use of attention to boost CNN representational power without heavy architectural changes.
- Propose a simple, trainable attention module that can be integrated into any CNN.
- Show that placing BAM at network bottlenecks yields hierarchical, effective attention.
- Demonstrate BAM’s effectiveness across multiple benchmarks and tasks (classification and detection).
Proposed method
- Compute a 3D attention map M(F) from a 3D feature map F using two separate branches: channel attention M_c(F) and spatial attention M_s(F).
- Channel branch uses global average pooling followed by a two-layer MLP with a reduction ratio r and a BN layer to produce M_c(F).
- Spatial branch uses a bottlenecked path with 1x1 and 3x3 dilated convolutions (dilation d) to produce M_s(F).
- Combine M_c(F) and M_s(F) via element-wise addition and a sigmoid to form M(F).
- Refine features with residual attention: F' = F + F ⊗ M(F).
- Place BAM at bottlenecks (downsampling points) in CNNs to form hierarchical attention across layers.
- Hyperparameters include dilation d and reduction ratio r (empirically d=4, r=16).
- Evaluate BAM across CIFAR-100, ImageNet-1K, VOC 2007, and MS COCO to demonstrate broad applicability.
Experimental results
Research questions
- RQ1Does the Bottleneck Attention Module (BAM) improve CNN performance across standard benchmarks without significant overhead?
- RQ2How do the channel and spatial attention branches contribute individually and together to performance gains?
- RQ3Is placing BAM at network bottlenecks more effective than other locations or naive depth increases?
- RQ4What is the impact of BAM on various architectures and tasks (classification and detection)?”],
- RQ5key_findings 3-6 bullets to be concise and quantitative (no new numbers beyond source):
- RQ6table_headers: [],
- RQ7table_rows: []}
- RQ8Note: The paper reports numerous specific results in tables. Where available, examples include:
- RQ9- ResNet50 + BAM achieves 20.00% error on CIFAR-100 versus 21.49% for the baseline ResNet50.
- RQ10- ResNeXt29 8x64d + BAM achieves 16.71% error on CIFAR-100 versus 18.18% baseline.
- RQ11- ResNet101 + BAM achieves 19.61% error on CIFAR-100 vs 20.00% baseline.
- RQ12- On ImageNet, ResNet50 + BAM reduces error to 20.00% from 21.49% baseline; ResNet101 + BAM to 19.61% from 20.00% baseline.
- RQ13- BAM improves MS COCO detection mAP and VOC 2007 metrics when added to strong baselines, with negligible parameter overhead.
Key findings
- BAM consistently improves accuracy over baselines across CIFAR-100 and ImageNet-1K with multiple architectures.
- Using both channel and spatial branches yields greater gains than either branch alone.
- BAM placed at bottlenecks provides efficiency with favorable accuracy improvements compared to naive deeper blocks.
- Combining channel and spatial attention via element-wise sum followed by sigmoid supports stable gradient flow and better results than product or max variants.
- BAM also improves object detection performance on MS COCO and VOC 2007 when integrated with Faster-RCNN and SSD-based detectors, respectively, with minimal overhead.
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.