mlsanityData to 14 Oct 2026

Token-wise Decomposition of Autoregressive Language Model Hidden States for Analyzing Model Predictions

arXiv 2305.10614 ↗First posted 17 May 2023cs.CL cs.AIcited by 6

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2016Layer Normalizationcited by 5,669
  4. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
  5. 2016Gaussian Error Linear Units (GELUs)cited by 3,502
  6. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
  7. 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,371
  8. 2017Learning Important Features Through Propagating Activation Differencescited by 1,458
  9. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
  10. 2022In-context Learning and Induction Headscited by 964
  11. 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 876
  12. 2020A Primer in BERTology: What we know about how BERT workscited by 815
7 more
  1. 2022Quantifying Memorization Across Neural Language Modelscited by 763
  2. 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 532
  3. 2021Do Long-Range Language Models Actually Use Long-Range Context?cited by 92
  4. 2021Incorporating Residual and Normalization Layers into Analysis of Masked Language Modelscited by 51
  5. 2021Discretized Integrated Gradients for Explaining Language Modelscited by 46
  6. 2022How to Dissect a Muppet: The Structure of Transformer Embedding Spacescited by 20
  7. 2022A Multilingual Perspective Towards the Evaluation of Attribution Methods in Natural Language Inferencecited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 1; 2024: 1; 2025: 3; 2026: 1.

6 papers.