Understanding Image Captioning Models beyond Visualizing Attention
Authors:
Preprint
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.Keywords
All Related Versions
This publication has 15 references indexed in Scilit:
- From Clustering to Cluster Explanations via Neural NetworksIEEE Transactions on Neural Networks and Learning Systems, 2022
- GraphLIME: Local Interpretable Model Explanations for Graph Neural NetworksIEEE Transactions on Knowledge and Data Engineering, 2022
- Explanation-Guided Training for Cross-Domain Few-Shot Classification2021
- Explain Graph Neural Networks to Understand Weighted Graph Features in Node Classification2020
- Towards Best Practice in Explaining Neural Network Decisions with LRP2020
- Spatio-Temporal Memory Attention for Image CaptioningIEEE Transactions on Image Processing, 2020
- Testing the Robustness of Attribution Methods for Convolutional Neural Networks in MRI-Based Alzheimer’s Disease Classification2019
- Context-Aware Visual Policy Network for Fine-Grained Image CaptioningIEEE Transactions on Pattern Analysis and Machine Intelligence, 2019
- Explaining nonlinear classification decisions with deep Taylor decompositionPattern Recognition, 2017
- Microsoft COCO: Common Objects in Context2014