BAM: Bottleneck Attention Module

Jongchan Park, Sanghyun Woo, Joon-Young Lee, In So Kweon
7/17/2018
1,368 citations
cs.CV
transformer-attention

No official code found. Best implementation: Jongchan/attention-module (2,235 stars, Python, MIT, last commit 2023-03-09). 3 more below.

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(4)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
Jongchan/attention-moduleCommunity2,235PythonMIT2023-03-09
asdf2kr/BAM-CBAM-pytorchCommunity32–––
huyz1117/BAMCommunity12–––
hong-jinwoo/BAMCommunity3–––
MIT

Official PyTorch code for "BAM: Bottleneck Attention Module (BMVC2018)" and "CBAM: Convolutional Block Attention Module (ECCV2018)"

2,235406Python, ShellOct 7, 20183 years agoMIT

Pytorch implementation of BAM("BAM: Bottleneck Attention Module", BMVC18) and CBAM(“CBAM: Convolutional Block Attention Module”, ECCV18)

324
huyz1117/BAMCommunity25%

Implementation of BAM: Bottleneck Attention Module with TensorFLow

122
hong-jinwoo/BAMCommunity25%

Unofficial PyTorch Implementation of BAM (Bottleneck Attention Module)

30

Similar Papers

Cite this paper

@article{park2018bam,
  title  = {BAM: Bottleneck Attention Module},
  author = {Jongchan Park and Sanghyun Woo and Joon-Young Lee and In So Kweon},
  year   = {2018},
  eprint = {1807.06514},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1807.06514}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1807.06514.svg)](https://codeofpaper.com/paper/1807.06514)

Discussion