From Copying to Composition: How Language Models Develop In-Context Learning
Not on the map. Why?
Abstract (arXiv)
In-context learning (ICL) allows language models to adapt their behavior from instructions and demonstrations in a prompt, but accuracy alone does not reveal how contextual information controls their predictions. We study the acquisition and trainability of ICL with a controlled diagnostic that separates copying a nearby demonstration from integrating information across the prompt. Across 17 models, about a third prefer the copied answer, a few are undecided, and the rest prefer the rule-consistent answer, which goes with higher accuracy and with control by the requested value rather than the closest conflicting example. Checkpoint analyses show that models begin prioritizing task-relevant prompt tokens over conflicting examples long before their accuracy improves beyond chance level. In matched training experiments, synthetic documents that define endings and then query them shift models toward compositional responses on the controlled diagnostic, whereas fine-tuning on definition exercises built from rewritten real documents improves accuracy when prompts reassign label meanings. The results suggest that ICL is not acquired as a single, uniform capability. Instead, prompt control, answer preference, construction without candidates, and transfer can develop along distinct trajectories.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 50 of its 74 references that are in the map. First posted on arXiv 13 Oct 2026.
Builds on
50 of 74 references.
References · 50
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,984
- 2025Gemma 3 Technical Reportcited by 1,824
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 992
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
- 2019Attention is not Explanationcited by 929
38 more
- 2022Transformers learn in-context by gradient descentcited by 732
- 2024TinyLlama: An Open-Source Small Language Modelcited by 618
- 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 528
- 2021Causal Abstractions of Neural Networkscited by 422
- 2023Larger language models do in-context learning differentlycited by 394
- 2019Is Attention Interpretable?cited by 389
- 2025SmolLM2: When Smol Goes Big -- Data-Centric Training of a Small Language Modelcited by 335
- 2020How Good is Your Tokenizer? On the Monolingual Performance of Multilingual Language Modelscited by 318
- 2015Towards AI-Complete Question Answering: A Set of Prerequisite Toy Taskscited by 314
- 2023In-Context Learning Creates Task Vectorscited by 312
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 309
- 2024OLMoE: Open Mixture-of-Experts Language Modelscited by 301
- 2019Compositionality decomposed: how do neural networks generalise?cited by 265
- 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 263
- 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 232
- 2024How to use and interpret activation patchingcited by 214
- 2023Localizing Model Behavior with Path Patchingcited by 195
- 2019CLUTRR: A Diagnostic Benchmark for Inductive Reasoning from Textcited by 162
- 2024Fine-Tuning Enhances Existing Mechanisms: A Case Study on Entity Trackingcited by 149
- 2023Sudden Drops in the Loss: Syntax Acquisition, Phase Transitions, and Simplicity Bias in MLMscited by 124
- 2023The mechanistic basis of data dependence and abrupt learning in an in-context classification taskcited by 118
- 2023Copy Suppression: Comprehensively Understanding an Attention Headcited by 76
- 2023The Transient Nature of Emergent In-Context Learning in Transformerscited by 76
- 2023Symbol tuning improves in-context learning in language modelscited by 75
- 2023Understanding In-Context Learning in Transformers and LLMs by Learning to Learn Discrete Functionscited by 63
- 2024LLM Circuit Analyses Are Consistent Across Training and Scalecited by 63
- 2024LoFiT: Localized Fine-tuning on LLM Representationscited by 57
- 2024CausalGym: Benchmarking causal interpretability methods on linguistic taskscited by 46
- 2018UniMorph 2.0: Universal Morphologycited by 42
- 2023Language acquisition: do children and language models follow similar learning stages?cited by 41
- 2025The Dual-Route Model of Inductioncited by 24
- 2024Evaluating Morphological Compositional Generalization in Large Language Modelscited by 19
- 2025How do Transformers Learn Implicit Reasoning?cited by 16
- 2026What do Language Models Learn and When? The Implicit Curriculum Hypothesiscited by 10
- 2024YuLan-Mini: An Open Data-efficient Language Modelcited by 7
- 2025Illusion or Algorithm? Investigating Memorization, Emergence, and Symbolic Processing in In-Context Learningcited by 3
- 2025Task Schema and Binding: A Double Dissociation Study of In-Context Learningcited by 3
- 2025Localizing Task Recognition and Task Learning in In-Context Learning via Attention Head Analysiscited by 2
Built on by
Not cited yet.