Token-wise Decomposition of Autoregressive Language Model Hidden States for Analyzing Model Predictions
Not on the map. Why?
Abstract (arXiv)
While there is much recent interest in studying why Transformer-based large language models make predictions the way they do, the complex computations performed within each layer have made their behavior somewhat opaque. To mitigate this opacity, this work presents a linear decomposition of final hidden states from autoregressive language models based on each initial input token, which is exact for virtually all contemporary Transformer architectures. This decomposition allows the definition of probability distributions that ablate the contribution of specific input tokens, which can be used to analyze their influence on model probabilities over a sequence of upcoming words with only one forward pass from the model. Using the change in next-word probability as a measure of importance, this work first examines which context words make the biggest contribution to language model predictions. Regression experiments suggest that Transformer-based language models rely primarily on collocational associations, followed by linguistic factors such as syntactic dependencies and coreference relationships in making next-word predictions. Additionally, analyses using these measures to predict syntactic dependencies and coreferent mention spans show that collocational association and repetitions of the same token largely explain the language models' predictions on these tasks.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 19 of its 35 references that are in the map. First posted on arXiv 17 May 2023.
Builds on
19 of 35 references.
References · 19
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2016Layer Normalizationcited by 5,669
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2016Gaussian Error Linear Units (GELUs)cited by 3,502
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
- 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,371
- 2017Learning Important Features Through Propagating Activation Differencescited by 1,458
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
- 2022In-context Learning and Induction Headscited by 964
- 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 876
- 2020A Primer in BERTology: What we know about how BERT workscited by 815
7 more
- 2022Quantifying Memorization Across Neural Language Modelscited by 763
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 532
- 2021Do Long-Range Language Models Actually Use Long-Range Context?cited by 92
- 2021Incorporating Residual and Normalization Layers into Analysis of Masked Language Modelscited by 51
- 2021Discretized Integrated Gradients for Explaining Language Modelscited by 46
- 2022How to Dissect a Muppet: The Structure of Transformer Embedding Spacescited by 20
- 2022A Multilingual Perspective Towards the Evaluation of Attribution Methods in Natural Language Inferencecited by 5
Built on by
Citing papers per year: 2023: 1; 2024: 1; 2025: 3; 2026: 1.
6 papers.
- 2024Isotropy, Clusters, and Classifierscited by 4
- 2025Fine-grained Analysis of Brain-LLM Alignment through Input Attributioncited by 3
- 2023Why bother with geometry? On the relevance of linear decompositions of Transformer embeddingscited by 2
- 2025Cross-Attention is Half Explanation in Speech-to-Text Modelscited by 1
- 2025DePass: Unified Feature Attributing by Simple Decomposed Forward Passcited by 1
- 2026Attending to Multimodal Generation One Token at a Timecited by 0
- 2026Attending to Multimodal Generation One Token at a Time4 Jul 2026
- 2025DePass: Unified Feature Attributing by Simple Decomposed Forward Pass21 Oct 2025
- 2025Fine-grained Analysis of Brain-LLM Alignment through Input Attribution14 Oct 2025
- 2025Cross-Attention is Half Explanation in Speech-to-Text Models22 Sep 2025
- 2024Isotropy, Clusters, and Classifiers5 Feb 2024
- 2023Why bother with geometry? On the relevance of linear decompositions of Transformer embeddings10 Oct 2023