In-Context Learning Beyond Copying: A Training-Time Analysis of Abstractive ICL
Organizations: Northeastern University · University of Mannheim · Boston University
Abstract
The sudden emergence of induction circuits and the ability to perform in-context copying in LLMs coincides with a sharp drop in training loss over a short span of the training process. This co-occurrence has been cited as evidence that it marks the point at which a wide range of in-context learning (ICL) capabilities begin to emerge. To analyze the training dynamics of few-shot abstractive ICL capabilities (i.e., tasks where the answer is not contained in the input context), we propose Hapax, a training regime that omits the loss contribution of tokens predictable by the induction circuit to control training pressure for copying. Using this intervention, we find that abstractive ICL capabilities can still emerge, despite a substantial reduction in inductive copying and the absence of the characteristic phase changes observed during Vanilla training. Analysis of attention heads shows that Hapax-trained models develop fewer and weaker induction heads. Together, these results suggest that the developmental link between emergent phenomena associated with induction circuits and the emergence of abstractive ICL is weaker than previously hypothesized. More broadly, Hapax provides a controlled framework for analyzing how copying-related training signals shape the development of in-context learning.
Figures & tables
| Vanilla vs. Hapax | ||||
| Task Category | Vanilla | Hapax | Sig. | Vanilla |
| Algorithmic ( ) | ||||
| Standard | 28.6 0.9 | 27.3 0.8 | 5 | 1/5 (20%) |
| Target excl. | 25.7 0.8 | 31.7 0.9 | 8 | 7/8 (88%) |
| Linguistic ( ) | ||||
| Standard | 30.3 2.2 | 39.8 1.9 | 4 | 4/4 (100%) |
Appendix figures & tables57 assets
Supplementary material from the paper’s appendix.
Appendix
| Hapax | Thresh- Hapax | |||||||
| Task Category | Van. | Hapax | Sig. | Van. | Van. | Thresh | Sig. | Van. |
| Algorithmic ( ) | ||||||||
| Standard | 28.6 0.9 | 27.3 0.8 | 5 | 1/5 (20%) | 28.6 0.9 | 15.3 0.8 | 7 | 0/7 (0%) |
| Target excl. | 25.7 0.8 | 31.7 0.9 | 8 | 7/8 (88%) | 25.7 0.8 | 19.1 0.8 | 7 | 3/7 (43%) |
| Linguistic ( ) | ||||||||
| Standard | 30.3 2.2 | 39.8 1.9 | 4 | 4/4 (100%) | 30.3 2.2 | 18.3 2.0 | 4 | 2/4 (50%) |
| Task | Vanilla (%) | Hapax (%) | Task | Vanilla (%) | Hapax (%) |
|---|---|---|---|---|---|
| AG News | 32.7 1.3 † | 5.6 0.6 | Antonym | 0.7 0.3 | 2.2 0.6 † |
| Capitalize (Full Word) | 78.2 2.8 † | 59.0 3.4 | Capitalize First Letter | 37.1 3.3 | 66.8 3.2 † |
| Capitalize Last Letter | 9.3 2.0 † | 3.8 1.3 | Capitalize Second Letter | 11.9 2.3 † | 2.4 1.1 |
| Chinese→English | 4.1 1.2 | 6.8 1.6 † | CommonsenseQA | 20.4 1.1 † | 5.2 0.6 |
| Country-Capital | 29.6 6.5 | 42.3 7.0 † | Country-Currency | 5.4 4.6 | 5.4 4.6 |
| French→English | 11.0 2.0 | 11.9 2.0 | Indonesian→English | 1.0 0.6 | 0.6 0.5 |
| Task | Vanilla (%) | Hapax (%) | Task | Vanilla (%) | Hapax (%) |
|---|---|---|---|---|---|
| Adjective V Verb 3 | 58.8 3.1 † | 41.7 3.1 | Adjective V Verb 5 | 52.7 3.1 † | 31.2 2.9 |
| Alphabetically Last 5 | 18.6 2.4 | 15.5 2.2 | Animal V Object 3 | 49.4 3.1 † | 26.0 2.7 |
| Animal V Object 5 | 37.1 3.0 † | 17.5 2.4 | Choose First Of 3 | 94.9 1.4 † | 19.1 2.4 |
| Choose First Of 5 | 95.6 1.3 † | 17.1 2.3 | Alphabetically First 3 | 35.5 3.0 † | 26.8 2.7 |
| Alphabetically First 5 | 19.9 2.5 † | 13.8 2.1 | Alphabetically Last 3 | 32.6 2.9 † | 24.4 2.7 |
| Choose Middle Of 5 | 25.8 2.7 † | 13.4 2.1 | Color V Animal 3 | 63.4 3.0 | 60.2 3.0 |
| Task | Vanilla (%) | Hapax Thresh (%) | Task | Vanilla (%) | Hapax Thresh (%) |
|---|---|---|---|---|---|
| AG News | 32.7 1.3 † | 1.1 0.3 | Antonym | 0.7 0.3 | 7.3 1.0 † |
| Capitalize (Full Word) | 78.2 2.8 † | 35.9 3.3 | Capitalize First Letter | 37.1 3.3 † | 24.0 2.9 |
| Capitalize Last Letter | 9.3 2.0 † | 4.1 1.4 | Capitalize Second Letter | 11.9 2.3 † | 3.7 1.3 |
| Chinese→English | 4.1 1.2 | 10.1 1.9 † | CommonsenseQA | 20.4 1.1 † | 0.0 0.0 |
| Country-Capital | 29.6 6.5 | 29.1 6.5 | Country-Currency | 5.4 4.6 | 2.2 2.5 |
| French→English | 11.0 2.0 | 14.5 2.2 † | Indonesian→English | 1.0 0.6 | 1.0 0.6 |
| Task | Vanilla (%) | Hapax Thresh (%) | Task | Vanilla (%) | Hapax Thresh (%) |
|---|---|---|---|---|---|
| Adjective V Verb 3 | 58.8 3.1 | 56.1 3.1 | Adjective V Verb 5 | 52.7 3.1 † | 39.4 3.0 |
| Alphabetically Last 5 | 18.6 2.4 † | 13.0 2.1 | Animal V Object 3 | 49.4 3.1 † | 27.3 2.8 |
| Animal V Object 5 | 37.1 3.0 † | 16.3 2.3 | Choose First Of 3 | 94.9 1.4 † | 30.7 2.9 |
| Choose First Of 5 | 95.6 1.3 † | 27.0 2.8 | Alphabetically First 3 | 35.5 3.0 † | 28.1 2.8 |
| Alphabetically First 5 | 19.9 2.5 † | 14.5 2.2 | Alphabetically Last 3 | 32.6 2.9 † | 24.5 2.7 |
| Choose Middle Of 5 | 25.8 2.7 † | 7.4 1.6 | Color V Animal 3 | 63.4 3.0 † | 18.6 2.4 |
| Task | Vanilla (%) | Hapax (%) | Task | Vanilla (%) | Hapax (%) |
|---|---|---|---|---|---|
| AG News | 0.3 0.1 | 7.4 0.7 † | Antonym | 0.6 0.3 | 2.5 0.6 † |
| Capitalize (Full Word) | 78.2 2.8 † | 59.0 3.4 | Capitalize First Letter | 36.5 3.3 | 74.0 3.0 † |
| Capitalize Last Letter | 3.1 1.2 | 6.3 1.7 † | Capitalize Second Letter | 0.3 0.3 | 3.2 1.2 † |
| Chinese→English | 4.1 1.2 | 6.8 1.6 † | CommonsenseQA | 11.2 0.9 † | 10.0 0.8 |
| Country-Capital | 30.7 6.6 | 42.3 7.0 † | Country-Currency | 5.4 4.6 | 8.6 5.7 |
| French→English | 11.0 2.0 | 11.9 2.0 | Indonesian→English | 1.0 0.6 | 0.6 0.5 |
| Task | Vanilla (%) | Hapax Thresh (%) | Task | Vanilla (%) | Hapax Thresh (%) |
|---|---|---|---|---|---|
| AG News | 0.3 0.1 | 3.4 0.5 † | Antonym | 0.6 0.3 | 6.9 1.0 † |
| Capitalize (Full Word) | 78.2 2.8 † | 35.9 3.3 | Capitalize First Letter | 36.5 3.3 † | 26.9 3.0 |
| Capitalize Last Letter | 3.1 1.2 | 8.0 1.9 † | Capitalize Second Letter | 0.3 0.3 | 7.8 1.9 † |
| Chinese→English | 4.1 1.2 | 10.1 1.9 † | CommonsenseQA | 11.2 0.9 † | 0.0 0.0 |
| Country-Capital | 30.7 6.6 | 29.1 6.5 | Country-Currency | 5.4 4.6 | 3.2 3.4 |
| French→English | 11.0 2.0 | 14.5 2.2 † | Indonesian→English | 1.0 0.6 | 1.0 0.6 |
| Task family | Tasks included | Description |
|---|---|---|
| Algorithmic (8) | Capitalize (Full Word), Capitalize First Letter, Capitalize Last Letter, Capitalize Second Letter, Lowercase First Letter, Lowercase Last Letter, Next Capital Letter, Word Length | Tasks solvable by a character-level rule, such as capitalization, character selection, or counting. |
| Linguistic (4) | Antonym, Present-Past, Singular-Plural, Synonym | Tasks that require lexical or morphological knowledge. |
| Knowledge (11) | Country-Capital, Country-Currency, Landmark-Country, National Parks, Next Item, Park-Country, Person-Instrument, Person-Occupation, Person-Sport, Previous Item, Product-Company | Tasks that require parametric world knowledge. |
| Translation (8) | Chinese English, French English, Indonesian English, Italian English, Japanese English, Polish English, Portuguese English, Spanish English | Tasks where an input word is mapped from a source language to its target-language equivalent. |
| Sentence-level (3) | AG News, CommonsenseQA, Sentiment | Classification tasks over full passages. |
| Task | Pool | Used | Task | Pool | Used |
|---|---|---|---|---|---|
| FV abstractive ICL | |||||
| AG News | 7,600 | 5,000 | Antonym | 2,398 | 2,398 |
| Capitalize (Full Word) | 813 | 813 | Capitalize First Letter | 813 | 813 |
| Capitalize Last Letter | 814 | 814 | Capitalize Second Letter | 787 | 787 |
| Chinese English | 981 | 981 | CommonsenseQA | 10,962 | 5,000 |
| Country-Capital | 197 | 189 | Country-Currency | 197 | 93 |
| Vanilla vs. Hapax (2.8B) | ||||
| Task Category | Van. | Hapax | Sig. | Van. |
| Algorithmic ( ) | ||||
| Standard | 25.1 0.9 | 30.0 0.8 | 6 | 3/6 (50%) |
| Target excl. | 23.2 0.8 | 34.8 0.8 | 7 | 7/7 (100%) |
| Linguistic ( ) | ||||
| Standard | 36.1 2.1 | 41.8 1.9 | 3 | 3/3 (100%) |
| Task | Vanilla (%) | Hapax (%) | Task | Vanilla (%) | Hapax (%) |
|---|---|---|---|---|---|
| AG News | 42.0 1.4 † | 23.7 1.2 | Antonym | 2.3 0.6 | 7.9 1.1 † |
| Capitalize (Full Word) | 72.8 3.1 | 81.3 2.7 † | Capitalize First Letter | 40.3 3.4 | 60.8 3.4 † |
| Capitalize Last Letter | 7.2 1.8 † | 4.8 1.5 | Capitalize Second Letter | 8.3 1.9 † | 4.1 1.4 |
| Chinese→English | 11.0 2.0 | 14.1 2.2 † | CommonsenseQA | 19.9 1.1 † | 17.0 1.0 |
| Country-Capital | 48.7 7.1 | 61.4 6.9 † | Country-Currency | 12.9 6.8 | 21.5 8.4 |
| French→English | 19.2 2.5 | 25.1 2.7 † | Indonesian→English | 1.7 0.8 | 2.3 0.9 |
| Task | Vanilla (%) | Hapax (%) | Task | Vanilla (%) | Hapax (%) |
|---|---|---|---|---|---|
| AG News | 3.4 0.5 | 35.9 1.3 † | Antonym | 2.4 0.6 | 8.2 1.1 † |
| Capitalize (Full Word) | 72.8 3.1 | 81.3 2.7 † | Capitalize First Letter | 35.9 3.3 | 71.6 3.1 † |
| Capitalize Last Letter | 4.9 1.5 | 8.1 1.9 † | Capitalize Second Letter | 1.9 1.0 | 6.4 1.7 † |
| Chinese→English | 11.0 2.0 | 14.1 2.2 † | CommonsenseQA | 14.0 1.0 | 44.3 1.4 † |
| Country-Capital | 48.7 7.1 | 61.4 6.9 † | Country-Currency | 14.0 7.0 | 23.7 8.6 |
| French→English | 19.2 2.5 | 25.1 2.7 † | Indonesian→English | 1.7 0.8 | 2.3 0.9 |
| Task | Vanilla (%) | Hapax (%) | Task | Vanilla (%) | Hapax (%) |
|---|---|---|---|---|---|
| Color vs Animal (3) | 56.6 3.1 † | 48.1 3.1 | CoNLL: Location | 48.0 1.5 † | 35.1 1.4 |
| Concept vs Object (3) | 76.7 2.6 † | 55.4 3.1 | CoNLL: Person | 58.3 1.8 † | 12.1 1.2 |
| Choose Middle of 3 | 40.8 3.0 † | 25.7 2.7 | Alphabetically Last (3) | 31.5 2.9 † | 25.0 2.7 |
| Alphabetically Last (5) | 19.2 2.4 † | 14.9 2.2 | Object vs Concept (3) | 58.0 3.1 † | 37.6 3.0 |
| Object vs Concept (5) | 57.6 3.1 † | 31.5 2.9 | Fruit vs Animal (5) | 22.1 2.6 † | 7.8 1.7 |
| Animal vs Object (3) | 50.5 3.1 † | 34.8 3.0 | Verb vs Adjective (3) | 77.7 2.6 † | 64.4 3.0 |
In-Context Learning
In-context learning studies how models adapt to new tasks from examples or instructions supplied at inference time, without changing their weights.
See all 404 papers