mlsanityData to 14 Oct 2026

Differential learning kinetics govern the transition from memorization to generalization during in-context learning

arXiv 2412.00104 ↗First posted 27 Nov 2024cs.LG cond-mat.dis-nn cs.AIcited by 21

Not on the map. Why?

Abstract (arXiv)

Transformers exhibit in-context learning (ICL): the ability to use novel information presented in the context without additional weight updates. Recent work shows that ICL emerges when models are trained on a sufficiently diverse set of tasks and the transition from memorization to generalization is sharp with increasing task diversity. One interpretation is that a network's limited capacity to memorize favors generalization. Here, we examine the mechanistic underpinnings of this transition using a small transformer applied to a synthetic ICL task. Using theory and experiment, we show that the sub-circuits that memorize and generalize can be viewed as largely independent. The relative rates at which these sub-circuits learn explains the transition from memorization to generalization, rather than capacity constraints. We uncover a memorization scaling law, which determines the task diversity threshold at which the network generalizes. The theory quantitatively explains a variety of other ICL-related phenomena, including the long-tailed distribution of when ICL is acquired, the bimodal behavior of solutions close to the task diversity threshold, the influence of contextual and data distributional statistics on ICL, and the transient nature of ICL.

Key facts. Cited by 21 papers in the map (data through 14 Oct 2026). Builds on 18 of its 21 references that are in the map. First posted on arXiv 27 Nov 2024.

Builds on

18 of 21 references.

References · 18

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
  3. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
  4. 2022Transformers learn in-context by gradient descentcited by 732
  5. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
  6. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
  7. 2023Larger language models do in-context learning differentlycited by 394
  8. 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 309
  9. 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 298
  10. 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 279
  11. 2023Birth of a Transformer: A Memory Viewpointcited by 161
  12. 2023What In-Context Learning "Learns" In-Context: Disentangling Task Recognition and Task Learningcited by 152
6 more
  1. 2023Pretraining task diversity and the emergence of non-Bayesian in-context learning for regressioncited by 146
  2. 2023The mechanistic basis of data dependence and abrupt learning in an in-context classification taskcited by 118
  3. 2024The Evolution of Statistical Induction Heads: In-Context Learning Markov Chainscited by 118
  4. 2022General-Purpose In-Context Learning by Meta-Learning Transformerscited by 105
  5. 2023The Transient Nature of Emergent In-Context Learning in Transformerscited by 76
  6. 2024Why Larger Language Models Do In-context Learning Differently?cited by 45

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 12; 2026: 9.

21 papers.

Sort:

By area:

  1. 2025Training Dynamics of In-Context Learning in Linear Attentioncited by 46
  2. 2025Belief Dynamics Reveal the Dual Nature of In-Context Learning and Activation Steeringcited by 29
  3. 2025Strategy Coopetition Explains the Emergence and Transience of In-Context Learningcited by 17
  4. 2025When can in-context learning generalize out of task distribution?cited by 16
  5. 2025Provable Scaling Laws of Feature Emergence from Learning Dynamics of Grokkingcited by 15
  6. 2025Dynamics of Transient Structure in In-Context Linear Regression Transformerscited by 14
  7. 2026Distinct mechanisms underlying in-context learning in transformerscited by 4
  8. 2026TACTICL: Task-Aware Compression of Tabular ICL Modelscited by 4
  9. 2025Context and Diversity Matter: The Emergence of In-Context Learning in World Modelscited by 3
  10. 2025From Memorization to Reasoning in the Spectrum of Loss Curvaturecited by 2
  11. 2025An evolutionary perspective on modes of learning in Transformerscited by 1
  12. 2025Learning-to-Context Slope: Evaluating In-Context Learning Effectiveness Beyond Performance Illusionscited by 1
9 more
  1. 2025Multi-Layer Attention is the Amplifier of Demonstration Effectivenesscited by 1
  2. 2025Decomposing Prediction Mechanisms for In-Context Recallcited by 0
  3. 2026When Does Context Help? Error Dynamics of Contextual Information in Large Language Modelscited by 0
  4. 2026Reconciling In-Context and In-Weight Learning via Dual Representation Space Encodingcited by 0
  5. 2026Contrast Matters: Understanding Robustness of In-Context Fine-Tuning to Target-Context Relatednesscited by 0
  6. 2026An Asymptotic Theory of Chain-of-Thought in In-Context Learningcited by 0
  7. 2026Where Grokking Happens: Distributed Utility and Fourier Recoding Without a Module Switchcited by 0
  8. 2026An all-transistor physical-learning transformer can be trained to perform in-context learningcited by 0
  9. 2026Fisher information and the geometry of memorization in neural networkscited by 0