Reproduce “The structure of the token space for large language models” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Michael Robinson, Sourya Dey, Shauna Sweet
This research investigates the geometric and topological properties of token embeddings in Large Language Models, demonstrating that these embeddings form complex stratified manifolds rather than simple uniform ones. The study reveals that token subspaces exhibit varying local dimensions, often much lower than the ambient dimension, and pervasive negative Ricci scalar curvature across models like GPT2, LLEMMA7B, and MISTRAL7B.
Key insights
- LLM token embeddings do not form a simple, uniform manifold but instead constitute a stratified manifold with varying local dimensions.
- The token subspaces across different LLMs consistently exhibit pervasive negative Ricci scalar curvature.
- The specific geometric properties of token spaces, such as local dimension distribution, correlate with observed model capabilities like mathematical reasoning and generative fluency.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.