Attention Meets Post-hoc Interpretability: A Mathematical Perspective
Not on the map. Why?
Abstract (arXiv)
Attention-based architectures, in particular transformers, are at the heart of a technological revolution. Interestingly, in addition to helping obtain state-of-the-art results on a wide range of applications, the attention mechanism intrinsically provides meaningful insights on the internal behavior of the model. Can these insights be used as explanations? Debate rages on. In this paper, we mathematically study a simple attention-based architecture and pinpoint the differences between post-hoc and attention-based explanations. We show that they provide quite different results, and that, despite their limitations, post-hoc methods are capable of capturing more useful insights than merely examining the attention weights.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 41 of its 58 references that are in the map. First posted on arXiv 5 Feb 2024.
Builds on
41 of 58 references.
References · 41
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,488
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2017Axiomatic Attribution for Deep Networkscited by 3,350
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2019Attention is not Explanationcited by 916
- 2022Transformers learn in-context by gradient descentcited by 714
- 2019Attention is not not Explanationcited by 629
- 2020Transformer Interpretability Beyond Attention Visualizationcited by 620
- 2015Bidirectional LSTM-CRF Models for Sequence Taggingcited by 544
29 more
- 2019Fooling LIME and SHAP: Adversarial Attacks on Post hoc Explanation Methodscited by 440
- 2019Is Attention Interpretable?cited by 387
- 2018Implicit Bias of Gradient Descent on Linear Convolutional Networkscited by 251
- 2019Analyzing the Structure of Attention in a Transformer Language Modelcited by 241
- 2015Visualizing and Understanding Neural Models in NLPcited by 199
- 2020A Diagnostic Study of Explainability Techniques for Text Classificationcited by 158
- 2021Inductive Biases and Variable Creation in Self-Attention Mechanismscited by 144
- 2021Benchmarking and Survey of Explanation Methods for Black Box Modelscited by 136
- 2020The elephant in the interpretability room: Why use attention as explanation when we have saliency methods?cited by 122
- 2019On Identifiability in Transformerscited by 115
- 2014Long Short-Term Memory Based Recurrent Neural Network Architectures for Large Vocabulary Speech Recognitioncited by 111
- 2019Attention in Natural Language Processingcited by 100
- 2022Vision Transformers provably learn spatial structurecited by 92
- 2021The Out-of-Distribution Problem in Explainability and Search Methods for Feature Importance Explanationscited by 86
- 2023How Do Transformers Learn Topic Structure: Towards a Mechanistic Understandingcited by 85
- 2023Transformers as Support Vector Machinescited by 67
- 2014Extraction of Salient Sentences from Labelled Documentscited by 50
- 2023What can a Single Attention Layer Learn? A Study Through the Random Features Lenscited by 39
- 2021Order in the Court: Explainable AI Methods Prone to Disagreementcited by 36
- 2021Attention Flows are Shapley Value Explanationscited by 30
- 2023Transformers are uninterpretable with myopic methods: a case study with bounded Dyck grammarscited by 30
- 2019Evaluating Recurrent Neural Network Explanationscited by 29
- 2019Generating Token-Level Explanations for Natural Language Inferencecited by 28
- 2020An Analysis of LIME for Text Datacited by 25
- 2022A Song of (Dis)agreement: Evaluating the Evaluation of Explainable Artificial Intelligence in Natural Language Processingcited by 13
- 2021Effective Attention Sheds Light On Interpretabilitycited by 11
- 2022A Sea of Words: An In-Depth Analysis of Anchors for Text Datacited by 6
- 2022An Attention Matrix for Every Decision: Faithfulness-based Arbitration Among Multiple Attention-Based Interpretations of Transformers in Text Classificationcited by 6
- 2023Faithful and Robust Local Interpretability for Textual Predictionscited by 2
Built on by
Citing papers per year: 2024: 2; 2025: 5; 2026: 4.
11 papers.
- 2025Training a Utility-based Retriever Through Shared Context Attribution for Retrieval-Augmented Language Modelscited by 13
- 2025Masks Can Be Distracting: On Context Comprehension in Diffusion Language Modelscited by 7
- 2024Discovering robust biomarkers of psychiatric disorders from resting-state functional MRI via graph neural networks: A systematic reviewcited by 1
- 2025Feature Attribution from First Principlescited by 1
- 2025There is More to Attention: Statistical Filtering Enhances Explanations in Vision Transformerscited by 1
- 2024Impact of Adversarial Attacks on Deep Learning Model Explainabilitycited by 0
- 2025The Role of Feature Interactions in Graph-based Tabular Deep Learningcited by 0
- 2026Memory Retrieval in Transformers: Insights from The Encoding Specificity Principlecited by 0
- 2026LEMON: Local Explanations via Modality-aware OptimizatioNcited by 0
- 2026Contribution Weights: A Geometrical Analysis of Self-Attention Transformerscited by 0
- 2026How Do LLMs Read Bug Reports? An Empirical Study of Attention in LLMs for Automated Program Repaircited by 0
- 2026How Do LLMs Read Bug Reports? An Empirical Study of Attention in LLMs for Automated Program Repair28 Jul 2026
- 2026Contribution Weights: A Geometrical Analysis of Self-Attention Transformers29 May 2026
- 2026LEMON: Local Explanations via Modality-aware OptimizatioN2 Feb 2026
- 2026Memory Retrieval in Transformers: Insights from The Encoding Specificity Principle28 Jan 2026
- 2025Masks Can Be Distracting: On Context Comprehension in Diffusion Language Models26 Nov 2025
- 2025There is More to Attention: Statistical Filtering Enhances Explanations in Vision Transformers7 Oct 2025
- 2025The Role of Feature Interactions in Graph-based Tabular Deep Learning6 Oct 2025
- 2025Feature Attribution from First Principles30 May 2025
- 2025Training a Utility-based Retriever Through Shared Context Attribution for Retrieval-Augmented Language Models1 Apr 2025
- 2024Impact of Adversarial Attacks on Deep Learning Model Explainability15 Dec 2024
- 2024Discovering robust biomarkers of psychiatric disorders from resting-state functional MRI via graph neural networks: A systematic review1 May 2024