Papers › Attention Augmented Convolutional Networks

Attention Augmented Convolutional Networks

22 Apr 2019ICCV 2019 10arXiv:1904.09925archive 2025-07-28

Irwan Bello, Barret Zoph, Ashish Vaswani, Jonathon Shlens, Quoc V. Le

Convolutional networks have been the paradigm of choice in many computer vision applications. The convolution operation however has a significant weakness in that it only operates on a local neighborhood, thus missing global information. Self-attention, on the other hand, has emerged as a recent advance to capture long range interactions, but has mostly been applied to sequence modeling and generative modeling tasks. In this paper, we consider the use of self-attention for discriminative visual tasks as an alternative to convolutions. We introduce a novel two-dimensional relative self-attention mechanism that proves competitive in replacing convolutions as a stand-alone computational primitive for image classification. We find in control experiments that the best results are obtained when combining both convolutions and self-attention. We therefore propose to augment convolutional operators with this self-attention mechanism by concatenating convolutional feature maps with a set of feature maps produced via self-attention. Extensive experiments show that Attention Augmentation leads to consistent improvements in image classification on ImageNet and object detection on COCO across many different models and scales, including ResNets and a state-of-the art mobile constrained network, while keeping the number of parameters similar. In particular, our method achieves a 1.3% top-1 accuracy improvement on ImageNet classification over a ResNet50 baseline and outperforms other attention mechanisms for images such as Squeeze-and-Excitation. It also achieves an improvement of 1.4 mAP in COCO Object Detection on top of a RetinaNet baseline.

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="1904.09925")

Code

Syntology Ran 3 of 6 code samples harvested from 3 repositories linked to this paper; 3 have no recorded run. Of those that ran: 1 ran · honoured contract; 2 ran · fixture could not drive it.

By repository: community (archive-listed): 5 samples from 3 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.

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

Data-drone/attention_augmented_cnn mentioned on GitHubpytorch report
JinLi711/Convolution_Variants mentioned on GitHubtf report
MaczekO/AttentionNetworkProject mentioned on GitHubpytorch report
infinitemugen/Attention-Conv-Pytorch mentioned on GitHubpytorch report
leaderj1001/Attention-Augmented-Conv2d mentioned on GitHubpytorchMIT report
leaderj1001/Stand-Alone-Self-Attention mentioned on GitHubpytorchMIT 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

6 samples harvested; 3 ran; 1 honoured the contract we drafted; 3 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
2ran · fixture could not drive it
3unverified

Licence: 1 of the 6 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 3 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.

combine_heads_2d Data-drone/attention_augmented_cnn/pytorch_code/self_atten_utils.py community (archive-listed) ran · fixture could not drive it fingerprinted MIT (permissive) · 1d9d5fc614f317c3 · report
shape_list Data-drone/attention_augmented_cnn/pytorch_code/self_atten_utils.py community (archive-listed) ran · honoured contract fingerprinted MIT (permissive) · 6478c4d903d597e7 · report
split_heads_2d Data-drone/attention_augmented_cnn/pytorch_code/self_atten_utils.py community (archive-listed) ran · fixture could not drive it fingerprinted MIT (permissive) · 4b0f0775e4c3c5e4 · report
augmented_conv2d titu1994/keras-attention-augmented-convs/attn_augconv.py community (archive-listed) unverified MIT (permissive) · 364793b4a69b5ada · report
load_data leaderj1001/Attention-Augmented-Conv2d/AA-Wide-ResNet/preprocess.py community (archive-listed) unverified MIT (permissive) · 923798bb3c385c76 · report
prepare_data identical code first harvested elsewhere unverified licence of this copy not recorded · 10b86d2ef7ff73c5 · report

Tasks

General ClassificationImage ClassificationObject Detectionimage-classificationobject-detection

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image Classification CIFAR-100 AA-Wide-ResNet Percentage correct 81.6 #116 of 211 Archive leaderboard report
Image Classification ImageNet AA-ResNet-152 Top 1 Accuracy 79.1% #776 of 1060 Archive leaderboard report
Object Detection COCO test-dev AA-ResNet-10 + RetinaNet Operations per network pass 24.5G #206 of 225 Archive leaderboard report
Object Detection COCO test-dev AA-ResNet-10 + RetinaNet box mAP 39.2 #206 of 225 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

Introduced by this paper: Attention-augmented Convolution

1x1 ConvolutionAttentionAttention-augmented ConvolutionAverage PoolingBatch NormalizationBottleneck Residual BlockConvolutionCosine AnnealingDense ConnectionsDepthwise ConvolutionDepthwise Separable ConvolutionDropoutFPNFocal LossGlobal Average PoolingInverted Residual BlockKaiming InitializationLinear LayerMax PoolingMnasNetMulti-Head AttentionPointwise ConvolutionRandom Horizontal FlipRandom Resized CropReLUResidual BlockResidual ConnectionRetinaNetSGD with MomentumSigmoid ActivationSoftmaxSqueeze-and-Excitation BlockWeight 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