Grounding Visual Explanations (Extended Abstract)

Lisa Anne Hendricks, Ronghang Hu, Trevor Darrell, Zeynep AkataarXiv 2017

Abstract

Neural networks that generate textual explanations for their classifications often "hallucinate" features that are typical for a class but missing from the specific image. This paper introduces a "phrase-critic" model that grounds generated phrases in the image, scoring and ranking candidate explanations to ensure they are both class-discriminative and actually visually present.

Introduction

As neural networks become more complex, the need for Explainable AI (XAI) grows. One popular approach is generating natural language justifications for a model's classification decisions. However, a major conflict arises between two goals: being class-discriminative and being image-relevant.

If a model learns that a specific bird species usually has a "red beak," it might generate an explanation citing a "red beak" to justify its classification—even if the bird's beak is hidden, occluded, or atypically colored in the specific input image. Previous models lacked a mechanism to verify if the text they generated was actually grounded in the visual evidence. This paper tackles this "hallucination" problem by introducing a system that checks and corrects textual explanations to ensure they align with the actual image.

Methodology

The authors propose a sample-and-rank pipeline consisting of three main components:

  1. Explanation Sampler: A baseline LSTM-based text generator creates a large pool of candidate explanations trained to mention class-specific attributes.
  2. Explanation Grounder: A rule-based chunker extracts attribute phrases from the generated sentences (e.g., "black beak", "white eye"). An off-the-shelf localization model then attempts to find these phrases in the image, returning bounding boxes and raw confidence scores.
  3. Phrase-Critic: This novel component addresses the difficulty of comparing raw grounding scores across different attributes (e.g., a well-defined "eye" vs. a vague "belly"). The phrase-critic processes extracted phrases, their visual regions, and raw scores through an LSTM and a two-layer neural network to output a normalized image-relevance score for the entire sentence.
The proposed sample-and-rank pipeline, featuring the Explanation Sampler, Grounder, and the novel Phrase-Critic module.

Training the Critic

The critic is trained using a margin-based ranking loss. To create effective negative training examples, the authors use Flipped Attribute Training. Instead of using random sentences as negatives, they take a correct sentence and "flip" an attribute—for example, changing "red head" to "black head." This forces the model to learn fine-grained visual grounding.

Key Insights

  • Decoupling Fluency and Grounding: By separating text generation from visual verification, the phrase-critic can focus entirely on visual accuracy, acting as a strict fact-checker.
  • Hard Negatives are Crucial: In fine-grained classification, "flipping" specific words (like colors or sizes) creates challenging negative examples that drastically improve the critic's ability to spot hallucinations.
  • Score Normalization: The phrase-critic acts as a vital normalization layer, making disparate visual grounding scores comparable across different images and body parts.

Results and Discussion

Quantitative evaluation on the Caltech UCSD Birds 200-2011 (CUB) dataset showed that the phrase-critic ranking method significantly improved the image relevance of mentioned attributes (85% image-relevant attributes vs. 79% for the baseline).

Qualitatively, the model successfully avoids hallucinating features. In a highlighted example of a Pigeon Guillemot, the baseline model incorrectly cited an "orange beak" (a common class feature). The phrase-critic model correctly rejected this in favor of an explanation mentioning a "black beak," while providing bounding boxes that visually link the text to the specific image regions.

A qualitative example of the Phrase-Critic correctly identifying and grounding attributes for a Pigeon Guillemot, avoiding common class hallucinations.

Limitations and Future Work

The system currently relies on frozen external modules, such as the rule-based attribute chunker and the Visual Genome grounder, which may limit the overall performance ceiling. Additionally, the final ranking still requires a separate fluency score to avoid ungrammatical but highly visible phrases. A natural future direction is integrating this grounding critic directly into the generator's training loop for end-to-end optimization.

Summary updated

BibTeX
@misc{hendricks2017grounding,
  author = {Lisa Anne Hendricks and Ronghang Hu and Trevor Darrell and Zeynep Akata},
  title = {{Grounding Visual Explanations (Extended Abstract)}},
  year = {2017},
  eprint = {1711.06465},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1711.06465},
}
Figure