mlsanityData to 14 Oct 2026

Attention Mechanisms Don't Learn Additive Models: Rethinking Feature Importance for Transformers

arXiv 2405.13536 ↗First posted 22 May 2024cs.LG cs.AI cs.CLcited by 8

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  4. 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
  5. 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,070
  6. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
  7. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
  8. 2017Axiomatic Attribution for Deep Networkscited by 3,384
  9. 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,371
  10. 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,984
  11. 2017Learning Important Features Through Propagating Activation Differencescited by 1,458
  12. 2022Are Transformers Effective for Time Series Forecasting?cited by 1,424
28 more
  1. 2017SmoothGrad: removing noise by adding noisecited by 1,109
  2. 2019Attention is not Explanationcited by 929
  3. 2020Quantifying Attention Flow in Transformerscited by 775
  4. 2019Attention is not not Explanationcited by 636
  5. 2019ERASER: A Benchmark to Evaluate Rationalized NLP Modelscited by 530
  6. 2018Explaining Explanations: An Overview of Interpretability of Machine Learningcited by 508
  7. 2019Is Attention Interpretable?cited by 389
  8. 2020A Survey on the Explainability of Supervised Machine Learningcited by 227
  9. 2020Explaining by Removing: A Unified Framework for Model Explanationcited by 218
  10. 2019Neural Legal Judgment Prediction in Englishcited by 209
  11. 2020Self-Attention Attribution: Interpreting Information Interactions Inside Transformercited by 125
  12. 2019Sanity Checks for Saliency Metricscited by 119
  13. 2019On Identifiability in Transformerscited by 116
  14. 2022A Consistent and Efficient Evaluation Strategy for Attribution Methodscited by 102
  15. 2022ChatGPT Makes Medicine Easy to Swallow: An Exploratory Case Study on Simplified Radiology Reportscited by 101
  16. 2021What I Cannot Predict, I Do Not Understand: A Human-Centered Evaluation Framework for Explainability Methodscited by 98
  17. 2020Explaining the Explainer: A First Theoretical Analysis of LIMEcited by 89
  18. 2022Towards Human-centered Explainable AI: A Survey of User Studies for Model Explanationscited by 85
  19. 2016Yelp Dataset Challenge: Review Rating Predictioncited by 84
  20. 2022Which Explanation Should I Choose? A Function Approximation Perspective to Characterizing Post Hoc Explanationscited by 77
  21. 2020Attribution in Scale and Spacecited by 61
  22. 2022From Shapley Values to Generalized Additive Models and backcited by 60
  23. 2013Bounding the Estimation Error of Sampling-based Shapley Value Approximationcited by 58
  24. 2020Generating Hierarchical Explanations on Text Classification via Feature Interaction Detectioncited by 57
  25. 2021Towards the Unification and Robustness of Perturbation and Gradient Based Explanationscited by 47
  26. 2022GlobEnc: Quantifying Global Token Attribution by Incorporating the Whole Encoder Layer in Transformerscited by 44
  27. 2023DecompX: Explaining Transformers Decisions by Propagating Token Decompositioncited by 31
  28. 2021Attention Weights in Transformer NMT Fail Aligning Words Between Sequences but Largely Explain Model Predictionscited by 11

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 1; 2025: 6; 2026: 1.

8 papers.