mlsanityData to 7 Oct 2026

The structure of the token space for large language models

arXiv 2410.08993 ↗First posted 11 Oct 2024math.DG cs.AIcited by 10

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

  1. 2023Mistral 7Bcited by 3,065
  2. 2023Llemma: An Open Language Model For Mathematicscited by 385
  3. 2023Intrinsic Dimension Estimation for Robust Detection of AI-Generated Textscited by 111
  4. 2020Topology of Word Embeddings: Singularities Reflect Polysemycited by 15
  5. 2022Topological Singularity Detection at Multiple Scalescited by 11
  6. 2023Any Deep ReLU Network is Shallowcited by 6
  7. 2023A Language and Its Dimensions: Intrinsic Dimensions of Language Fractal Structurescited by 4
  8. 2023Probabilistic and Semantic Descriptions of Image Manifolds and Their Applicationscited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 7; 2026: 3.

10 papers.