Grounding Visual Explanations

Lisa Anne Hendricks, Ronghang Hu, Trevor Darrell, Zeynep Akata

TL;DR

Researchers have developed a "phrase-critic" model that ensures AI-generated visual explanations are actually based on the image provided, rather than just reciting "stereotypical" facts about a category. By grounding specific phrases in image regions and utilizing counterfactual reasoning (explaining why an object isn't something else), this approach significantly improves the reliability and transparency of fine-grained classification.

What Problem Does This Paper Address?

Deep learning models are often "black boxes." While we have models that can classify a bird as a "Cardinal" and generate a sentence explaining why, these agents often "hallucinate." For example, a model might say, "This is a cardinal because it has a red beak," simply because most cardinals have red beaks in the training data—even if the beak in the specific image is obscured or a different color.

This happens because there is a tension between class relevance (what makes a cardinal a cardinal) and image relevance (what is actually visible). If an agent provides justifications that aren't visible to the user, it loses human trust. The authors aim to bridge this gap by forcing the model to "ground" its explanations in the actual pixels.

Methods

The authors propose a modular framework consisting of three main parts:

  1. Explanation Sampler: A base model (LSTM-based) generates several candidate explanations for a predicted class.
  2. Explanation Grounder: This component takes the candidate sentences, "chunks" them into noun phrases (e.g., "red beak," "black wings"), and uses an off-the-shelf grounding model to find the most likely bounding box in the image for each phrase.
  3. Phrase-Critic (The Core Innovation): This is a global ranker. It takes the image, the candidate phrases, their proposed bounding boxes, and their localization scores. It then outputs a single "image relevance score."

To train the Phrase-Critic, the authors used a margin-based ranking loss. Crucially, they didn't just use random wrong sentences as negative examples. They created "hard negatives" by flipping attributes—taking a true sentence like "yellow belly" and changing it to "red belly." This forces the critic to pay attention to fine-grained visual details rather than just sentence structure.

The final selection of an explanation is a balance: the model filters for fluency (does it sound like a real sentence?) and then picks the candidate with the highest relevance score from the Phrase-Critic.

Datasets

  • CUB-200-2011: A classic fine-grained dataset of 200 bird species. It’s challenging because species often differ by only a single attribute (like beak shape or eye color).
  • FOIL (Find One mismatch between Image and Language): A dataset designed to test if models can detect when a single word in a caption is wrong (e.g., a caption saying "bird" when the image shows a "dog").

Key Insights and Ideas

  • The "Why Not" Factor (Counterfactuals): One of the most powerful ways humans explain things is by contrast. The Phrase-Critic allows the model to generate counterfactual explanations: "It is not a Vermilion Flycatcher because it does not have black wings." This is achieved by finding attributes that are common in a "distractor" class but have very low grounding scores in the current image.
  • Discriminative vs. Generative: The authors argue that the critic should be a discriminative model. It doesn't need to know how to write a beautiful sentence; it just needs to be an expert at verifying if a phrase matches a set of pixels.
  • Chunking Matters: By breaking sentences into noun phrases, the model can verify an explanation piece-by-piece. This prevents the model from being "fooled" by a sentence that is 90% correct but contains one glaring hallucination.

Key Results

  • Human Evaluation on CUB: The Phrase-Critic outperformed baselines in generating "Correct Noun Phrases" (77.96% vs 76.64%) and "Correct Sentences" (61.97% vs 52.10%). Humans found the grounded explanations significantly more trustworthy.
  • FOIL Tasks: The model showed a massive leap in performance on the FOIL dataset. On the classification task (is the sentence correct?), it achieved 87.00% accuracy, compared to the previous state-of-the-art of 64.14%. It also nearly tripled the accuracy of "Word Correction" (fixing the incorrect word in a foil sentence).
  • Qualitative Grounding: The model successfully produced bounding boxes for specific attributes (like "red cheek patch"), providing a visual "receipt" for its textual claims.

Limitations and Future Work

The authors noted several failure modes:

  • Attribute Bleeding: If a bird is holding a red fruit near its beak, the model might incorrectly ground "red beak" because of the nearby red pixels.
  • Unusual Orientations: The grounding model (trained on Visual Genome) sometimes struggled with birds in non-standard poses (e.g., perched vertically on a trunk), leading to inaccurate bounding boxes for parts like the "long neck."
  • Dependency on Chunker: The system relies on a rule-based POS (Part-of-Speech) tagger to extract phrases. Moving toward a more end-to-end learnable extractor could make the system more robust across different domains beyond birds and common objects.

Summary updated

BibTeX
@inproceedings{hendricks2018grounding,
  author = {Lisa Anne Hendricks and Ronghang Hu and Trevor Darrell and Zeynep Akata},
  title = {{Grounding Visual Explanations}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  url = {https://openreview.net/forum?id=rJZ06tWOZB},
}
Figure