Data Distributional Properties Drive Emergent In-Context Learning in Transformers
Not on the map. Why?
Abstract (arXiv)
Large transformer-based models are able to perform in-context few-shot learning, without being explicitly trained for it. This observation raises the question: what aspects of the training regime lead to this emergent behavior? Here, we show that this behavior is driven by the distributions of the training data itself. In-context learning emerges when the training data exhibits particular distributional properties such as burstiness (items appear in clusters rather than being uniformly distributed over time) and having large numbers of rarely occurring classes. In-context learning also emerges more strongly when item meanings or interpretations are dynamic rather than fixed. These properties are exemplified by natural language, but are also inherent to naturalistic data in a wide range of other domains. They also depart significantly from the uniform, i.i.d. training distributions typically used for standard supervised learning. In our initial experiments, we found that in-context learning traded off against more conventional weight-based learning, and models were unable to achieve both simultaneously. However, our later experiments uncovered that the two modes of learning could co-exist in a single model when it was trained on data following a skewed Zipfian distribution -- another common property of naturalistic data, including language. In further experiments, we found that naturalistic data distributions were only able to elicit in-context learning in transformers, and not in recurrent models. In sum, our findings indicate how the transformer architecture works together with particular properties of the training data to drive the intriguing emergent in-context learning behaviour of large language models, and how future work might encourage both in-context and in-weights learning in domains beyond language.
Key facts. Cited by 303 papers in the map (data through 7 Oct 2026). Builds on 18 of its 42 references that are in the map. First posted on arXiv 22 Apr 2022.
Builds on
18 of 42 references.
References · 18
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,861
- 2016Matching Networks for One Shot Learningcited by 2,246
- 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
- 2020Hopfield Networks is All You Needcited by 461
- 2016Learning to reinforcement learncited by 369
- 2021Do Prompt-Based Models Really Understand the Meaning of their Prompts?cited by 324
- 2018Not All Samples Are Created Equal: Deep Learning with Importance Samplingcited by 323
- 2022Impact of Pretraining Term Frequencies on Few-Shot Reasoningcited by 142
6 more
- 2020Large Associative Memory Problem in Neurobiology and Machine Learningcited by 110
- 2022Can Wikipedia Help Offline Reinforcement Learning?cited by 76
- 2019The Omniglot challenge: a 3-year progress reportcited by 54
- 2020Grounded Language Learning Fast and Slowcited by 54
- 2022Zipfian environments for Reinforcement Learningcited by 13
- 2013Burstiness and spreading on temporal networkscited by 2
Built on by
Citing papers per year: 2022: 14; 2023: 88; 2024: 71; 2025: 82; 2026: 48.
303 papers.
Sort:
By area:
- 2023A Survey of Large Language Modelscited by 2,537
- 2022A Survey on In-context Learningcited by 717
- 2022Transformers learn in-context by gradient descentcited by 714
- 2023DataComp: In search of the next generation of multimodal datasetscited by 635
- 2023Are Emergent Abilities of Large Language Models a Mirage?cited by 515
- 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Timecited by 428
- 2023Trusting Your Evidence: Hallucinate Less with Context-aware Decodingcited by 319
- 2023Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspectivecited by 293
- 2023Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Timecited by 247
- 2022Emergent Analogical Reasoning in Large Language Modelscited by 239
- 2023Large Language Models as General Pattern Machinescited by 196
- 2022In-context Reinforcement Learning with Algorithm Distillationcited by 186
38 more
- 2023Embers of Autoregression: Understanding Large Language Models Through the Problem They are Trained to Solvecited by 175
- 2022Talking About Large Language Modelscited by 174
- 2023Birth of a Transformer: A Memory Viewpointcited by 154
- 2023What In-Context Learning "Learns" In-Context: Disentangling Task Recognition and Task Learningcited by 149
- 2023Pretraining task diversity and the emergence of non-Bayesian in-context learning for regressioncited by 138
- 2023Understanding Catastrophic Forgetting in Language Models via Implicit Inferencecited by 138
- 2023The Quantization Model of Neural Scalingcited by 137
- 2023Supervised Pretraining Can Learn In-Context Reinforcement Learningcited by 137
- 2022Transformer Neural Processes: Uncertainty-Aware Meta Learning Via Sequence Modelingcited by 126
- 2023The Learnability of In-Context Learningcited by 126
- 2023The mechanistic basis of data dependence and abrupt learning in an in-context classification taskcited by 115
- 2024The Evolution of Statistical Induction Heads: In-Context Learning Markov Chainscited by 115
- 2024A Practical Review of Mechanistic Interpretability for Transformer-Based Language Modelscited by 113
- 2023Mechanistically analyzing the effects of fine-tuning on procedurally defined taskscited by 110
- 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
- 2023Why think step by step? Reasoning emerges from the locality of experiencecited by 103
- 2022General-Purpose In-Context Learning by Meta-Learning Transformerscited by 102
- 2023Lag-Llama: Towards Foundation Models for Probabilistic Time Series Forecastingcited by 102
- 2024Not All Layers of LLMs Are Necessary During Inferencecited by 95
- 2023Uncovering mesa-optimization algorithms in Transformerscited by 94
- 2023A Theory of Emergent In-Context Learning as Implicit Structure Inductioncited by 86
- 2024In-Context Language Learning: Architectures and Algorithmscited by 86
- 2023Cognitive Mirage: A Review of Hallucinations in Large Language Modelscited by 83
- 2024Generalization v.s. Memorization: Tracing Language Models' Capabilities Back to Pretraining Datacited by 83
- 2023In-Context Learning through the Bayesian Prismcited by 78
- 2024No "Zero-Shot" Without Exponential Data: Pretraining Concept Frequency Determines Multimodal Model Performancecited by 75
- 2023How Do Transformers Learn In-Context Beyond Simple Functions? A Case Study on Learning with Representationscited by 72
- 2023The Transient Nature of Emergent In-Context Learning in Transformerscited by 72
- 2023TinyGSM: achieving >80% on GSM8k with small language modelscited by 68
- 2023Understanding In-Context Learning in Transformers and LLMs by Learning to Learn Discrete Functionscited by 62
- 2023Towards Better Chain-of-Thought Prompting Strategies: A Surveycited by 62
- 2023Gen2Sim: Scaling up Robot Learning in Simulation with Generative Modelscited by 62
- 2023Meta-in-context learning in large language modelscited by 59
- 2024Asymptotic theory of in-context learning by linear attentioncited by 54
- 2023Large Language Model Enhanced Multi-Agent Systems for 6G Communicationscited by 53
- 2022Transformers generalize differently from information stored in context vs in weightscited by 49
- 2023In-Context Learning Learns Label Relationships but Is Not Conventional Learningcited by 48
50 most cited of 303 All 303 (JSON)
- 2026Theory on Attention Dynamics for Out-of-Distribution In-Context Learning29 Sep 2026
- 2026Few-Shot Demonstrations Elicit the Use of In-Context World Representations in LLMs21 Sep 2026
- 2026On the Importance of Gating: Memorization vs. In-Context Learning in State Space Models15 Sep 2026
- 2026Convergent Emergence of In-Context Learning Across Modalities12 Sep 2026
- 2026Shortcut Before Circuit: Document Statistics Time In-Context Conflict Resolution25 Aug 2026
- 2026Linear RNN Scaling Laws: When Longer Sequences Beat More Sequences23 Aug 2026
- 2026Understanding the Surprising Generalization Properties of Tabular Foundation Models18 Aug 2026
- 2026Policy Iteration with Human Feedback: Bringing Post-Training RL to In-context Learning17 Aug 2026
- 2026Grounding latent algorithm routing in transformer reasoning27 Jul 2026
- 2026Invariant Learning Dynamics of Transformers in Inductive Reasoning Tasks13 Jul 2026
- 2026Uncertainty-Aware Trust Estimation for Multi-LLM Systems via Structured Expert Judgement10 Jul 2026
- 2026Pretraining Curricula Enable Selective Fine-tuning6 Jul 2026
38 more
- 2026Induction Heads Interpolate N-Grams2 Jul 2026
- 2026A Theoretical Interpretation of In-Context Learning via Probabilistic Modeling27 Jun 2026
- 2026Quo Vadis, Visual In-Context Learning? A Unified Benchmark Across Domains and Tasks9 Jun 2026
- 2026Beyond Model Size: Probing the Gaps in Visual in-Context Learning by Training a Tiny Model9 Jun 2026
- 2026OpenRFM: Dissecting Relational In-Context Learning3 Jun 2026
- 2026Understanding Generalization and Forgetting in In-Context Continual Learning27 May 2026
- 2026A Systematic Study of Behavioral Cloning for Scientific Data Annotation26 May 2026
- 2026Advancing Graph Few-Shot Learning via In-Context Learning23 May 2026
- 2026Mechanisms of Misgeneralization in Physical Sequence Modeling19 May 2026
- 2026Temporal Task Diversity: Inductive Biases Under Non-Stationarity in Synthetic Sequence Modelling18 May 2026
- 2026Large language models reorganize representational geometry during in-context learning16 May 2026
- 2026In-Context Learning Operates as Concept Subspace Learning12 May 2026
- 2026Self-Attention as a Covariance Readout: A Unified View of In-Context Learning and Repetition11 May 2026
- 2026In-Context Fixation: When Demonstrated Labels Override Semantics in Few-Shot Classification8 May 2026
- 2026In-Context Examples Suppress Scientific Knowledge Recall in LLMs30 Apr 2026
- 2026Quantifying Aleatoric Uncertainty of In-Context Learning for Robust Measure of LLM Prediction Confidence28 Apr 2026
- 2026To See the Unseen: on the Generalization Ability of Transformers in Symbolic Reasoning23 Apr 2026
- 2026Distinct mechanisms underlying in-context learning in transformers14 Apr 2026
- 2026Symmetry Reveals Layerwise Dynamics: How Transformers Perform In-Context Classification13 Apr 2026
- 2026Transformers Learn Latent Mixture Models In-Context via Mirror Descent12 Apr 2026
- 2026Understanding Emergent Misalignment via Feature Superposition Geometry7 Apr 2026
- 2026In-Context Learning in Speech Language Models: Analyzing the Role of Acoustic Features, Linguistic Structure, and Induction Heads7 Apr 2026
- 2026Contrast Matters: Understanding Robustness of In-Context Fine-Tuning to Target-Context Relatedness2 Apr 2026
- 2026StateLinFormer: Stateful Training Enhancing Long-term Memory in Navigation24 Mar 2026
- 2026Dynamic sparsity in tree-structured feed-forward layers at scale18 Mar 2026
- 2026Reconciling In-Context and In-Weight Learning via Dual Representation Space Encoding13 Mar 2026
- 2026Training Language Models via Neural Cellular Automata9 Mar 2026
- 2026Adaptive Engram Memory System for Indonesian Language Model: Generative AI Based on TOBA LM for Batak and Minang Language17 Feb 2026
- 2026Emergent Structured Representations Support Flexible In-Context Inference in Large Language Models8 Feb 2026
- 2026Gaussian Match-and-Copy: A Minimalist Benchmark for Studying Transformer Induction7 Feb 2026
- 2026Hierarchical Latent Structures in Data Generation Process Unify Mechanistic Phenomena across Scale4 Feb 2026
- 2026Convergent World Representations and Divergent Tasks31 Jan 2026
- 2026Context Structure Reshapes the Representational Geometry of Language Models29 Jan 2026
- 2026Mechanistic Data Attribution: Tracing the Training Origins of Interpretable LLM Units29 Jan 2026
- 2026Procedural Pretraining: Warming Up Language Models with Abstract Data29 Jan 2026
- 2026Dissecting Multimodal In-Context Learning: Modality Asymmetries and Circuit Dynamics in modern Transformers28 Jan 2026
- 2025Large Language Models as Discounted Bayesian Filters20 Dec 2025
- 2025Task Schema and Binding: A Double Dissociation Study of In-Context Learning19 Dec 2025
50 newest of 303 All 303 (JSON)
- 2023Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspectivecited by 293
- 2022Emergent Analogical Reasoning in Large Language Modelscited by 239
- 2023Why think step by step? Reasoning emerges from the locality of experiencecited by 103
- 2023TinyGSM: achieving >80% on GSM8k with small language modelscited by 68
- 2023Towards Better Chain-of-Thought Prompting Strategies: A Surveycited by 62
- 2025On the generalization of language models from in-context learning and finetuning: a controlled studycited by 39
- 2025Unveiling Causal Reasoning in Large Language Models: Reality or Mirage?cited by 36
- 2025Transformers Pretrained on Procedural Data Contain Modular Structures for Algorithmic Reasoningcited by 9
- 2024Larger Language Models Don't Care How You Think: Why Chain-of-Thought Prompting Fails in Subjective Taskscited by 8
- 2022Evaluating Step-by-Step Reasoning through Symbolic Verificationcited by 5
- 2024RuAG: Learned-rule-augmented Generation for Large Language Modelscited by 4
- 2024Look Before You Leap: Problem Elaboration Prompting Improves Mathematical Reasoning in Large Language Modelscited by 2
12 most cited of 18 All 18 (JSON)
- 2026Grounding latent algorithm routing in transformer reasoning27 Jul 2026
- 2026Invariant Learning Dynamics of Transformers in Inductive Reasoning Tasks13 Jul 2026
- 2026In-Context Examples Suppress Scientific Knowledge Recall in LLMs30 Apr 2026
- 2026To See the Unseen: on the Generalization Ability of Transformers in Symbolic Reasoning23 Apr 2026
- 2025Thinking About Thinking: SAGE-nano's Inverse Reasoning for Self-Aware Language Models30 Jun 2025
- 2025Unveiling Causal Reasoning in Large Language Models: Reality or Mirage?26 Jun 2025
- 2025Neither Stochastic Parroting nor AGI: LLMs Solve Tasks through Context-Directed Extrapolation from Training Data Priors29 May 2025
- 2025Transformers Pretrained on Procedural Data Contain Modular Structures for Algorithmic Reasoning28 May 2025
- 2025On the generalization of language models from in-context learning and finetuning: a controlled study1 May 2025
- 2024RuAG: Learned-rule-augmented Generation for Large Language Models4 Nov 2024
- 2024Larger Language Models Don't Care How You Think: Why Chain-of-Thought Prompting Fails in Subjective Tasks10 Sep 2024
- 2024Look Before You Leap: Problem Elaboration Prompting Improves Mathematical Reasoning in Large Language Models24 Feb 2024
12 newest of 18 All 18 (JSON)
- 2023Eliciting In-Context Learning in Vision-Language Models for Videos Through Curated Data Distributional Propertiescited by 21
- 2023Towards Robust Prompts on Vision-Language Modelscited by 7
- 2026Dissecting Multimodal In-Context Learning: Modality Asymmetries and Circuit Dynamics in modern Transformerscited by 5
- 2025Textual Inversion for Efficient Adaptation of Open-Vocabulary Object Detectors Without Forgettingcited by 3
- 2023The Contemporary Art of Image Search: Iterative User Intent Expansion via Vision-Language Modelcited by 1
- 2026Dissecting Multimodal In-Context Learning: Modality Asymmetries and Circuit Dynamics in modern Transformers28 Jan 2026
- 2025Textual Inversion for Efficient Adaptation of Open-Vocabulary Object Detectors Without Forgetting7 Aug 2025
- 2023The Contemporary Art of Image Search: Iterative User Intent Expansion via Vision-Language Model4 Dec 2023
- 2023Eliciting In-Context Learning in Vision-Language Models for Videos Through Curated Data Distributional Properties28 Nov 2023
- 2023Towards Robust Prompts on Vision-Language Models17 Apr 2023
- 2023Large Language Model Enhanced Multi-Agent Systems for 6G Communicationscited by 53
- 2025LLMs are Greedy Agents: Effects of RL Fine-tuning on Decision-Making Abilitiescited by 36
- 2024In-context learning agents are asymmetric belief updaterscited by 13
- 2025Factored Agents: Decoupling In-Context Learning and Memorization for Robust Tool Usecited by 3
- 2025LLMs are Greedy Agents: Effects of RL Fine-tuning on Decision-Making Abilities22 Apr 2025
- 2025Factored Agents: Decoupling In-Context Learning and Memorization for Robust Tool Use29 Mar 2025
- 2024In-context learning agents are asymmetric belief updaters6 Feb 2024
- 2023Large Language Model Enhanced Multi-Agent Systems for 6G Communications13 Dec 2023
- 2023A Survey of Large Language Modelscited by 2,537
- 2022A Survey on In-context Learningcited by 717
- 2022Transformers learn in-context by gradient descentcited by 714
- 2023Are Emergent Abilities of Large Language Models a Mirage?cited by 515
- 2023Trusting Your Evidence: Hallucinate Less with Context-aware Decodingcited by 319
- 2023Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Timecited by 247
- 2023Large Language Models as General Pattern Machinescited by 196
- 2022In-context Reinforcement Learning with Algorithm Distillationcited by 186
- 2023Embers of Autoregression: Understanding Large Language Models Through the Problem They are Trained to Solvecited by 175
- 2022Talking About Large Language Modelscited by 174
- 2023Birth of a Transformer: A Memory Viewpointcited by 154
- 2023What In-Context Learning "Learns" In-Context: Disentangling Task Recognition and Task Learningcited by 149
12 most cited of 261 All 261 (JSON)
- 2026Theory on Attention Dynamics for Out-of-Distribution In-Context Learning29 Sep 2026
- 2026Few-Shot Demonstrations Elicit the Use of In-Context World Representations in LLMs21 Sep 2026
- 2026On the Importance of Gating: Memorization vs. In-Context Learning in State Space Models15 Sep 2026
- 2026Convergent Emergence of In-Context Learning Across Modalities12 Sep 2026
- 2026Shortcut Before Circuit: Document Statistics Time In-Context Conflict Resolution25 Aug 2026
- 2026Linear RNN Scaling Laws: When Longer Sequences Beat More Sequences23 Aug 2026
- 2026Understanding the Surprising Generalization Properties of Tabular Foundation Models18 Aug 2026
- 2026Uncertainty-Aware Trust Estimation for Multi-LLM Systems via Structured Expert Judgement10 Jul 2026
- 2026Pretraining Curricula Enable Selective Fine-tuning6 Jul 2026
- 2026Induction Heads Interpolate N-Grams2 Jul 2026
- 2026A Theoretical Interpretation of In-Context Learning via Probabilistic Modeling27 Jun 2026
- 2026Quo Vadis, Visual In-Context Learning? A Unified Benchmark Across Domains and Tasks9 Jun 2026
12 newest of 261 All 261 (JSON)