mlsanityData to 7 Oct 2026

A Theory of Emergent In-Context Learning as Implicit Structure Induction

arXiv 2303.07971 ↗First posted 14 Mar 2023cs.CL cs.LGcited by 86

Not on the map. Why?

Abstract (arXiv)

Scaling large language models (LLMs) leads to an emergent capacity to learn in-context from example demonstrations. Despite progress, theoretical understanding of this phenomenon remains limited. We argue that in-context learning relies on recombination of compositional operations found in natural language data. We derive an information-theoretic bound showing how in-context learning abilities arise from generic next-token prediction when the pretraining distribution has sufficient amounts of compositional structure, under linguistically motivated assumptions. A second bound provides a theoretical justification for the empirical success of prompting LLMs to output intermediate steps towards an answer. To validate theoretical predictions, we introduce a controlled setup for inducing in-context learning; unlike previous approaches, it accounts for the compositional nature of language. Trained transformers can perform in-context learning for a range of tasks, in a manner consistent with the theoretical results. Mirroring real-world LLMs in a miniature setup, in-context learning emerges when scaling parameters and data, and models perform better when prompted to output intermediate steps. Probing shows that in-context learning is supported by a representation of the input's compositional structure. Taken together, these results provide a step towards theoretical understanding of emergent behavior in large language models.

Key facts. Cited by 86 papers in the map (data through 7 Oct 2026). Builds on 27 of its 88 references that are in the map. First posted on arXiv 14 Mar 2023.

Builds on

27 of 88 references.

References · 27

  1. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  2. 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
  3. 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
  4. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
  5. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
  6. 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 871
  7. 2022Transformers learn in-context by gradient descentcited by 714
  8. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
  9. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
  10. 2019Designing and Interpreting Probes with Control Taskscited by 608
  11. 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 599
  12. 2023Larger language models do in-context learning differentlycited by 386
15 more
  1. 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
  2. 2019Compositionality decomposed: how do neural networks generalise?cited by 264
  3. 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 260
  4. 2022Can language models learn from explanations in context?cited by 248
  5. 2020Information-Theoretic Probing with Minimum Description Lengthcited by 230
  6. 2022Towards Understanding Grokking: An Effective Theory of Representation Learningcited by 229
  7. 2022Demystifying Prompts in Language Models via Perplexity Estimationcited by 215
  8. 2023Large Language Models Are Latent Variable Models: Explaining and Finding Good Demonstrations for In-Context Learningcited by 149
  9. 2023A Toy Model of Universality: Reverse Engineering How Networks Learn Group Operationscited by 141
  10. 2022On the Effect of Pretraining Corpora on In-context Learning by a Large-scale Language Modelcited by 78
  11. 2019Compound Probabilistic Context-Free Grammars for Grammar Inductioncited by 76
  12. 2022Iteratively Prompt Pre-trained Language Models for Chain of Thoughtcited by 75
  13. 2020Visually Grounded Compound PCFGscited by 34
  14. 2022Coloring the Blank Slate: Pre-training Imparts a Hierarchical Inductive Bias to Sequence-to-sequence Modelscited by 28
  15. 2022Unsupervised Discontinuous Constituency Parsing with Mildly Context-Sensitive Grammarscited by 7

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 24; 2024: 33; 2025: 20; 2026: 9.

86 papers.

Sort:

By area:

  1. 2023Large Language Modelscited by 774
  2. 2023Function Vectors in Large Language Modelscited by 292
  3. 2023Challenges and Applications of Large Language Modelscited by 251
  4. 2024Visual In-Context Learning for Large Vision-Language Modelscited by 124
  5. 2023What and How does In-Context Learning Learn? Bayesian Model Averaging, Parameterization, and Generalizationcited by 112
  6. 2023Are Emergent Abilities in Large Language Models just In-Context Learning?cited by 109
  7. 2024Can Mamba Learn How to Learn? A Comparative Study on In-Context Learning Taskscited by 104
  8. 2024In-Context Language Learning: Architectures and Algorithmscited by 86
  9. 2023In-Context Learning through the Bayesian Prismcited by 78
  10. 2024Can large language models explore in-context?cited by 75
  11. 2023Boosting Theory-of-Mind Performance in Large Language Models via Promptingcited by 64
  12. 2024Demystifying Chains, Trees, and Graphs of Thoughtscited by 63
38 more
  1. 2023Understanding In-Context Learning in Transformers and LLMs by Learning to Learn Discrete Functionscited by 62
  2. 2023Uncertainty in Natural Language Generation: From Theory to Applicationscited by 61
  3. 2024What Makes and Breaks Safety Fine-tuning? A Mechanistic Studycited by 54
  4. 2024Is In-Context Learning in Large Language Models Bayesian? A Martingale Perspectivecited by 51
  5. 2023In-Context Learning Learns Label Relationships but Is Not Conventional Learningcited by 48
  6. 2024Universal Vulnerabilities in Large Language Models: Backdoor Attacks for In-context Learningcited by 47
  7. 2023A Latent Space Theory for Emergent Abilities in Large Language Modelscited by 42
  8. 2023Generalization to New Sequential Decision Making Tasks with In-Context Learningcited by 39
  9. 2023Temporal Knowledge Graph Forecasting Without Knowledge Using In-Context Learningcited by 36
  10. 2023Which Examples to Annotate for In-Context Learning? Towards Effective and Efficient Selectioncited by 36
  11. 2024In-Context Learning with Representations: Contextual Generalization of Trained Transformerscited by 36
  12. 2023The Mystery of In-Context Learning: A Comprehensive Survey on Interpretation and Analysiscited by 34
  13. 2023How are Prompts Different in Terms of Sensitivity?cited by 34
  14. 2025Emergent Abilities in Large Language Models: A Surveycited by 34
  15. 2024Learning Universal Predictorscited by 29
  16. 2024Out-of-distribution generalization via composition: a lens through induction heads in Transformerscited by 28
  17. 2025Lower Bounds for Chain-of-Thought Reasoning in Hard-Attention Transformerscited by 28
  18. 2023Understanding In-Context Learning from Repetitionscited by 27
  19. 2024Unveiling the Statistical Foundations of Chain-of-Thought Prompting Methodscited by 27
  20. 2024Finding Visual Task Vectorscited by 24
  21. 2024Estimating the Hallucination Rate of Generative AIcited by 20
  22. 2023Dissecting Chain-of-Thought: Compositionality through In-Context Filtering and Learningcited by 19
  23. 2024LLM Task Interference: An Initial Study on the Impact of Task-Switch in Conversational Historycited by 19
  24. 2025Enough Coin Flips Can Make LLMs Act Bayesiancited by 19
  25. 2023Do pretrained Transformers Learn In-Context by Gradient Descent?cited by 18
  26. 2024Bayesian scaling laws for in-context learningcited by 18
  27. 2023Trainable Transformer in Transformercited by 17
  28. 2024From Words to Actions: Unveiling the Theoretical Underpinnings of LLM-Driven Autonomous Systemscited by 17
  29. 2023Why Can Large Language Models Generate Correct Chain-of-Thoughts?cited by 16
  30. 2024On the Training Convergence of Transformers for In-Context Classification of Gaussian Mixturescited by 15
  31. 2024On Subjective Uncertainty Quantification and Calibration in Natural Language Generationcited by 14
  32. 2023In-Context Learning Dynamics with Random Binary Sequencescited by 13
  33. 2024What Do Language Models Learn in Context? The Structured Task Hypothesiscited by 13
  34. 2025IC-Cache: Efficient Large Language Model Serving via In-context Cachingcited by 13
  35. 2024A Survey to Recent Progress Towards Understanding In-Context Learningcited by 12
  36. 2024Does learning the right latent variables necessarily improve in-context learning?cited by 12
  37. 2024Racing Thoughts: Explaining Contextualization Errors in Large Language Modelscited by 11
  38. 2025Contextualize-then-Aggregate: Circuits for In-Context Learning in Gemma-2 2Bcited by 10

50 most cited of 86 All 86 (JSON)