Attention Mechanisms Don't Learn Additive Models: Rethinking Feature Importance for Transformers
Not on the map. Why?
Abstract (arXiv)
We address the critical challenge of applying feature attribution methods to the transformer architecture, which dominates current applications in natural language processing and beyond. Traditional attribution methods to explainable AI (XAI) explicitly or implicitly rely on linear or additive surrogate models to quantify the impact of input features on a model's output. In this work, we formally prove an alarming incompatibility: transformers are structurally incapable of representing linear or additive surrogate models used for feature attribution, undermining the grounding of these conventional explanation methodologies. To address this discrepancy, we introduce the Softmax-Linked Additive Log Odds Model (SLALOM), a novel surrogate model specifically designed to align with the transformer framework. SLALOM demonstrates the capacity to deliver a range of insightful explanations with both synthetic and real-world datasets. We highlight SLALOM's unique efficiency-quality curve by showing that SLALOM can produce explanations with substantially higher fidelity than competing surrogate models or provide explanations of comparable quality at a fraction of their computational costs. We release code for SLALOM as an open-source project online at https://github.com/tleemann/slalom_explanations.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 40 of its 60 references that are in the map. First posted on arXiv 22 May 2024.
Builds on
40 of 60 references.
References · 40
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,070
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
- 2017Axiomatic Attribution for Deep Networkscited by 3,384
- 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,371
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,984
- 2017Learning Important Features Through Propagating Activation Differencescited by 1,458
- 2022Are Transformers Effective for Time Series Forecasting?cited by 1,424
28 more
- 2017SmoothGrad: removing noise by adding noisecited by 1,109
- 2019Attention is not Explanationcited by 929
- 2020Quantifying Attention Flow in Transformerscited by 775
- 2019Attention is not not Explanationcited by 636
- 2019ERASER: A Benchmark to Evaluate Rationalized NLP Modelscited by 530
- 2018Explaining Explanations: An Overview of Interpretability of Machine Learningcited by 508
- 2019Is Attention Interpretable?cited by 389
- 2020A Survey on the Explainability of Supervised Machine Learningcited by 227
- 2020Explaining by Removing: A Unified Framework for Model Explanationcited by 218
- 2019Neural Legal Judgment Prediction in Englishcited by 209
- 2020Self-Attention Attribution: Interpreting Information Interactions Inside Transformercited by 125
- 2019Sanity Checks for Saliency Metricscited by 119
- 2019On Identifiability in Transformerscited by 116
- 2022A Consistent and Efficient Evaluation Strategy for Attribution Methodscited by 102
- 2022ChatGPT Makes Medicine Easy to Swallow: An Exploratory Case Study on Simplified Radiology Reportscited by 101
- 2021What I Cannot Predict, I Do Not Understand: A Human-Centered Evaluation Framework for Explainability Methodscited by 98
- 2020Explaining the Explainer: A First Theoretical Analysis of LIMEcited by 89
- 2022Towards Human-centered Explainable AI: A Survey of User Studies for Model Explanationscited by 85
- 2016Yelp Dataset Challenge: Review Rating Predictioncited by 84
- 2022Which Explanation Should I Choose? A Function Approximation Perspective to Characterizing Post Hoc Explanationscited by 77
- 2020Attribution in Scale and Spacecited by 61
- 2022From Shapley Values to Generalized Additive Models and backcited by 60
- 2013Bounding the Estimation Error of Sampling-based Shapley Value Approximationcited by 58
- 2020Generating Hierarchical Explanations on Text Classification via Feature Interaction Detectioncited by 57
- 2021Towards the Unification and Robustness of Perturbation and Gradient Based Explanationscited by 47
- 2022GlobEnc: Quantifying Global Token Attribution by Incorporating the Whole Encoder Layer in Transformerscited by 44
- 2023DecompX: Explaining Transformers Decisions by Propagating Token Decompositioncited by 31
- 2021Attention Weights in Transformer NMT Fail Aligning Words Between Sequences but Largely Explain Model Predictionscited by 11
Built on by
Citing papers per year: 2024: 1; 2025: 6; 2026: 1.
8 papers.
- 2025Revisiting LRP: Positional Attribution as the Missing Ingredient for Transformer Explainabilitycited by 6
- 2025Gender Bias in Explainability: Investigating Performance Disparity in Post-hoc Methodscited by 3
- 2024The Language of Trauma: Modeling Traumatic Event Descriptions Across Domains with Explainable AIcited by 2
- 2025EvalxNLP: A Framework for Benchmarking Post-Hoc Explainability Methods on NLP Modelscited by 2
- 2025Large Language Models as Attribution Regularizers for Efficient Model Trainingcited by 1
- 2025Learning to Adapt to Position Bias in Vision Transformer Classifierscited by 0
- 2025Adoption of Explainable Natural Language Processing: Perspectives from Industry and Academia on Practices and Challengescited by 0
- 2026Memory Retrieval in Transformers: Insights from The Encoding Specificity Principlecited by 0
- 2026Memory Retrieval in Transformers: Insights from The Encoding Specificity Principle28 Jan 2026
- 2025Adoption of Explainable Natural Language Processing: Perspectives from Industry and Academia on Practices and Challenges13 Aug 2025
- 2025Revisiting LRP: Positional Attribution as the Missing Ingredient for Transformer Explainability2 Jun 2025
- 2025Learning to Adapt to Position Bias in Vision Transformer Classifiers19 May 2025
- 2025EvalxNLP: A Framework for Benchmarking Post-Hoc Explainability Methods on NLP Models2 May 2025
- 2025Gender Bias in Explainability: Investigating Performance Disparity in Post-hoc Methods2 May 2025
- 2025Large Language Models as Attribution Regularizers for Efficient Model Training27 Feb 2025
- 2024The Language of Trauma: Modeling Traumatic Event Descriptions Across Domains with Explainable AI12 Aug 2024