A Theory of Emergent In-Context Learning as Implicit Structure Induction
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
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 871
- 2022Transformers learn in-context by gradient descentcited by 714
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
- 2019Designing and Interpreting Probes with Control Taskscited by 608
- 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 599
- 2023Larger language models do in-context learning differentlycited by 386
15 more
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
- 2019Compositionality decomposed: how do neural networks generalise?cited by 264
- 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 260
- 2022Can language models learn from explanations in context?cited by 248
- 2020Information-Theoretic Probing with Minimum Description Lengthcited by 230
- 2022Towards Understanding Grokking: An Effective Theory of Representation Learningcited by 229
- 2022Demystifying Prompts in Language Models via Perplexity Estimationcited by 215
- 2023Large Language Models Are Latent Variable Models: Explaining and Finding Good Demonstrations for In-Context Learningcited by 149
- 2023A Toy Model of Universality: Reverse Engineering How Networks Learn Group Operationscited by 141
- 2022On the Effect of Pretraining Corpora on In-context Learning by a Large-scale Language Modelcited by 78
- 2019Compound Probabilistic Context-Free Grammars for Grammar Inductioncited by 76
- 2022Iteratively Prompt Pre-trained Language Models for Chain of Thoughtcited by 75
- 2020Visually Grounded Compound PCFGscited by 34
- 2022Coloring the Blank Slate: Pre-training Imparts a Hierarchical Inductive Bias to Sequence-to-sequence Modelscited by 28
- 2022Unsupervised Discontinuous Constituency Parsing with Mildly Context-Sensitive Grammarscited by 7
Built on by
Citing papers per year: 2023: 24; 2024: 33; 2025: 20; 2026: 9.
86 papers.
Sort:
By area:
- 2023Large Language Modelscited by 774
- 2023Function Vectors in Large Language Modelscited by 292
- 2023Challenges and Applications of Large Language Modelscited by 251
- 2024Visual In-Context Learning for Large Vision-Language Modelscited by 124
- 2023What and How does In-Context Learning Learn? Bayesian Model Averaging, Parameterization, and Generalizationcited by 112
- 2023Are Emergent Abilities in Large Language Models just In-Context Learning?cited by 109
- 2024Can Mamba Learn How to Learn? A Comparative Study on In-Context Learning Taskscited by 104
- 2024In-Context Language Learning: Architectures and Algorithmscited by 86
- 2023In-Context Learning through the Bayesian Prismcited by 78
- 2024Can large language models explore in-context?cited by 75
- 2023Boosting Theory-of-Mind Performance in Large Language Models via Promptingcited by 64
- 2024Demystifying Chains, Trees, and Graphs of Thoughtscited by 63
38 more
- 2023Understanding In-Context Learning in Transformers and LLMs by Learning to Learn Discrete Functionscited by 62
- 2023Uncertainty in Natural Language Generation: From Theory to Applicationscited by 61
- 2024What Makes and Breaks Safety Fine-tuning? A Mechanistic Studycited by 54
- 2024Is In-Context Learning in Large Language Models Bayesian? A Martingale Perspectivecited by 51
- 2023In-Context Learning Learns Label Relationships but Is Not Conventional Learningcited by 48
- 2024Universal Vulnerabilities in Large Language Models: Backdoor Attacks for In-context Learningcited by 47
- 2023A Latent Space Theory for Emergent Abilities in Large Language Modelscited by 42
- 2023Generalization to New Sequential Decision Making Tasks with In-Context Learningcited by 39
- 2023Temporal Knowledge Graph Forecasting Without Knowledge Using In-Context Learningcited by 36
- 2023Which Examples to Annotate for In-Context Learning? Towards Effective and Efficient Selectioncited by 36
- 2024In-Context Learning with Representations: Contextual Generalization of Trained Transformerscited by 36
- 2023The Mystery of In-Context Learning: A Comprehensive Survey on Interpretation and Analysiscited by 34
- 2023How are Prompts Different in Terms of Sensitivity?cited by 34
- 2025Emergent Abilities in Large Language Models: A Surveycited by 34
- 2024Learning Universal Predictorscited by 29
- 2024Out-of-distribution generalization via composition: a lens through induction heads in Transformerscited by 28
- 2025Lower Bounds for Chain-of-Thought Reasoning in Hard-Attention Transformerscited by 28
- 2023Understanding In-Context Learning from Repetitionscited by 27
- 2024Unveiling the Statistical Foundations of Chain-of-Thought Prompting Methodscited by 27
- 2024Finding Visual Task Vectorscited by 24
- 2024Estimating the Hallucination Rate of Generative AIcited by 20
- 2023Dissecting Chain-of-Thought: Compositionality through In-Context Filtering and Learningcited by 19
- 2024LLM Task Interference: An Initial Study on the Impact of Task-Switch in Conversational Historycited by 19
- 2025Enough Coin Flips Can Make LLMs Act Bayesiancited by 19
- 2023Do pretrained Transformers Learn In-Context by Gradient Descent?cited by 18
- 2024Bayesian scaling laws for in-context learningcited by 18
- 2023Trainable Transformer in Transformercited by 17
- 2024From Words to Actions: Unveiling the Theoretical Underpinnings of LLM-Driven Autonomous Systemscited by 17
- 2023Why Can Large Language Models Generate Correct Chain-of-Thoughts?cited by 16
- 2024On the Training Convergence of Transformers for In-Context Classification of Gaussian Mixturescited by 15
- 2024On Subjective Uncertainty Quantification and Calibration in Natural Language Generationcited by 14
- 2023In-Context Learning Dynamics with Random Binary Sequencescited by 13
- 2024What Do Language Models Learn in Context? The Structured Task Hypothesiscited by 13
- 2025IC-Cache: Efficient Large Language Model Serving via In-context Cachingcited by 13
- 2024A Survey to Recent Progress Towards Understanding In-Context Learningcited by 12
- 2024Does learning the right latent variables necessarily improve in-context learning?cited by 12
- 2024Racing Thoughts: Explaining Contextualization Errors in Large Language Modelscited by 11
- 2025Contextualize-then-Aggregate: Circuits for In-Context Learning in Gemma-2 2Bcited by 10
50 most cited of 86 All 86 (JSON)
- 2026Theory on Attention Dynamics for Out-of-Distribution In-Context Learning29 Sep 2026
- 2026Convergent Emergence of In-Context Learning Across Modalities12 Sep 2026
- 2026Hawk: Harnessing Hardware-Aware Knowledge for High-Performance NPU Kernel Generation2 Jul 2026
- 2026Reasoning as Pattern Matching: Shared Mechanisms in Human and LLM Everyday Reasoning11 Jun 2026
- 2026One for All: A Non-Linear Transformer can Enable Cross-Domain Generalization for In-Context Reinforcement Learning10 May 2026
- 2026In-Context Function Learning in Large Language Models12 Feb 2026
- 2026Learning to Remember, Learn, and Forget in Attention-Based Models9 Feb 2026
- 2026Emergent Structured Representations Support Flexible In-Context Inference in Large Language Models8 Feb 2026
- 2026Scaling Trends for Multi-Hop Contextual Reasoning in Mid-Scale Language Models6 Jan 2026
- 2025Genomic Next-Token Predictors are In-Context Learners16 Nov 2025
- 2025Provable Benefit of Curriculum in Transformer Tree-Reasoning Post-Training10 Nov 2025
- 2025On the Relationship Between the Choice of Representation and In-Context Learning9 Oct 2025
38 more
- 2025InSQuAD: In-Context Learning for Efficient Retrieval via Submodular Mutual Information to Enforce Quality and Diversity28 Aug 2025
- 2025The Other Mind: How Language Models Exhibit Human Temporal Cognition21 Jul 2025
- 2025What Neuroscience Can Teach AI About Learning in Continuously Changing Environments2 Jul 2025
- 2025Next-Token Prediction Should be Ambiguity-Sensitive: A Meta-Learning Perspective19 Jun 2025
- 2025Brewing Knowledge in Context: Distillation Perspectives on In-Context Learning13 Jun 2025
- 2025Transformers Meet In-Context Learning: A Universal Approximation Theory5 Jun 2025
- 2025Neither Stochastic Parroting nor AGI: LLMs Solve Tasks through Context-Directed Extrapolation from Training Data Priors29 May 2025
- 2025Mechanistic evaluation of Transformers and state space models21 May 2025
- 2025ICL CIPHERS: Quantifying "Learning" in In-Context Learning via Substitution Ciphers28 Apr 2025
- 2025When Does Metadata Conditioning (NOT) Work for Language Model Pre-Training? A Study with Context-Free Grammars24 Apr 2025
- 2025Contextualize-then-Aggregate: Circuits for In-Context Learning in Gemma-2 2B31 Mar 2025
- 2025Enough Coin Flips Can Make LLMs Act Bayesian6 Mar 2025
- 2025Emergent Abilities in Large Language Models: A Survey28 Feb 2025
- 2025Lower Bounds for Chain-of-Thought Reasoning in Hard-Attention Transformers4 Feb 2025
- 2025Are Transformers Able to Reason by Connecting Separated Knowledge in Training Data?27 Jan 2025
- 2025IC-Cache: Efficient Large Language Model Serving via In-context Caching22 Jan 2025
- 2025Using Pre-trained LLMs for Multivariate Time Series Forecasting10 Jan 2025
- 2024Conceptual In-Context Learning and Chain of Concepts: Solving Complex Conceptual Problems Using Large Language Models19 Dec 2024
- 2024Bayesian scaling laws for in-context learning21 Oct 2024
- 2024On the Training Convergence of Transformers for In-Context Classification of Gaussian Mixtures15 Oct 2024
- 2024Toward generalizable learning of all (linear) first-order methods via memory augmented Transformers8 Oct 2024
- 2024Racing Thoughts: Explaining Contextualization Errors in Large Language Models2 Oct 2024
- 2024PALLM: Evaluating and Enhancing PALLiative Care Conversations with Large Language Models23 Sep 2024
- 2024Learning vs Retrieval: The Role of In-Context Examples in Regression with Large Language Models6 Sep 2024
- 2024Unveiling the Statistical Foundations of Chain-of-Thought Prompting Methods25 Aug 2024
- 2024In-Context Learning with Representations: Contextual Generalization of Trained Transformers19 Aug 2024
- 2024Out-of-distribution generalization via composition: a lens through induction heads in Transformers18 Aug 2024
- 2024Prompting the Unknown: Understanding Response Uncertainty in Large Language Models20 Jul 2024
- 2024Representing Rule-based Chatbots with Transformers15 Jul 2024
- 2024What Makes and Breaks Safety Fine-tuning? A Mechanistic Study14 Jul 2024
- 2024Transformer Block Coupling and its Correlation with Generalization in LLMs10 Jul 2024
- 2024Estimating the Hallucination Rate of Generative AI11 Jun 2024
- 2024On Subjective Uncertainty Quantification and Calibration in Natural Language Generation7 Jun 2024
- 2024What Do Language Models Learn in Context? The Structured Task Hypothesis6 Jun 2024
- 2024Is In-Context Learning in Large Language Models Bayesian? A Martingale Perspective2 Jun 2024
- 2024From Unstructured Data to In-Context Learning: Exploring What Tasks Can Be Learned and When31 May 2024
- 2024From Words to Actions: Unveiling the Theoretical Underpinnings of LLM-Driven Autonomous Systems30 May 2024
- 2024Does learning the right latent variables necessarily improve in-context learning?29 May 2024
50 newest of 86 All 86 (JSON)
- 2024Demystifying Chains, Trees, and Graphs of Thoughtscited by 63
- 2025Lower Bounds for Chain-of-Thought Reasoning in Hard-Attention Transformerscited by 28
- 2024Unveiling the Statistical Foundations of Chain-of-Thought Prompting Methodscited by 27
- 2023Dissecting Chain-of-Thought: Compositionality through In-Context Filtering and Learningcited by 19
- 2023Why Can Large Language Models Generate Correct Chain-of-Thoughts?cited by 16
- 2024Racing Thoughts: Explaining Contextualization Errors in Large Language Modelscited by 11
- 2025Provable Benefit of Curriculum in Transformer Tree-Reasoning Post-Trainingcited by 4
- 2026Scaling Trends for Multi-Hop Contextual Reasoning in Mid-Scale Language Modelscited by 1
- 2025Neither Stochastic Parroting nor AGI: LLMs Solve Tasks through Context-Directed Extrapolation from Training Data Priorscited by 0
- 2026Scaling Trends for Multi-Hop Contextual Reasoning in Mid-Scale Language Models6 Jan 2026
- 2025Provable Benefit of Curriculum in Transformer Tree-Reasoning Post-Training10 Nov 2025
- 2025Neither Stochastic Parroting nor AGI: LLMs Solve Tasks through Context-Directed Extrapolation from Training Data Priors29 May 2025
- 2025Lower Bounds for Chain-of-Thought Reasoning in Hard-Attention Transformers4 Feb 2025
- 2024Racing Thoughts: Explaining Contextualization Errors in Large Language Models2 Oct 2024
- 2024Unveiling the Statistical Foundations of Chain-of-Thought Prompting Methods25 Aug 2024
- 2024Demystifying Chains, Trees, and Graphs of Thoughts25 Jan 2024
- 2023Why Can Large Language Models Generate Correct Chain-of-Thoughts?20 Oct 2023
- 2023Dissecting Chain-of-Thought: Compositionality through In-Context Filtering and Learning30 May 2023
- 2024Visual In-Context Learning for Large Vision-Language Modelscited by 124
- 2024Visual In-Context Learning for Large Vision-Language Models18 Feb 2024
- 2023Large Language Modelscited by 774
- 2023Function Vectors in Large Language Modelscited by 292
- 2023Challenges and Applications of Large Language Modelscited by 251
- 2023What and How does In-Context Learning Learn? Bayesian Model Averaging, Parameterization, and Generalizationcited by 112
- 2023Are Emergent Abilities in Large Language Models just In-Context Learning?cited by 109
- 2024In-Context Language Learning: Architectures and Algorithmscited by 86
- 2023In-Context Learning through the Bayesian Prismcited by 78
- 2024Can large language models explore in-context?cited by 75
- 2023Understanding In-Context Learning in Transformers and LLMs by Learning to Learn Discrete Functionscited by 62
- 2023Uncertainty in Natural Language Generation: From Theory to Applicationscited by 61
- 2024Is In-Context Learning in Large Language Models Bayesian? A Martingale Perspectivecited by 51
- 2023In-Context Learning Learns Label Relationships but Is Not Conventional Learningcited by 48
12 most cited of 68 All 68 (JSON)
- 2026Theory on Attention Dynamics for Out-of-Distribution In-Context Learning29 Sep 2026
- 2026Convergent Emergence of In-Context Learning Across Modalities12 Sep 2026
- 2026Hawk: Harnessing Hardware-Aware Knowledge for High-Performance NPU Kernel Generation2 Jul 2026
- 2026One for All: A Non-Linear Transformer can Enable Cross-Domain Generalization for In-Context Reinforcement Learning10 May 2026
- 2026In-Context Function Learning in Large Language Models12 Feb 2026
- 2026Learning to Remember, Learn, and Forget in Attention-Based Models9 Feb 2026
- 2026Emergent Structured Representations Support Flexible In-Context Inference in Large Language Models8 Feb 2026
- 2025Genomic Next-Token Predictors are In-Context Learners16 Nov 2025
- 2025On the Relationship Between the Choice of Representation and In-Context Learning9 Oct 2025
- 2025InSQuAD: In-Context Learning for Efficient Retrieval via Submodular Mutual Information to Enforce Quality and Diversity28 Aug 2025
- 2025The Other Mind: How Language Models Exhibit Human Temporal Cognition21 Jul 2025
- 2025What Neuroscience Can Teach AI About Learning in Continuously Changing Environments2 Jul 2025
12 newest of 68 All 68 (JSON)