Exact theory of next-token prediction
Abstract
The next-token prediction ability of self-attention-based transformer is studied by using statistical mechanics and random matrix theory. Our study constructs an exact theory of free energy, state equation, and test-error scaling behavior in both finite and infinite context-length settings. In particular, a double descent phenomenon is revealed for zero-temperature learning, suggesting that the data load and the context length are coupled. In the presence of infinite context length, the errors are exactly those of deterministic ridge shrinkage. Theory predicts all single-instance learning of finite but large token dimension.
Create a lesson
Metadata
- Categories
- stat.ML, cond-mat.dis-nn, cs.AI, cs.LG
- Comments
- 6 pages, 4 figures, SM is provided upon request at this stage
Related papers
Attention to Quantiles: Statistical Theory for Regularized SGD
Shared title terminologystat.MLJunyu Chen, Weining Wang, Ziyang Wei et al.
Exact Evaluation and Optimization of the G-Criterion for Categorical Experimental Design: An Integer Programming Approach
Shared title terminologystat.MLPouya Ahadi, Kamran Paynabar
Beware of Sharp Minima: Loss Landscape Geometry Predicts the Generalizability of Hydrological Models
Shared title terminologystat.MLMax Nghiem Lee, Joseph Janssen, Ching-Yao Lai
A Theory of Adversary-Directed Online Learning
Shared title terminologystat.MLSteve Hanneke, Amirreza Shaeiri
A Theoretical Perspective on DDPM: The Denoising Process as an Exact Reverse-Time Diffusion
Shared title terminologystat.MLYuanqiu Mo, Wangzhi Zhou, Soura Dasgupta
Online Conformal Prediction Methods for Sequential Loss Minimization
Shared title terminologystat.MLTao Wang, Tony Zhou, Edgar Dobriban