Towards Auto-Regressive Next-Token Prediction: In-Context Learning Emerges from Generalization
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) have demonstrated remarkable in-context learning (ICL) abilities. However, existing theoretical analysis of ICL primarily exhibits two limitations: (a) Limited i.i.d. Setting. Most studies focus on supervised function learning tasks where prompts are constructed with i.i.d. input-label pairs. This i.i.d. assumption diverges significantly from real language learning scenarios where prompt tokens are interdependent. (b) Lack of Emergence Explanation. Most literature answers what ICL does from an implicit optimization perspective but falls short in elucidating how ICL emerges and the impact of pre-training phase on ICL. In our paper, to extend (a), we adopt a more practical paradigm, auto-regressive next-token prediction (AR-NTP), which closely aligns with the actual training of language models. Specifically, within AR-NTP, we emphasize prompt token-dependency, which involves predicting each subsequent token based on the preceding sequence. To address (b), we formalize a systematic pre-training and ICL framework, highlighting the layer-wise structure of sequences and topics, alongside a two-level expectation. In conclusion, we present data-dependent, topic-dependent and optimization-dependent PAC-Bayesian generalization bounds for pre-trained LLMs, investigating that ICL emerges from the generalization of sequences and topics. Our theory is supported by experiments on numerical linear dynamic systems, synthetic GINC and real-world language datasets.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 44 of its 61 references that are in the map. First posted on arXiv 24 Feb 2025.
Builds on
44 of 61 references.
References · 44
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2022Emergent Abilities of Large Language Modelscited by 2,512
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,218
- 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,202
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
- 2022Transformers learn in-context by gradient descentcited by 732
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 713
- 2017Spectrally-normalized margin bounds for neural networkscited by 686
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
32 more
- 2018MINE: Mutual Information Neural Estimationcited by 683
- 2015Train faster, generalize better: Stability of stochastic gradient descentcited by 552
- 2017Computing Nonvacuous Generalization Bounds for Deep (Stochastic) Neural Networks with Many More Parameters than Training Datacited by 533
- 2021MetaICL: Learning to Learn In Contextcited by 454
- 2023Trained Transformers Learn Linear Models In-Contextcited by 337
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 309
- 2017Information-theoretic analysis of generalization capability of learning algorithmscited by 303
- 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 298
- 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 279
- 2020FLAMBE: Structural Complexity and Representation Learning of Low Rank MDPscited by 233
- 2023Language Modeling Is Compressioncited by 225
- 2019Uniform convergence may be unable to explain generalization in deep learningcited by 224
- 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 222
- 2022Why Can GPT Learn In-Context? Language Models Implicitly Perform Gradient Descent as Meta-Optimizerscited by 204
- 2020On the Theory of Transfer Learning: The Importance of Task Diversitycited by 186
- 2023The Learnability of In-Context Learningcited by 127
- 2020Fine-Grained Analysis of Stability and Generalization for Stochastic Gradient Descentcited by 119
- 2023What and How does In-Context Learning Learn? Bayesian Model Averaging, Parameterization, and Generalizationcited by 118
- 2024How Transformers Learn Causal Structure with Gradient Descentcited by 118
- 2023In-Context Convergence of Transformerscited by 115
- 2023How Many Pretraining Tasks Are Needed for In-Context Learning of Linear Regression?cited by 96
- 2015How much does your data exploration overfit? Controlling bias via information usagecited by 95
- 2017Generalization Bounds of SGLD for Non-convex Learning: Two Theoretical Viewpointscited by 82
- 2020Convergence of Meta-Learning with Task-Specific Adaptation over Partial Parameterscited by 65
- 2019On Generalization Error Bounds of Noisy Gradient Methods for Non-Convex Learningcited by 57
- 2018Generalization Bounds for Uniformly Stable Algorithmscited by 56
- 2023A Latent Space Theory for Emergent Abilities in Large Language Modelscited by 43
- 2021How Fine-Tuning Allows for Effective Meta-Learningcited by 41
- 2021Stability of SGD: Tightness Analysis and Improved Boundscited by 33
- 2018Incremental Learning-to-Learn with Statistical Guaranteescited by 16
- 2022Two Facets of SDE Under an Information-Theoretic Lens: Generalization of SGD via Training Trajectories and via Terminal Statescited by 11
- 2022Generalization Bounds for Gradient Methods via Discrete and Continuous Priorcited by 5
Built on by
Citing papers per year: 2025: 1; 2026: 2.
3 papers.