The structure of the token space for large language models
Not on the map. Why?
Abstract (arXiv)
Large language models encode the correlational structure present in natural language by fitting segments of utterances (tokens) into a high dimensional ambient latent space upon which the models then operate. We assert that in order to develop a foundational, first-principles understanding of the behavior and limitations of large language models, it is crucial to understand the topological and geometric structure of this token subspace. In this article, we present estimators for the dimension and Ricci scalar curvature of the token subspace, and apply it to three open source large language models of moderate size: GPT2, LLEMMA7B, and MISTRAL7B. In all three models, using these measurements, we find that the token subspace is not a manifold, but is instead a stratified manifold, where on each of the individual strata, the Ricci curvature is significantly negative. We additionally find that the dimension and curvature correlate with generative fluency of the models, which suggest that these findings have implications for model behavior.
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Builds on 8 of its 25 references that are in the map. First posted on arXiv 11 Oct 2024.
Builds on
8 of 25 references.
References · 8
- 2023Mistral 7Bcited by 3,065
- 2023Llemma: An Open Language Model For Mathematicscited by 385
- 2023Intrinsic Dimension Estimation for Robust Detection of AI-Generated Textscited by 111
- 2020Topology of Word Embeddings: Singularities Reflect Polysemycited by 15
- 2022Topological Singularity Detection at Multiple Scalescited by 11
- 2023Any Deep ReLU Network is Shallowcited by 6
- 2023A Language and Its Dimensions: Intrinsic Dimensions of Language Fractal Structurescited by 4
- 2023Probabilistic and Semantic Descriptions of Image Manifolds and Their Applicationscited by 3
Built on by
Citing papers per year: 2025: 7; 2026: 3.
10 papers.
- 2025HELM: Hyperbolic Large Language Models via Mixture-of-Curvature Expertscited by 22
- 2025Token embeddings violate the manifold hypothesiscited by 14
- 2025Position: Foundation Models Need Digital Twin Representationscited by 10
- 2026The Information Geometry of Softmax: Probing and Steeringcited by 9
- 2025Unraveling the Localized Latents: Learning Stratified Manifold Structures in LLM Embedding Space with Sparse Mixture-of-Expertscited by 7
- 2025Probing the topology of the space of tokens with structured promptscited by 3
- 2025Exploring the Stratified Space Structure of an RL Game with the Volume Growth Transformcited by 1
- 2025SALMAN: Stability Analysis of Language Models Through the Maps Between Graph-based Manifoldscited by 1
- 2026Decoding in Geometry: Alleviating Embedding-Space Crowding for Complex Reasoningcited by 1
- 2026HypRAG: Hyperbolic Dense Retrieval for Retrieval Augmented Generationcited by 1
- 2026The Information Geometry of Softmax: Probing and Steering17 Feb 2026
- 2026HypRAG: Hyperbolic Dense Retrieval for Retrieval Augmented Generation8 Feb 2026
- 2026Decoding in Geometry: Alleviating Embedding-Space Crowding for Complex Reasoning30 Jan 2026
- 2025SALMAN: Stability Analysis of Language Models Through the Maps Between Graph-based Manifolds23 Aug 2025
- 2025Exploring the Stratified Space Structure of an RL Game with the Volume Growth Transform29 Jul 2025
- 2025HELM: Hyperbolic Large Language Models via Mixture-of-Curvature Experts30 May 2025
- 2025Position: Foundation Models Need Digital Twin Representations1 May 2025
- 2025Token embeddings violate the manifold hypothesis1 Apr 2025
- 2025Probing the topology of the space of tokens with structured prompts19 Mar 2025
- 2025Unraveling the Localized Latents: Learning Stratified Manifold Structures in LLM Embedding Space with Sparse Mixture-of-Experts19 Feb 2025