Implicit Geometry of Next-token Prediction: From Language Sparsity Patterns to Model Representations
Yize Zhao, Tina Behnia, Vala Vakilian, Christos Thrampoulidis
TL;DR
The paper investigates how next-token prediction (NTP) training shapes the geometry of context and word representations. It introduces a sparse soft-label classification view (NTP-UFM) with unconstrained embeddings and analyzes the logit space via a regularization-path approach, revealing a sparse plus low-rank decomposition of the logit matrix L = WH near the entropy lower-bound. The authors prove that, as ridge regularization vanishes, Lλ decomposes into a sparse in-support component Lin and a dominant low-rank component Lmm whose structure is determined solely by the support pattern of next-token distributions, predicting subspace-collapse of contexts sharing the same next-token sets. They further connect this theory to neural-collapse-like geometry, provide practical proxies (centered centered-support tilde S) to approximate Lmm, and validate the framework with synthetic data and TinyStories experiments, showing that embeddings converge directionally to the predicted manifolds and align with the proposed proxies. This work offers a principled, data-driven lens to relate linguistic statistics to model representations under NTP, with implications for interpretability, bias analysis, and training dynamics.
Abstract
Next-token prediction (NTP) over large text corpora has become the go-to paradigm to train large language models. Yet, it remains unclear how NTP influences the mapping of linguistic patterns to geometric properties of the resulting model representations. We frame training of large language models as soft-label classification over sparse probabilistic label vectors, coupled with an analytical approximation that allows unrestricted generation of context embeddings. This approach links NTP training to rank-constrained, nuclear-norm regularized optimization in the logit domain, offering a framework for analyzing the geometry of word and context embeddings. In large embedding spaces, we find that NTP implicitly favors learning logits with a sparse plus low-rank structure. While the sparse component captures the co-occurrence frequency of context-word pairs, the orthogonal low-rank component, which becomes dominant as training progresses, depends solely on the sparsity pattern of the co-occurrence matrix. Consequently, when projected onto an appropriate subspace, representations of contexts that are followed by the same set of next-tokens collapse, a phenomenon we term subspace-collapse. We validate our findings on synthetic and small-scale real language datasets. Finally, we outline potential research directions aimed at deepening the understanding of NTP's influence on the learning of linguistic patterns and regularities.
