Rethinking Attention-Model Explainability through Faithfulness Violation Test

Yibing Liu, Haoliang Li, Yangyang Guo, Chenqi Kong, Jing Li +1 more
1/28/2022
cs.LGcs.CLcs.CV
transformer-attention

Official code: BierOne/Attention-Faithfulness (20 stars, Python, MIT, last commit 2022-07-21).

Abstract

Attention mechanisms are dominating the explainability of deep models. They produce probability distributions over the input, which are widely deemed as feature-importance indicators.

Show full abstract

However, in this paper, we find one critical limitation in attention explanations: weakness in identifying the polarity of feature impact. This would be somehow misleading -- features with higher attention weights may not faithfully contribute to model predictions; instead, they can impose suppression effects. With this finding, we reflect on the explainability of current attention-based techniques, such as Attentio$\odot$Gradient and LRP-based attention explanations. We first propose an actionable diagnostic methodology (henceforth faithfulness violation test) to measure the consistency between explanation weights and the impact polarity. Through the extensive experiments, we then show that most tested explanation methods are unexpectedly hindered by the faithfulness violation issue, especially the raw attention. Empirical analyses on the factors affecting violation issues further provide useful observations for adopting explanation methods in attention models.

View on arXivView PDF

Code Implementations(1)

MIT

[ICML 2022] This is the pytorch implementation of "Rethinking Attention-Model Explainability through Faithfulness Violation Test" (https://arxiv.org/abs/2201.12114).

202Python, Jupyter NotebookMay 23, 20224 years agoMIT

Similar Papers

Cite this paper

@article{liu2022rethinking,
  title  = {Rethinking Attention-Model Explainability through Faithfulness Violation Test},
  author = {Yibing Liu and Haoliang Li and Yangyang Guo and Chenqi Kong and Jing Li and Shiqi Wang},
  year   = {2022},
  eprint = {2201.12114},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.12114}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2201.12114.svg)](https://codeofpaper.com/paper/2201.12114)

Discussion