Papers › Attention on Attention for Image Captioning

Attention on Attention for Image Captioning

19 Aug 2019ICCV 2019 10arXiv:1908.06954archive 2025-07-28

Lun Huang, Wenmin Wang, Jie Chen, Xiao-Yong Wei

Attention mechanisms are widely used in current encoder/decoder frameworks of image captioning, where a weighted average on encoded vectors is generated at each time step to guide the caption decoding process. However, the decoder has little idea of whether or how well the attended vector and the given attention query are related, which could make the decoder give misled results. In this paper, we propose an Attention on Attention (AoA) module, which extends the conventional attention mechanisms to determine the relevance between attention results and queries. AoA first generates an information vector and an attention gate using the attention result and the current context, then adds another attention by applying element-wise multiplication to them and finally obtains the attended information, the expected useful knowledge. We apply AoA to both the encoder and the decoder of our image captioning model, which we name as AoA Network (AoANet). Experiments show that AoANet outperforms all previously published methods and achieves a new state-of-the-art performance of 129.8 CIDEr-D score on MS COCO Karpathy offline test split and 129.6 CIDEr-D (C40) score on the official online testing server. Code is available at https://github.com/husthuaan/AoANet.

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

Code

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

By repository: official repository: 8 samples from 1 repository, 3 ran; community (archive-listed): 6 samples from 2 repositories, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

husthuaan/AoANet officialmentioned in papermentioned on GitHubpytorchMIT report
JunnYu/x-transformers-paddle mentioned on GitHubjaxApache-2.0 report
Lieberk/Paddle-AoA-Captioning mentioned on GitHubpaddleMIT report
Yinan-Zhao/AoANet_VizWiz mentioned on GitHubpytorchMIT report
fuqianya/AoANet-Paddle mentioned on GitHubpaddle 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

14 samples harvested; 4 ran; 0 honoured the contract we drafted; 10 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.

3ran · our draft was wrong
1ran
10unverified

Licence: 0 of the 14 samples are 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. “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.

pack_wrapper husthuaan/AoANet/models/AttModel.py official repository ran · our draft was wrong MIT (permissive) · d2379d710eedc4ae · report
pad_unsort_packed_sequence husthuaan/AoANet/models/AttModel.py official repository ran · our draft was wrong MIT (permissive) · bfac58a04b6835f5 · report
sort_pack_padded_sequence husthuaan/AoANet/models/AttModel.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · e56d2f9cbd9cb8b1 · report
count_bad husthuaan/AoANet/eval_utils.py official repository unverified MIT (permissive) · 0a4de8f498e3e70c · report
language_eval husthuaan/AoANet/eval_utils.py official repository unverified MIT (permissive) · 06b72839dcd7433f · report
resnet18 husthuaan/AoANet/misc/resnet.py official repository unverified MIT (permissive) · 2b17380e9938d559 · report
resnet34 husthuaan/AoANet/misc/resnet.py official repository unverified MIT (permissive) · d206d964368eeb24 · report
resnet50 husthuaan/AoANet/misc/resnet.py official repository unverified MIT (permissive) · fade30a7dab7a039 · report
array_to_str Lieberk/Paddle-AoA-Captioning/misc/rewards.py community (archive-listed) ran MIT (permissive) · cab04f1e2101c79a · report
language_eval Lieberk/Paddle-AoA-Captioning/misc/eval_utils.py community (archive-listed) unverified MIT (permissive) · 1025831953c8de89 · report
language_eval Yinan-Zhao/AoANet_VizWiz/eval_utils.py community (archive-listed) unverified MIT (permissive) · 3b970e4dd2aa2488 · report
load_para Yinan-Zhao/AoANet_VizWiz/finetune_vizwiz.py community (archive-listed) unverified MIT (permissive) · b5a3aa10efea531b · report
pickle_dump Lieberk/Paddle-AoA-Captioning/misc/utils.py community (archive-listed) unverified MIT (permissive) · 2302f3c9ece22a91 · report
pickle_load Lieberk/Paddle-AoA-Captioning/misc/utils.py community (archive-listed) unverified MIT (permissive) · 05a5570decb65f28 · report

Tasks

DecoderImage Captioning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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