mlsanityData to 14 Oct 2026

Next-token pretraining implies in-context learning

arXiv 2505.18373 ↗First posted 23 May 2025cs.LG cs.AIcited by 5

Not on the map. Why?

Abstract (arXiv)

We argue that in-context learning (ICL) predictably arises from standard self-supervised next-token pretraining, rather than being an exotic emergent property. This work establishes the foundational principles of this emergence by focusing on in-distribution ICL, demonstrating how models necessarily adapt to context when trained on token sequences, especially from non-ergodic sources. Our information-theoretic framework precisely predicts these in-distribution ICL dynamics (i.e., context-dependent loss reduction). We verify this with experiments using synthetic datasets of differing types of correlational structure, reproducing characteristic phenomena like phase transitions in training loss for induction head formation and power-law scaling of in-context loss. We further show that a model's in-context performance on any task is mathematically coupled to the ensemble of tasks seen in pretraining, offering a fundamental explanation, grounded in architecture- and modality-independent principles, for such inference-time learning.

Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 17 of its 30 references that are in the map. First posted on arXiv 23 May 2025.

Builds on

17 of 30 references.

References · 17

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2020Scaling Laws for Neural Language Modelscited by 6,586
  4. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
  5. 2022In-context Learning and Induction Headscited by 964
  6. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
  7. 2022Transformers learn in-context by gradient descentcited by 732
  8. 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 309
  9. 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 279
  10. 2024Transformers represent belief state geometry in their residual streamcited by 77
  11. 2019Meta-learning of Sequential Strategiescited by 70
  12. 2016Criticality in Formal Languages and Statistical Physicscited by 35
5 more
  1. 2024The broader spectrum of in-context learningcited by 35
  2. 2024Bayesian scaling laws for in-context learningcited by 19
  3. 2025Constrained belief updates explain geometric structures in transformer representationscited by 15
  4. 2020Shannon Entropy Rate of Hidden Markov Processescited by 8
  5. 2015Signatures of Infinity: Nonergodicity and Resource Scaling in Prediction, Complexity, and Learningcited by 3

Built on by

Cited by year (2026 to 14 Oct)

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

5 papers.