Information-Theoretic Analysis of Next-Token Prediction under Markovian Data
Not on the map. Why?
Abstract (arXiv)
We develop an information-theoretic framework for generalization in next-token prediction under temporally dependent data. We consider independent trajectories generated by finite-memory Markov processes and distinguish algorithmic dependence, quantified by mutual information, from temporal dependence, characterized by mixing. For cross-entropy loss, we derive an expected generalization bound using the Donsker--Varadhan variational representation and a McDiarmid-type concentration inequality for Markov chains. A refinement captures the joint effect of context length and temporal mixing through the mixing properties of the history-state process. We then extend the bound through a rate--distortion formulation, replacing mutual information with the minimum information rate required to represent the learned model within a prescribed distortion in the generalization gap, yielding informative guarantees for deterministic algorithms over continuous hypothesis spaces. For margin-based prediction, we derive explicit bounds for linear and self-attention next-token predictors via noisy low-dimensional compression, revealing the roles of context length, model complexity, sample size, margin, and temporal mixing. Experiments on TinyStories and ETTh2 show that longer contexts can reduce both training and test losses, but typically reduce training loss more, enlarging the generalization gap. A complementary ETTh2 analysis identifies an effective predictive-memory scale near 24 hours, with no statistically supported improvement beyond this scale, offering a plausible explanation for test-performance saturation at larger contexts.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 34 of its 56 references that are in the map. First posted on arXiv 28 Sep 2026.
Builds on
34 of 56 references.
References · 34
- 2017Attention Is All You Needcited by 59,932
- 2020Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecastingcited by 2,141
- 2022A Time Series is Worth 64 Words: Long-term Forecasting with Transformerscited by 1,981
- 2021Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecastingcited by 1,654
- 2022FEDformer: Frequency Enhanced Decomposed Transformer for Long-term Series Forecastingcited by 1,200
- 2022TimesNet: Temporal 2D-Variation Modeling for General Time Series Analysiscited by 1,030
- 2023iTransformer: Inverted Transformers Are Effective for Time Series Forecastingcited by 906
- 2017Spectrally-normalized margin bounds for neural networkscited by 681
- 2023TinyStories: How Small Can Language Models Be and Still Speak Coherent English?cited by 425
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
- 2018Stronger generalization bounds for deep nets via a compression approachcited by 306
- 2017Information-theoretic analysis of generalization capability of learning algorithmscited by 299
22 more
- 2024The pitfalls of next-token predictioncited by 156
- 2020Reasoning About Generalization via Conditional Mutual Informationcited by 145
- 2021Inductive Biases and Variable Creation in Self-Attention Mechanismscited by 144
- 2019Information-Theoretic Generalization Bounds for SGLD via Data-Dependent Estimatescited by 118
- 2019Tightening Mutual Information Based Bounds on Generalization Errorcited by 117
- 2023Auto-Regressive Next-Token Predictors are Universal Learnerscited by 65
- 2021Information-theoretic generalization bounds for black-box learning algorithmscited by 49
- 2021On the Expressive Power of Self-Attention Matricescited by 44
- 2021Heavy Tails in SGD and Compressibility of Overparametrized Neural Networkscited by 44
- 2020Generalization Bounds via Information Density and Conditional Information Densitycited by 43
- 2024Mechanics of Next Token Prediction with Self-Attentioncited by 34
- 2024Unlocking Tokens as Data Points for Generalization Bounds on Larger Language Modelscited by 25
- 2022Rate-Distortion Theoretic Generalization Bounds for Stochastic Learning Algorithmscited by 22
- 2020Near-Tight Margin-Based Generalization Bounds for Support Vector Machinescited by 19
- 2022Rate-Distortion Theoretic Bounds on Generalization Error for Distributed Learningcited by 14
- 2018On Learning Markov Chainscited by 13
- 2024Minimum Description Length and Generalization Guarantees for Representation Learningcited by 11
- 2024Next-token prediction capacity: general upper bounds and a lower bound for transformerscited by 11
- 2018Statistical Estimation of Ergodic Markov Chain Kernel over Discrete State Spacecited by 10
- 2023Data-dependent Generalization Bounds via Variable-Size Compressibilitycited by 9
- 2024Towards Understanding the Universality of Transformers for Next-Token Predictioncited by 9
- 2023Lessons from Generalization Error Analysis of Federated Learning: You May Communicate Less Often!cited by 8
Built on by
Not cited yet.