mlsanityData to 14 Oct 2026

From Copying to Composition: How Language Models Develop In-Context Learning

arXiv 2610.19113 ↗First posted 13 Oct 2026cs.CL cs.AI cs.LGcited by 0

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

  1. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  2. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
  3. 2022Locating and Editing Factual Associations in GPTcited by 2,691
  4. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
  5. 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
  6. 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,984
  7. 2025Gemma 3 Technical Reportcited by 1,824
  8. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
  9. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
  10. 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 992
  11. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
  12. 2019Attention is not Explanationcited by 929
38 more
  1. 2022Transformers learn in-context by gradient descentcited by 732
  2. 2024TinyLlama: An Open-Source Small Language Modelcited by 618
  3. 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 528
  4. 2021Causal Abstractions of Neural Networkscited by 422
  5. 2023Larger language models do in-context learning differentlycited by 394
  6. 2019Is Attention Interpretable?cited by 389
  7. 2025SmolLM2: When Smol Goes Big -- Data-Centric Training of a Small Language Modelcited by 335
  8. 2020How Good is Your Tokenizer? On the Monolingual Performance of Multilingual Language Modelscited by 318
  9. 2015Towards AI-Complete Question Answering: A Set of Prerequisite Toy Taskscited by 314
  10. 2023In-Context Learning Creates Task Vectorscited by 312
  11. 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 309
  12. 2024OLMoE: Open Mixture-of-Experts Language Modelscited by 301
  13. 2019Compositionality decomposed: how do neural networks generalise?cited by 265
  14. 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 263
  15. 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 232
  16. 2024How to use and interpret activation patchingcited by 214
  17. 2023Localizing Model Behavior with Path Patchingcited by 195
  18. 2019CLUTRR: A Diagnostic Benchmark for Inductive Reasoning from Textcited by 162
  19. 2024Fine-Tuning Enhances Existing Mechanisms: A Case Study on Entity Trackingcited by 149
  20. 2023Sudden Drops in the Loss: Syntax Acquisition, Phase Transitions, and Simplicity Bias in MLMscited by 124
  21. 2023The mechanistic basis of data dependence and abrupt learning in an in-context classification taskcited by 118
  22. 2023Copy Suppression: Comprehensively Understanding an Attention Headcited by 76
  23. 2023The Transient Nature of Emergent In-Context Learning in Transformerscited by 76
  24. 2023Symbol tuning improves in-context learning in language modelscited by 75
  25. 2023Understanding In-Context Learning in Transformers and LLMs by Learning to Learn Discrete Functionscited by 63
  26. 2024LLM Circuit Analyses Are Consistent Across Training and Scalecited by 63
  27. 2024LoFiT: Localized Fine-tuning on LLM Representationscited by 57
  28. 2024CausalGym: Benchmarking causal interpretability methods on linguistic taskscited by 46
  29. 2018UniMorph 2.0: Universal Morphologycited by 42
  30. 2023Language acquisition: do children and language models follow similar learning stages?cited by 41
  31. 2025The Dual-Route Model of Inductioncited by 24
  32. 2024Evaluating Morphological Compositional Generalization in Large Language Modelscited by 19
  33. 2025How do Transformers Learn Implicit Reasoning?cited by 16
  34. 2026What do Language Models Learn and When? The Implicit Curriculum Hypothesiscited by 10
  35. 2024YuLan-Mini: An Open Data-efficient Language Modelcited by 7
  36. 2025Illusion or Algorithm? Investigating Memorization, Emergence, and Symbolic Processing in In-Context Learningcited by 3
  37. 2025Task Schema and Binding: A Double Dissociation Study of In-Context Learningcited by 3
  38. 2025Localizing Task Recognition and Task Learning in In-Context Learning via Attention Head Analysiscited by 2

Built on by

Not cited yet.