Papers › CBAM: Convolutional Block Attention Module

CBAM: Convolutional Block Attention Module

17 Jul 2018ECCV 2018 9arXiv:1807.06521archive 2025-07-28

Sanghyun Woo, Jongchan Park, Joon-Young Lee, In So Kweon

We propose Convolutional Block Attention Module (CBAM), a simple yet effective attention module for feed-forward convolutional neural networks. Given an intermediate feature map, our module sequentially infers attention maps along two separate dimensions, channel and spatial, then the attention maps are multiplied to the input feature map for adaptive feature refinement. Because CBAM is a lightweight and general module, it can be integrated into any CNN architectures seamlessly with negligible overheads and is end-to-end trainable along with base CNNs. We validate our CBAM through extensive experiments on ImageNet-1K, MS~COCO detection, and VOC~2007 detection datasets. Our experiments show consistent improvements in classification and detection performances with various models, demonstrating the wide applicability of CBAM. The code and models will be publicly available.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1807.06521")

Code

Syntology Ran 4 of 22 code samples harvested from 5 repositories linked to this paper; 18 have no recorded run. Of those that ran: 1 ran · honoured contract; 3 ran · our draft was wrong.

By repository: community (archive-listed): 21 samples from 5 repositories, 3 ran; 1 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

31 repositories listed; official and paper-mentioned ones first.

JinLi711/Convolution_Variants mentioned on GitHubtf report
Knight825/models-pytorch mentioned on GitHubpytorchApache-2.0 report
LKLQQ/CBAM mentioned on GitHubmindsporeApache-2.0 report
TooTouch/WhiteBox-Part1 mentioned on GitHubpytorch report
Uranium-Deng/Steganalysis-StegoRemoval mentioned on GitHubpytorch report
YONGQUAN-QU/CBAM.Flax mentioned on GitHubjax report
e96031413/AA-YOLO mentioned on GitHubpytorch report
e96031413/PyTorch_YOLOv4-tiny mentioned on GitHubpytorch report
gan3sh500/custom-pooling mentioned on GitHubpytorch report
jihoojo03/UNet-CBAM_Keras mentioned on GitHub report
kobiso/CBAM-keras mentioned on GitHubtfMIT report
kobiso/CBAM-tensorflow mentioned on GitHubtf report
kobiso/CBAM-tensorflow-slim mentioned on GitHubtfMIT report
laugh12321/3D-Attention-Keras mentioned on GitHubtfMIT report
osmr/imgclsmob mentioned on GitHubmxnetMIT report
vinthony/s2am mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

22 samples harvested; 4 ran; 1 honoured the contract we drafted; 18 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
3ran · our draft was wrong
18unverified

Licence: 1 of the 22 samples is pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 5 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

logsumexp_2d Jongchan/attention-module/MODELS/cbam.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 7abfa32a2f1d7424 · report
lr_schedule kobiso/CBAM-keras/utils.py community (archive-listed) ran · honoured contract fingerprinted MIT (permissive) · 67e18e3fdd805d03 · report
merge LKLQQ/CBAM/src/model_utils/config.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · b9e24c3e3e0e88a7 · report
attach_attention_module kobiso/CBAM-keras/models/attention_module.py community (archive-listed) unverified MIT (permissive) · 99ef7bfe54c20e2c · report
attach_attention_module kobiso/CBAM-tensorflow-slim/nets/attention_module.py community (archive-listed) unverified MIT (permissive) · 7751ab2f8cae06ed · report
cbam_block kobiso/CBAM-keras/models/attention_module.py community (archive-listed) unverified MIT (permissive) · 4b28bc67bccc6824 · report
cbam_block kobiso/CBAM-tensorflow-slim/nets/attention_module.py community (archive-listed) unverified MIT (permissive) · 4a744bbc28fbf323 · report
cbam_block laugh12321/3D-Attention-Keras/model/CBAM_attention3D.py community (archive-listed) unverified MIT (permissive) · a743d47f31b227e8 · report
channel_attention kobiso/CBAM-keras/models/.ipynb_checkpoints/attention_module-checkpoint.py community (archive-listed) unverified MIT (permissive) · 64f4bec6efc96976 · report
conv2d_bn kobiso/CBAM-keras/models/inception_resnet_v2.py community (archive-listed) unverified MIT (permissive) · 83d32f91c543bc87 · report
get_lr LKLQQ/CBAM/src/get_lr.py community (archive-listed) unverified Apache-2.0 (permissive) · 88b73ea143b80bda · report
optimize_clones kobiso/CBAM-tensorflow-slim/deployment/model_deploy.py community (archive-listed) unverified MIT (permissive) · 3fe5f08cb1872f05 · report
parse_cli_to_yaml LKLQQ/CBAM/src/model_utils/config.py community (archive-listed) unverified Apache-2.0 (permissive) · 738456e1b7388e7e · report
parse_yaml LKLQQ/CBAM/src/model_utils/config.py community (archive-listed) unverified Apache-2.0 (permissive) · 96a9939953d5992d · report
preprocess_input kobiso/CBAM-keras/models/inception_resnet_v2.py community (archive-listed) unverified MIT (permissive) · de695392eae44227 · report
preprocess_input kobiso/CBAM-keras/models/inception_v3.py community (archive-listed) unverified MIT (permissive) · bee766c6e15044c2 · report
preprocess_input kobiso/CBAM-keras/models/densenet.py community (archive-listed) unverified MIT (permissive) · 2b2390bcd64e4f4f · report
relu6 kobiso/CBAM-keras/models/mobilenets.py community (archive-listed) unverified MIT (permissive) · f124399d87a3224b · report
resnet_layer kobiso/CBAM-keras/models/resnet_v1.py community (archive-listed) unverified MIT (permissive) · 7c10248ed4cd4926 · report
se_block kobiso/CBAM-keras/models/attention_module.py community (archive-listed) unverified MIT (permissive) · 9ae7eb77f5b70d3f · report
se_block kobiso/CBAM-tensorflow-slim/nets/attention_module.py community (archive-listed) unverified MIT (permissive) · 0a52a7e8f9cf524b · report
parse_arguments identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · f891cdc1c30186df · report

Tasks

General ClassificationImage ClassificationObject Detection

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Object Detection DSEC CBAM mAP 26.1 #7 of 12 Archive leaderboard report
Object Detection PKU-DDD17-Car CBAM mAP50 81.9 #8 of 14 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

1x1 ConvolutionAverage PoolingBatch NormalizationBottleneck Residual BlockCBAMConvolutionDense ConnectionsDepthwise ConvolutionDepthwise Separable ConvolutionDropoutFaster R-CNNGlobal Average PoolingGrouped ConvolutionKaiming InitializationMax PoolingMobileNetV1Pointwise ConvolutionRPNRandom Horizontal FlipRandom Resized CropReLUResNeXtResNeXt BlockResidual BlockResidual ConnectionRoIPoolSGD with MomentumSigmoid ActivationSoftmaxSqueeze-and-Excitation BlockStep DecayWeight DecayWide Residual BlockWideResNet

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections