English

Provable Long-Range Benefits of Next-Token Prediction

Machine Learning 2025-12-09 v1 Artificial Intelligence Machine Learning

Abstract

Why do modern language models, trained to do well on next-word prediction, appear to generate coherent documents and capture long-range structure? Here we show that next-token prediction is provably powerful for learning longer-range structure, even with common neural network architectures. Specifically, we prove that optimizing next-token prediction over a Recurrent Neural Network (RNN) yields a model that closely approximates the training distribution: for held-out documents sampled from the training distribution, no algorithm of bounded description length limited to examining the next kk tokens, for any kk, can distinguish between kk consecutive tokens of such documents and kk tokens generated by the learned language model following the same prefix. We provide polynomial bounds (in kk, independent of the document length) on the model size needed to achieve such kk-token indistinguishability, offering a complexity-theoretic explanation for the long-range coherence observed in practice.

Keywords

Cite

@article{arxiv.2512.07818,
  title  = {Provable Long-Range Benefits of Next-Token Prediction},
  author = {Xinyuan Cao and Santosh S. Vempala},
  journal= {arXiv preprint arXiv:2512.07818},
  year   = {2025}
}

Comments

66 pages, 5 figures