Skip to main content
QUICK REVIEW

[Paper Review] Attention Correctness in Neural Image Captioning

Chenxi Liu, Junhua Mao|arXiv (Cornell University)|May 31, 2016
Multimodal Machine Learning ApplicationsComputer Science32 references73 citations
TL;DR

This paper proposes a quantitative metric to evaluate attention correctness in neural image captioning by measuring alignment between model-generated attention maps and human-annotated image-region-to-caption-entity correspondences. By introducing explicit supervision—strong when region-caption alignments are available, weak when only object segments and categories are provided—the authors show significant improvements in both attention map consistency with human annotations and overall captioning quality on Flickr30k and COCO datasets.

ABSTRACT

Attention mechanisms have recently been introduced in deep learning for various tasks in natural language processing and computer vision. But despite their popularity, the "correctness" of the implicitly-learned attention maps has only been assessed qualitatively by visualization of several examples. In this paper we focus on evaluating and improving the correctness of attention in neural image captioning models. Specifically, we propose a quantitative evaluation metric for the consistency between the generated attention maps and human annotations, using recently released datasets with alignment between regions in images and entities in captions. We then propose novel models with different levels of explicit supervision for learning attention maps during training. The supervision can be strong when alignment between regions and caption entities are available, or weak when only object segments and categories are provided. We show on the popular Flickr30k and COCO datasets that introducing supervision of attention maps during training solidly improves both attention correctness and caption quality, showing the promise of making machine perception more human-like.

Motivation & Objective

  • To quantitatively assess how consistently neural image captioning models attend to regions corresponding to specific words or phrases in captions.
  • To investigate whether more human-like attention maps lead to better captioning performance.
  • To develop a training framework that improves attention correctness through explicit supervision using either strong (region-caption alignment) or weak (object segment and category) annotations.
  • To close the gap between machine attention and human perception in visual captioning models.

Proposed method

  • Proposes a novel quantitative metric for attention correctness based on overlap between predicted attention maps and human-annotated image regions corresponding to noun phrases in captions.
  • Uses the Flickr30k Entities dataset as a source of ground truth region-to-entity alignments for evaluation and supervision.
  • Introduces a supervised attention mechanism that explicitly trains the attention module using either strong supervision (direct region-to-entity alignment) or weak supervision (object segment masks with category labels).
  • Employs a dual-branch architecture where the attention module is trained to predict attention maps that align with the ground truth, using cross-entropy loss.
  • Applies the supervised attention module within a standard encoder-decoder framework using CNNs for image feature extraction and RNNs for caption generation.
  • Evaluates the impact of supervision on both attention correctness and downstream captioning performance using standard metrics like BLEU and METEOR.

Experimental results

Research questions

  • RQ1How consistent are the attention maps generated by implicit attention models with human-annotated image regions corresponding to words or phrases in captions?
  • RQ2To what extent does improving attention correctness lead to better image captioning performance?
  • RQ3Can weak supervision—using only object segment masks and category labels—still significantly improve attention correctness and caption quality?
  • RQ4Is there a positive correlation between attention correctness and the quality of generated captions?

Key findings

  • The implicit attention model outperforms a uniform attention baseline but still exhibits significant inconsistency with human annotations, indicating room for improvement.
  • Supervised attention models with strong supervision (using region-caption alignments) achieve significantly higher attention correctness than implicit models.
  • On the Flickr30k dataset, the supervised model improves BLEU-4 by 0.9 points and METEOR by 0.21 points compared to the implicit baseline.
  • On the COCO dataset, the supervised model improves BLEU-4 by 0.7 points and METEOR by 0.32 points over the implicit baseline.
  • A positive correlation is observed between attention correctness and captioning quality: for high-accuracy attention regions, BLEU-4 reaches 28.1, compared to 25.4 for low-accuracy regions.
  • Even with weak supervision (object segments and categories), the model achieves substantial gains in both attention correctness and caption quality, demonstrating the robustness of the approach.

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.