mlsanityData to 7 Oct 2026

The Transient Nature of Emergent In-Context Learning in Transformers

arXiv 2311.08360 ↗First posted 14 Nov 2023cs.LG cs.AI cs.CLcited by 72

Not on the map. Why?

Abstract (arXiv)

Transformer neural networks can exhibit a surprising capacity for in-context learning (ICL) despite not being explicitly trained for it. Prior work has provided a deeper understanding of how ICL emerges in transformers, e.g. through the lens of mechanistic interpretability, Bayesian inference, or by examining the distributional properties of training data. However, in each of these cases, ICL is treated largely as a persistent phenomenon; namely, once ICL emerges, it is assumed to persist asymptotically. Here, we show that the emergence of ICL during transformer training is, in fact, often transient. We train transformers on synthetic data designed so that both ICL and in-weights learning (IWL) strategies can lead to correct predictions. We find that ICL first emerges, then disappears and gives way to IWL, all while the training loss decreases, indicating an asymptotic preference for IWL. The transient nature of ICL is observed in transformers across a range of model sizes and datasets, raising the question of how much to "overtrain" transformers when seeking compact, cheaper-to-run models. We find that L2 regularization may offer a path to more persistent ICL that removes the need for early stopping based on ICL-style validation tasks. Finally, we present initial evidence that ICL transience may be caused by competition between ICL and IWL circuits.

Key facts. Cited by 72 papers in the map (data through 7 Oct 2026). Builds on 31 of its 41 references that are in the map. First posted on arXiv 14 Nov 2023.

Builds on

31 of 41 references.

References · 31

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2020Scaling Laws for Neural Language Modelscited by 6,411
  5. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  6. 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,861
  7. 2022Training Compute-Optimal Large Language Modelscited by 2,927
  8. 2022Emergent Abilities of Large Language Modelscited by 2,483
  9. 2017Billion-scale similarity search with GPUscited by 2,477
  10. 2016Matching Networks for One Shot Learningcited by 2,246
  11. 2017Decoupled Weight Decay Regularizationcited by 1,722
  12. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
19 more
  1. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
  2. 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,199
  3. 2022In-context Learning and Induction Headscited by 930
  4. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
  5. 2023Progress measures for grokking via mechanistic interpretabilitycited by 822
  6. 2022Transformers learn in-context by gradient descentcited by 714
  7. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
  8. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
  9. 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 599
  10. 2023Larger language models do in-context learning differentlycited by 386
  11. 2021True Few-Shot Learning with Language Modelscited by 343
  12. 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
  13. 2019Theoretical Limitations of Self-Attention in Neural Sequence Modelscited by 286
  14. 2023Specializing Smaller Language Models towards Multi-Step Reasoningcited by 249
  15. 2023The Learnability of In-Context Learningcited by 126
  16. 2022Overcoming a Theoretical Limitation of Self-Attentioncited by 110
  17. 2022The Slingshot Mechanism: An Empirical Study of Adaptive Optimizers and the Grokking Phenomenoncited by 90
  18. 2020Meta-learning in natural and artificial intelligencecited by 39
  19. 2020Sparse and Continuous Attention Mechanismscited by 37

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 1; 2024: 23; 2025: 27; 2026: 21.

72 papers.

Sort:

By area:

  1. 2024Better & Faster Large Language Models via Multi-token Predictioncited by 344
  2. 2023The mechanistic basis of data dependence and abrupt learning in an in-context classification taskcited by 115
  3. 2024Asymptotic theory of in-context learning by linear attentioncited by 54
  4. 2024Is In-Context Learning in Large Language Models Bayesian? A Martingale Perspectivecited by 51
  5. 2025Training Dynamics of In-Context Learning in Linear Attentioncited by 44
  6. 2025Emergent Abilities in Large Language Models: A Surveycited by 34
  7. 2024The broader spectrum of in-context learningcited by 33
  8. 2025How do language models learn facts? Dynamics, curricula and hallucinationscited by 33
  9. 2025Tracing the Representation Geometry of Language Models from Pretraining to Post-trainingcited by 33
  10. 2024A phase transition between positional and semantic learning in a solvable model of dot-product attentioncited by 30
  11. 2024Weight decay induces low-rank attention layerscited by 27
  12. 2025The emergence of sparse attention: impact of data distribution and benefits of repetitioncited by 25
38 more
  1. 2024Toward Understanding In-context vs. In-weight Learningcited by 19
  2. 2024Differential learning kinetics govern the transition from memorization to generalization during in-context learningcited by 19
  3. 2025Strategy Coopetition Explains the Emergence and Transience of In-Context Learningcited by 17
  4. 2024Revisiting In-context Learning Inference Circuit in Large Language Modelscited by 16
  5. 2024Dual Process Learning: Controlling Use of In-Context vs. In-Weights Strategies with Weight Forgettingcited by 15
  6. 2024Geometric Signatures of Compositionality Across a Language Model's Lifetimecited by 14
  7. 2024What Do Language Models Learn in Context? The Structured Task Hypothesiscited by 13
  8. 2025When can in-context learning generalize out of task distribution?cited by 13
  9. 2024A Survey to Recent Progress Towards Understanding In-Context Learningcited by 12
  10. 2024REGENT: A Retrieval-Augmented Generalist Agent That Can Act In-Context in New Environmentscited by 12
  11. 2025Dynamics of Transient Structure in In-Context Linear Regression Transformerscited by 12
  12. 2024Enhancing Few-Shot Vision-Language Classification with Large Multimodal Model Featurescited by 11
  13. 2025Beyond Induction Heads: In-Context Meta Learning Induces Multi-Phase Circuit Emergencecited by 10
  14. 2025EvaLearn: Quantifying the Learning Capability and Efficiency of LLMs via Sequential Problem Solvingcited by 10
  15. 2026Why Larger Models Learn More: Effects of Capacity, Interference, and Rare-Task Retentioncited by 8
  16. 2024Transformer Normalisation Layers and the Independence of Semantic Subspacescited by 6
  17. 2024N-Gram Induction Heads for In-Context RL: Improving Stability and Reducing Data Needscited by 6
  18. 2025Understanding Prompt Tuning and In-Context Learning via Meta-Learningcited by 6
  19. 2025Pretrain-Test Task Alignment Governs Generalization in In-Context Learningcited by 6
  20. 2024Transformers for Supervised Online Continual Learningcited by 5
  21. 2025Distinct Computations Emerge From Compositional Curricula in In-Context Learningcited by 5
  22. 2026Dissecting Multimodal In-Context Learning: Modality Asymmetries and Circuit Dynamics in modern Transformerscited by 5
  23. 2025Unlocking In-Context Learning for Natural Datasets Beyond Language Modellingcited by 4
  24. 2025Towards Large-Scale In-Context Reinforcement Learning by Meta-Training in Randomized Worldscited by 4
  25. 2024From Unstructured Data to In-Context Learning: Exploring What Tasks Can Be Learned and Whencited by 3
  26. 2024Demystifying Spectral Bias on Real-World Datacited by 3
  27. 2025Context and Diversity Matter: The Emergence of In-Context Learning in World Modelscited by 3
  28. 2026Stagewise Reinforcement Learning and the Geometry of the Regret Landscapecited by 3
  29. 2026Distinct mechanisms underlying in-context learning in transformerscited by 3
  30. 2024Towards Better Understanding of In-Context Learning Ability from In-Context Uncertainty Quantificationcited by 2
  31. 2024In-context Learning in Presence of Spurious Correlationscited by 2
  32. 2025Illusion or Algorithm? Investigating Memorization, Emergence, and Symbolic Processing in In-Context Learningcited by 2
  33. 2025Softmax ≥ Linear: Transformers may learn to classify in-context by kernel gradient descentcited by 2
  34. 2026Understanding Contextual Recall in Transformers: How Finetuning Enables In-Context Reasoning over Pretraining Knowledgecited by 2
  35. 2026Position: Don't Just "Fix it in Post": A Science of AI Must Study Training Dynamicscited by 2
  36. 2025An evolutionary perspective on modes of learning in Transformerscited by 1
  37. 2025Relational reasoning and inductive bias in transformers and large language modelscited by 1
  38. 2025A Review of Developmental Interpretability in Large Language Modelscited by 1

50 most cited of 72 All 72 (JSON)