Rethinking Attention-Model Explainability through Faithfulness Violation Test

Yibing Liu, Haoliang Li, Yangyang Guo, Chenqi Kong, Jing Li, Shiqi Wang

Attention mechanisms have become the standard tool for explaining the decisions of deep learning models. It is widely assumed that if a model pays high attention to a specific word or image region, that feature is a key reason for its prediction. However, this paper introduces a "faithfulness violation test" to reveal a critical flaw in attention-based explanations: high attention weights often highlight features that actually suppress a model's prediction rather than support it.

The Problem: Missing Polarity Consistency

Existing faithfulness metrics typically check if removing high-attention features hurts model performance (often called importance correlation). But they miss a subtle, dangerous failure mode: what if the model is attending to something that actually makes it less confident in its correct answer?

If an explanation highlights such a "suppressor" as a primary reason for the prediction, it is fundamentally misleading. The authors argue that feature "importance" isn't just about magnitude; it's also about polarity. This paper formalizes this gap as a lack of polarity consistency.

Methodology: The Faithfulness Violation Test

To expose this flaw, the researchers propose the Faithfulness Violation Test. The process is straightforward:

  1. Identify: Find the feature (token or image region) with the highest explanation weight.
  2. Perturb: Remove this feature from the input.
  3. Measure: Calculate the change in model confidence ($\Delta C$).
  4. If confidence drops ($\Delta C > 0$), the feature was a "supporter."
  5. If confidence increases ($\Delta C < 0$), the feature was actually a "violator"—it was suppressing the prediction despite having a high explanation weight.

The study evaluates nine different explanation methods across six tasks and nine datasets (including SST, Yelp, SNLI, VQA 2.0, and GQA).

Key Insights and Findings

Attention is Often a "Violator"

In many cases, regions with the highest attention scores are actually faithfulness violators. As shown in the data map for VQA models, a significant portion of samples (up to 38%) show confidence increasing after the most-attended regions are removed. This indicates that raw attention frequently highlights features that hinder, rather than help, the model's final prediction.

Data map showing Faithfulness Supporters vs. Violators

Existing Metrics are Blind to Violations

Popular evaluation metrics like Sufficiency and Comprehensiveness fail to detect these polarity violations. Standard metrics do not show a clear trend even when violation levels are high, making them unreliable for true faithfulness evaluation.

Existing metrics fail to correlate with violation levels

Depth Breeds Unfaithfulness

The authors found a clear positive correlation between the number of non-linear layers in a model and the frequency of faithfulness violations. As models grow deeper and more complex, their internal raw attention mechanisms become increasingly unreliable as direct explanations.

Gradients are the Antidote

Across almost all tasks, "Raw Attention" and "Attention $\odot$ InputNorm" performed the worst on the violation test, often reaching violation ratios of 30-40%. Conversely, methods that incorporate gradients—such as AttGrad (Attention $\odot$ Gradient) and GenAtt (Generic Attention Attribution)—significantly outperform raw attention. Gradients provide the necessary "sign" information to distinguish between features that help and those that hinder a prediction. For general attention models, AttGrad reduced violations to under 7% on average.

Limitations and Future Work

The authors acknowledge that using confidence perturbation as a ground truth for "impact" has its own issues, primarily the Out-of-Distribution (OOD) problem. Removing a feature might create an input the model never saw during training, leading to erratic behavior. While they used multiple replacement functions (Slice Out, MASK, etc.) to mitigate this, it remains a fundamental challenge.

Future work should focus on developing explanation methods that explicitly account for polarity from the ground up, alongside more robust evaluation frameworks that can distinguish between model noise and genuine suppression effects.

Summary updated

BibTeX
@inproceedings{liu2022rethinking,
  author = {Yibing Liu and Haoliang Li and Yangyang Guo and Chenqi Kong and Jing Li and Shiqi Wang},
  title = {{Rethinking Attention-Model Explainability through Faithfulness Violation Test}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=PoZ9RB6zGh},
}
Figure