Skip to main content
QUICK REVIEW

[Paper Review] Understanding Image Captioning Models beyond Visualizing Attention

Jiamei Sun, Sebastian Lapuschkin|arXiv (Cornell University)|Jan 4, 2020
Multimodal Machine Learning ApplicationsComputer Science100 references8 citations
TL;DR

This paper proposes and evaluates advanced explanation methods—adapted LRP and gradient-based techniques—for image captioning models with attention, demonstrating they provide more precise, dual-level (visual and linguistic) explanations than attention heatmaps alone. The method reveals model decision-making evidence, reduces hallucinations via LRP-inference fine-tuning, and maintains fluency.

ABSTRACT

This paper interprets the predictions of image captioning models with attention mechanisms beyond visualizing the attention itself. In this paper, we develop variants of layer-wise relevance propagation (LRP) and gradient-based explanation methods, tailored to image captioning models with attention mechanisms. We compare the interpretability of attention heatmaps systematically against the explanations computed with explanation methods such as LRP, Grad-CAM, and Guided Grad-CAM. We show that explanation methods provide simultaneously pixel-wise image explanation (supporting and opposing pixels of the input image) and linguistic explanation (supporting and opposing words of the preceding sequence) for each word in the predicted captions. We demonstrate with extensive experiments that explanation methods can 1) reveal more related evidence used by the model to make decisions than attention; 2) correlate to object locations with high precision; 3) is helpful to `debug' the model such as analyzing the reasons for hallucinated object words. With the observed properties of explanations, we further design an LRP-inference fine-tuning strategy that can alleviate the object hallucination of image captioning models, meanwhile, maintain the sentence fluency. We conduct experiments with two widely used attention mechanisms: the adaptive attention mechanism calculated with the additive attention and the multi-head attention calculated with the scaled dot product.

Motivation & Objective

  • To develop explanation methods that go beyond visual attention heatmaps for image captioning models.
  • To provide dual-level explanations—pixel-wise and word-wise—supporting and opposing evidence for each predicted caption word.
  • To diagnose and mitigate model hallucinations, particularly for spurious or incorrect object words.
  • To design a fine-tuning strategy using LRP-inference to reduce hallucination while preserving fluency in generated captions.
  • To evaluate the effectiveness of explanation methods across two standard attention mechanisms: additive and multi-head attention.

Proposed method

  • Adapt layer-wise relevance propagation (LRP) for image captioning models with attention, assigning relevance scores to input pixels and hidden states.
  • Introduce gradient-based explanation methods such as Grad-CAM, Guided Grad-CAM, and their variants tailored to the autoregressive captioning setup.
  • Compute relevance scores for each word in the predicted caption sequence, linking them to both input image pixels and previous words in the caption.
  • Use the resulting explanations to identify supporting and opposing visual and linguistic evidence for each predicted word.
  • Design an LRP-inference fine-tuning strategy that adjusts model parameters based on relevance scores to reduce hallucinated object predictions.
  • Apply and compare methods on models using additive attention and multi-head scaled dot-product attention.

Experimental results

Research questions

  • RQ1Can explanation methods like LRP and gradient-based techniques reveal more accurate and comprehensive evidence than attention heatmaps in image captioning?
  • RQ2How well do these explanation methods correlate with ground-truth object locations in the image?
  • RQ3To what extent can explanation methods help diagnose and understand model hallucinations in generated captions?
  • RQ4Can LRP-inference fine-tuning effectively reduce hallucinated object words without degrading caption fluency?
  • RQ5How do the interpretability properties of explanation methods differ between additive and multi-head attention mechanisms?

Key findings

  • Explanation methods such as LRP and gradient-based techniques provide more precise and comprehensive evidence than attention heatmaps, revealing both supporting and opposing pixels and words.
  • The explanation methods show high correlation with ground-truth object locations, outperforming attention in localization accuracy.
  • The methods effectively expose the root causes of hallucinated object words, enabling targeted model debugging.
  • The proposed LRP-inference fine-tuning strategy successfully reduces hallucinations in image captioning models while maintaining high fluency in generated captions.
  • The explanation methods are effective across both additive and multi-head attention mechanisms, demonstrating robustness to architectural differences.
  • The dual-level (visual and linguistic) explanations enable deeper insight into model reasoning, especially for complex or erroneous predictions.

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.