mlsanityData to 7 Oct 2026

The mechanistic basis of data dependence and abrupt learning in an in-context classification task

arXiv 2312.03002 ↗First posted 3 Dec 2023cs.LGcited by 115

Not on the map. Why?

Abstract (arXiv)

Transformer models exhibit in-context learning: the ability to accurately predict the response to a novel query based on illustrative examples in the input sequence. In-context learning contrasts with traditional in-weights learning of query-output relationships. What aspects of the training data distribution and architecture favor in-context vs in-weights learning? Recent work has shown that specific distributional properties inherent in language, such as burstiness, large dictionaries and skewed rank-frequency distributions, control the trade-off or simultaneous appearance of these two forms of learning. We first show that these results are recapitulated in a minimal attention-only network trained on a simplified dataset. In-context learning (ICL) is driven by the abrupt emergence of an induction head, which subsequently competes with in-weights learning. By identifying progress measures that precede in-context learning and targeted experiments, we construct a two-parameter model of an induction head which emulates the full data distributional dependencies displayed by the attention-based network. A phenomenological model of induction head formation traces its abrupt emergence to the sequential learning of three nested logits enabled by an intrinsic curriculum. We propose that the sharp transitions in attention-based networks arise due to a specific chain of multi-layer operations necessary to achieve ICL, which is implemented by nested nonlinearities sequentially learned during training.

Key facts. Cited by 115 papers in the map (data through 7 Oct 2026). Builds on 18 of its 24 references that are in the map. First posted on arXiv 3 Dec 2023.

Builds on

18 of 24 references.

References · 18

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
  4. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
  5. 2022Transformers learn in-context by gradient descentcited by 714
  6. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
  7. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
  8. 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
  9. 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 291
  10. 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 274
  11. 2016Using the Output Embedding to Improve Language Modelscited by 266
  12. 2023Human-Timescale Adaptation in an Open-Ended Task Spacecited by 136
6 more
  1. 2023Are Emergent Abilities in Large Language Models just In-Context Learning?cited by 109
  2. 2022General-Purpose In-Context Learning by Meta-Learning Transformerscited by 102
  3. 2016Tying Word Vectors and Word Classifiers: A Loss Framework for Language Modelingcited by 87
  4. 2023In-Context Learning through the Bayesian Prismcited by 78
  5. 2023The Transient Nature of Emergent In-Context Learning in Transformerscited by 72
  6. 2019The Omniglot challenge: a 3-year progress reportcited by 54

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 43; 2025: 40; 2026: 32.

115 papers.

Sort:

By area:

  1. 2024The Evolution of Statistical Induction Heads: In-Context Learning Markov Chainscited by 115
  2. 2024A Practical Review of Mechanistic Interpretability for Transformer-Based Language Modelscited by 113
  3. 2024Attention Heads of Large Language Models: A Surveycited by 65
  4. 2025On the Emergence of Position Bias in Transformerscited by 57
  5. 2024Asymptotic theory of in-context learning by linear attentioncited by 54
  6. 2024Active-Dormant Attention Heads: Mechanistically Demystifying Extreme-Token Phenomena in LLMscited by 54
  7. 2024Is Mamba Capable of In-Context Learning?cited by 45
  8. 2024Why Larger Language Models Do In-context Learning Differently?cited by 44
  9. 2025Training Dynamics of In-Context Learning in Linear Attentioncited by 44
  10. 2024Talking Heads: Understanding Inter-layer Communication in Transformer Language Modelscited by 39
  11. 2025Language Models Are Capable of Metacognitive Monitoring and Control of Their Internal Activationscited by 37
  12. 2025How do language models learn facts? Dynamics, curricula and hallucinationscited by 33
38 more
  1. 2024Iteration Head: A Mechanistic Study of Chain-of-Thoughtcited by 31
  2. 2024A phase transition between positional and semantic learning in a solvable model of dot-product attentioncited by 30
  3. 2024Interpreting Key Mechanisms of Factual Recall in Transformer-Based Language Modelscited by 30
  4. 2025Pixels Versus Priors: Controlling Knowledge Priors in Vision-Language Models through Visual Counterfactscited by 30
  5. 2024Out-of-distribution generalization via composition: a lens through induction heads in Transformerscited by 28
  6. 2024A Percolation Model of Emergence: Analyzing Transformers Trained on a Formal Languagecited by 26
  7. 2025The emergence of sparse attention: impact of data distribution and benefits of repetitioncited by 25
  8. 2025Belief Dynamics Reveal the Dual Nature of In-Context Learning and Activation Steeringcited by 24
  9. 2024Attention Prompting on Image for Large Vision-Language Modelscited by 23
  10. 2024Bypassing the Exponential Dependency: Looped Transformers Efficiently Learn In-context by Multi-step Gradient Descentcited by 21
  11. 2026There Will Be a Scientific Theory of Deep Learningcited by 21
  12. 2024Deeper Insights Without Updates: The Power of In-Context Learning Over Fine-Tuningcited by 20
  13. 2025How Do LLMs Perform Two-Hop Reasoning in Context?cited by 20
  14. 2024Toward Understanding In-context vs. In-weight Learningcited by 19
  15. 2024Differential learning kinetics govern the transition from memorization to generalization during in-context learningcited by 19
  16. 2025Strategy Coopetition Explains the Emergence and Transience of In-Context Learningcited by 17
  17. 2024Revisiting In-context Learning Inference Circuit in Large Language Modelscited by 16
  18. 2024On Catastrophic Inheritance of Large Foundation Modelscited by 15
  19. 2024Linking In-context Learning in Transformers to Human Episodic Memorycited by 15
  20. 2024Understanding the Language Model to Solve the Symbolic Multi-Step Reasoning Problem from the Perspective of Buffer Mechanismcited by 15
  21. 2024Dual Process Learning: Controlling Use of In-Context vs. In-Weights Strategies with Weight Forgettingcited by 15
  22. 2025Context parroting: A simple but tough-to-beat baseline for foundation models in scientific machine learningcited by 14
  23. 2024Everything Everywhere All at Once: LLMs can In-Context Learn Multiple Tasks in Superpositioncited by 13
  24. 2024A Survey to Recent Progress Towards Understanding In-Context Learningcited by 12
  25. 2024MLPs Learn In-Context on Regression and Classification Taskscited by 12
  26. 2024Anchor function: a type of benchmark functions for studying language modelscited by 10
  27. 2025Through the Magnifying Glass: Adaptive Perception Magnification for Hallucination-Free VLM Decodingcited by 10
  28. 2025Beyond Induction Heads: In-Context Meta Learning Induces Multi-Phase Circuit Emergencecited by 10
  29. 2025Unifying Attention Heads and Task Vectors via Hidden State Geometry in In-Context Learningcited by 10
  30. 2024Dissecting the Interplay of Attention Paths in a Statistical Mechanics Theory of Transformerscited by 9
  31. 2024Unraveling the Mechanics of Learning-Based Demonstration Selection for In-Context Learningcited by 9
  32. 2025From Condensation to Rank Collapse: A Two-Stage Analysis of Transformer Training Dynamicscited by 9
  33. 2025Understanding In-context Learning of Addition via Activation Subspacescited by 8
  34. 2025Mechanistic evaluation of Transformers and state space modelscited by 8
  35. 2025Thinking Sparks!: Emergent Attention Heads in Reasoning Models During Post Trainingcited by 8
  36. 2024IM-Context: In-Context Learning for Imbalanced Regression Taskscited by 7
  37. 2024How Transformers Get Rich: Approximation and Dynamics Analysiscited by 7
  38. 2024Mechanism and Emergence of Stacked Attention Heads in Multi-Layer Transformerscited by 7

50 most cited of 115 All 115 (JSON)