Skip to main content
QUICK REVIEW

[Paper Review] Attention on Attention for Image Captioning

Lun Huang, Wenmin Wang|arXiv (Cornell University)|Aug 19, 2019
Multimodal Machine Learning ApplicationsComputer Science48 references51 citations
TL;DR

This paper introduces Attention on Attention (AoA), a module that gauges the relevance between attention results and queries, and applies it to both the encoder and decoder to form AoANet, achieving state-of-the-art CIDEr-D scores on MS COCO.

ABSTRACT

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.

Motivation & Objective

  • Motivate and address the misalignment between attended vectors and queries in standard attention for image captioning.
  • Propose AoA as an augmentation to conventional attention to assess and exploit the relevance of attended information.
  • Develop AoANet by integrating AoA into both image encoder refinements and the caption decoder.
  • Evaluate performance on MS COCO and demonstrate state-of-the-art results.

Proposed method

  • Define Attention on Attention (AoA) which produces an information vector and an attention gate from the attention result and the current context, then applies gated, element-wise attention to obtain attended information.
  • Apply AoA to both encoder and decoder: encoder uses AoA in a refining module with self-attention to model object relationships; decoder uses AoA to filter and emphasize useful attention outputs when generating captions.
  • Use multi-head self-attention in the encoder refinement, followed by AoA with residual connections and layer normalization; decoder employs an LSTM with an AoA-based context vector.
  • Train with cross-entropy loss followed by CIDEr-D optimization via Self-Critical Sequence Training (SCST); employ Faster-RCNN bottom-up features projected to 1024-dim for inputs.

Experimental results

Research questions

  • RQ1Can AoA reliably measure and enforce the relevance between attention results and the decoding context in image captioning?
  • RQ2Does applying AoA to the encoder improve modeling of inter-object relationships, and does applying AoA to the decoder reduce misled attention during caption generation?
  • RQ3How does AoANet perform on standard MS COCO benchmarks compared to prior state-of-the-art methods?

Key findings

  • Single AoANet model achieves 119.8 CIDEr-D on offline MS COCO (XE training), outperforming prior single-model methods.
  • Ensembling four AoANet models reaches 132.0 CIDEr-D on offline MS COCO (CIDEr-D optimization).
  • On the official online server, AoANet attains 129.6 CIDEr-D (C40) and leads in most metrics.
  • Qualitative and ablation analyses show AoA helps reduce misled attention and improves object counting and interaction understanding (e.g., birds on giraffe, tennis rackets).
  • Generalization experiments on MSR-VTT indicate AoA can improve video captioning with similar gains.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.