mlsanityData to 14 Oct 2026

Towards Auto-Regressive Next-Token Prediction: In-Context Learning Emerges from Generalization

arXiv 2502.17024 ↗First posted 24 Feb 2025cs.CL cs.LG stat.MLcited by 3

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2023GPT-4 Technical Reportcited by 18,396
  3. 2020Scaling Laws for Neural Language Modelscited by 6,586
  4. 2022Emergent Abilities of Large Language Modelscited by 2,512
  5. 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,218
  6. 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,202
  7. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
  8. 2022Transformers learn in-context by gradient descentcited by 732
  9. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
  10. 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 713
  11. 2017Spectrally-normalized margin bounds for neural networkscited by 686
  12. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
32 more
  1. 2018MINE: Mutual Information Neural Estimationcited by 683
  2. 2015Train faster, generalize better: Stability of stochastic gradient descentcited by 552
  3. 2017Computing Nonvacuous Generalization Bounds for Deep (Stochastic) Neural Networks with Many More Parameters than Training Datacited by 533
  4. 2021MetaICL: Learning to Learn In Contextcited by 454
  5. 2023Trained Transformers Learn Linear Models In-Contextcited by 337
  6. 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 309
  7. 2017Information-theoretic analysis of generalization capability of learning algorithmscited by 303
  8. 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 298
  9. 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 279
  10. 2020FLAMBE: Structural Complexity and Representation Learning of Low Rank MDPscited by 233
  11. 2023Language Modeling Is Compressioncited by 225
  12. 2019Uniform convergence may be unable to explain generalization in deep learningcited by 224
  13. 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 222
  14. 2022Why Can GPT Learn In-Context? Language Models Implicitly Perform Gradient Descent as Meta-Optimizerscited by 204
  15. 2020On the Theory of Transfer Learning: The Importance of Task Diversitycited by 186
  16. 2023The Learnability of In-Context Learningcited by 127
  17. 2020Fine-Grained Analysis of Stability and Generalization for Stochastic Gradient Descentcited by 119
  18. 2023What and How does In-Context Learning Learn? Bayesian Model Averaging, Parameterization, and Generalizationcited by 118
  19. 2024How Transformers Learn Causal Structure with Gradient Descentcited by 118
  20. 2023In-Context Convergence of Transformerscited by 115
  21. 2023How Many Pretraining Tasks Are Needed for In-Context Learning of Linear Regression?cited by 96
  22. 2015How much does your data exploration overfit? Controlling bias via information usagecited by 95
  23. 2017Generalization Bounds of SGLD for Non-convex Learning: Two Theoretical Viewpointscited by 82
  24. 2020Convergence of Meta-Learning with Task-Specific Adaptation over Partial Parameterscited by 65
  25. 2019On Generalization Error Bounds of Noisy Gradient Methods for Non-Convex Learningcited by 57
  26. 2018Generalization Bounds for Uniformly Stable Algorithmscited by 56
  27. 2023A Latent Space Theory for Emergent Abilities in Large Language Modelscited by 43
  28. 2021How Fine-Tuning Allows for Effective Meta-Learningcited by 41
  29. 2021Stability of SGD: Tightness Analysis and Improved Boundscited by 33
  30. 2018Incremental Learning-to-Learn with Statistical Guaranteescited by 16
  31. 2022Two Facets of SDE Under an Information-Theoretic Lens: Generalization of SGD via Training Trajectories and via Terminal Statescited by 11
  32. 2022Generalization Bounds for Gradient Methods via Discrete and Continuous Priorcited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 2.

3 papers.