mlsanityData to 14 Oct 2026

The Geometry of Inference in Transformer Residual Streams

arXiv 2609.37824 ↗First posted 29 Sep 2026cs.CL cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Transformer language models build predictions through successive residual updates, but how their representations become specific to an eventual outcome remains unclear. We study this process by comparing intermediate residual states with their own final states and an empirical bank of final states from other contexts. Across six pretrained language models, the own endpoint becomes preferable to the average alternative early, while many individual endpoints remain closer. These competing sets generally shrink with depth, but their membership changes and their surviving endpoints need not become more similar to one another. Directional alignment and endpoint rank can therefore improve while Euclidean distance to the final state changes little. We develop a simple high-dimensional model that separates the roles of norm, alignment, and endpoint geometry, showing how gradual directional changes can produce sharp reductions in competition. We also prove that a straight path toward the own endpoint cannot introduce new competitors under either Euclidean or cosine distance; observed entries thus establish departures from straight-line convergence. Finally, endpoints associated with lower-ranked output tokens tend to lie farther away in cosine distance across all studied models, connecting residual geometry to output organization. Together, these findings characterize increasing geometric specificity during transformer inference and explain why distance, competitor count, and concentration of the surviving endpoints provide distinct views of that process.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 15 of its 23 references that are in the map. First posted on arXiv 29 Sep 2026.

Builds on

15 of 23 references.

References · 15

  1. 2024Qwen2.5 Technical Reportcited by 4,942
  2. 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,160
  3. 2019How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddingscited by 784
  4. 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 623
  5. 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 532
  6. 2024The Geometry of Categorical and Hierarchical Concepts in Large Language Modelscited by 159
  7. 2023The geometry of hidden representations of large transformer modelscited by 112
  8. 2024Transformers represent belief state geometry in their residual streamcited by 77
  9. 2024Linguistic Collapse: Neural Collapse in (Large) Language Modelscited by 38
  10. 2025Entropy-Lens: Uncovering Decision Strategies in LLMscited by 6
  11. 2026A Geometric Perspective on Next-Token Prediction in Large Language Models: Three Emerging Phasescited by 3
  12. 2026Scale Determines Whether Language Models Organize Representation Geometry for Predictioncited by 2
3 more
  1. 2026SemRF: A Semantic Reference Frame for Residual-Stream Dynamics in Language Modelscited by 2
  2. 2026Layer-wise Representation Dynamics: An Empirical Investigation Across Embedders and Base LLMscited by 1
  3. 2026Geometric and Behavioral Stratification in Transformer Residual Streamscited by 1

Built on by

Not cited yet.