Faithful Attention Explainer: Verbalizing Decisions Based on Discriminative Features

Yao Rong, David Scheerer, Enkelejda Kasneci

TL;DR

The Faithful Attention Explainer (FAE) is a new framework that generates textual justifications for AI image classification decisions that are actually "faithful" to the visual features the model used. By aligning generated words with specific visual attention maps—including human gaze data—FAE ensures that what the model says matches what it "sees," bridging the gap between complex visual saliency maps and human-readable explanations.

What Problem Does This Paper Address?

In Explainable AI (XAI), we usually get one of two things: a saliency map (a heat map showing which pixels the model looked at) or a textual justification (a sentence explaining the decision).

The problem is that saliency maps are often unintuitive for non-experts, while textual justifications frequently suffer from a lack of "faithfulness." A model might correctly classify a bird but then generate a generic description of features that aren't even visible in the specific image. This happens because standard language models often prioritize linguistic fluency over grounding the text in the actual visual evidence. The authors aim to create a system where the text is strictly tied to the discriminative features responsible for the model's decision.

Methods

FAE uses an Encoder-Decoder architecture, but with two clever twists to ensure grounding:

  1. Attention Alignment with BiLSTM: Standard attention mechanisms calculate weights based only on past words. FAE introduces an "attention alignment" module using a Bidirectional LSTM (BiLSTM). This allows the model to use "future knowledge" (the entire generated sequence) to refine the attention maps during training, ensuring each word is correctly mapped to the right image region.
  2. Attention Enforcement (AE): This is a novel inference-time technique. Users can provide an "extrinsic" attention map—like a GradCAM result or even human eye-tracking data—to force the model to describe specific areas. If you point the model to a bird's wing, the AE module ensures the generated sentence focuses on the wing.
Figure 2: Overview of Faithful Attention Explainer. The encoder is omitted for simplicity but the output features 𝑉𝑓and 𝑉𝑖from the encoder are denoted. The embedding layer is used to transform words into embeddings. Left: the attention model and decoder are illustrated. The attention model produces attention 𝛼based on the previous sequence. Right: the attention alignment is used to produce 𝛼^ based on the generated sequence 𝑦^𝑡:𝑇, which tries to align 𝛼with 𝛼^.

Datasets

The researchers evaluated FAE on two primary benchmarks:

  • CUB-200-2011: A fine-grained dataset of 200 bird species, featuring ten textual explanations per image.
  • ACT-X (Action Explanation): A dataset containing nearly 400 classes of human activities (e.g., "riding a skateboard") with three explanations per image.
  • CUB-GHA: A specialized subset of CUB that includes human gaze fixations, used to test how well FAE can verbalize human attention.

Key Insights and Ideas

  • Faithfulness > Fluency: The paper argues that for XAI, it is more important for a model to be honest about its internal logic than to produce a perfectly poetic sentence. They use the Faithful Explanation Rate (FER) to quantify how often the generated text actually mentions the objects highlighted by the model's internal attention.
  • Bridging Human and AI Attention: One of the most exciting findings is that FAE can interpret human gaze. By feeding human eye-tracking maps into the Attention Enforcement module, the model generates descriptions that reflect what a human was looking at when they made a decision.
  • LLMs Aren't Perfect Explainers (Yet): The authors compared FAE to GPT-4. While GPT-4 is linguistically superior, it frequently "hallucinates" when interpreting saliency maps—for example, mistaking a bird's belly for its head because the heat map was ambiguous. FAE’s tighter coupling of features to words helps mitigate this.

Key Results

FAE demonstrated significant improvements in both linguistic quality and faithfulness:

  • Linguistic Performance: On the CUB dataset, FAE achieved a CIDer score of 66.36, significantly outperforming the baseline GVE (56.70).
  • Faithfulness (FER): The Attention Enforcement (AE) module boosted the Faithful Explanation Rate across the board. On CUB, FAE-AE reached a score of 44.33, compared to 37.43 for standard attention models.
  • Qualitative Success: As shown in the figure below, FAE successfully adjusts its descriptions based on the provided attention map. When forced to look at a "white belly" via GradCAM, the model incorporates that specific detail into its explanation.
Qualitative examples showing how FAE generates different sentences when guided by GradCAM or Human Gaze.

Limitations and Future Work

The authors note that while FAE is more faithful than large-scale models like GPT-4 in specific contexts, it still relies on high-quality visual features from the underlying classifier. If the classifier itself is looking at the wrong thing, the explanation will faithfully report that error, which is good for debugging but might be confusing for end-users.

Future work involves fine-tuning smaller, more efficient language models specifically on human gaze data. This could lead to "gaze-driven interactions," where an AI can explain its reasoning in real-time based on where a human operator is looking, creating a more seamless partnership between humans and machines.

Summary updated

BibTeX
@inproceedings{rong2024faithful,
  author = {Yao Rong and David Scheerer and Enkelejda Kasneci},
  title = {{Faithful Attention Explainer: Verbalizing Decisions Based on Discriminative Features}},
  booktitle = {xAI (Late-breaking Work, Demos, Doctoral Consortium)},
  year = {2024},
}
Figure