Understanding In-Context Learning via Supportive Pretraining Data
Not on the map. Why?
Abstract (arXiv)
In-context learning (ICL) improves language models' performance on a variety of NLP tasks by simply demonstrating a handful of examples at inference time. It is not well understood why ICL ability emerges, as the model has never been specifically trained on such demonstrations. Unlike prior work that explores implicit mechanisms behind ICL, we study ICL via investigating the pretraining data. Specifically, we first adapt an iterative, gradient-based approach to find a small subset of pretraining data that supports ICL. We observe that a continued pretraining on this small subset significantly improves the model's ICL ability, by up to 18%. We then compare the supportive subset constrastively with random subsets of pretraining data and discover: (1) The supportive pretraining data to ICL do not have a higher domain relevance to downstream tasks. (2) The supportive pretraining data have a higher mass of rarely occurring, long-tail tokens. (3) The supportive pretraining data are challenging examples where the information gain from long-range context is below average, indicating learning to incorporate difficult long-range context encourages ICL. Our work takes a first step towards understanding ICL via analyzing instance-level pretraining data. Our insights have a potential to enhance the ICL ability of language models by actively guiding the construction of pretraining data in the future.
Key facts. Cited by 41 papers in the map (data through 7 Oct 2026). Builds on 33 of its 44 references that are in the map. First posted on arXiv 26 Jun 2023.
Builds on
33 of 44 references.
References · 33
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2022Training Compute-Optimal Large Language Modelscited by 2,927
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2019Language Models as Knowledge Bases?cited by 1,922
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
21 more
- 2017Understanding Black-box Predictions via Influence Functionscited by 1,714
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
- 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 934
- 2022In-context Learning and Induction Headscited by 930
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
- 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
- 2020Estimating Training Data Influence by Tracing Gradient Descentcited by 565
- 2021MAUVE: Measuring the Gap Between Neural Text and Human Text using Divergence Frontierscited by 466
- 2023Larger language models do in-context learning differentlycited by 386
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
- 2023What In-Context Learning "Learns" In-Context: Disentangling Task Recognition and Task Learningcited by 149
- 2022Impact of Pretraining Term Frequencies on Few-Shot Reasoningcited by 142
- 2022On the Effect of Pretraining Corpora on In-context Learning by a Large-scale Language Modelcited by 78
- 2019TWEETQA: A Social Media Focused Question Answering Datasetcited by 55
- 2023Simfluence: Modeling the Influence of Individual Training Examples by Simulating Training Runscited by 52
- 2022On the Blind Spots of Model-Based Evaluation Metrics for Text Generationcited by 48
- 2023Pre-Training to Learn in Contextcited by 41
- 2022ORCA: Interpreting Prompted Language Models via Locating Supporting Data Evidence in the Ocean of Pretraining Datacited by 34
- 2022Robustness of Demonstration-based Learning Under Limited Data Scenariocited by 11
Built on by
Citing papers per year: 2023: 4; 2024: 19; 2025: 11; 2026: 7.
41 papers.
Sort:
By area:
- 2024LESS: Selecting Influential Data for Targeted Instruction Tuningcited by 514
- 2024Can large language models explore in-context?cited by 75
- 2023SILO Language Models: Isolating Legal Risk In a Nonparametric Datastorecited by 71
- 2024From Words to Numbers: Your Large Language Model Is Secretly A Capable Regressor When Given In-Context Examplescited by 55
- 2023MM-Narrator: Narrating Long-form Videos with Multimodal In-Context Learningcited by 46
- 2024Scalable Influence and Fact Tracing for Large Language Model Pretrainingcited by 40
- 2024Unveiling the Generalization Power of Fine-Tuned Large Language Modelscited by 35
- 2024SelectIT: Selective Instruction Tuning for LLMs via Uncertainty-Aware Self-Reflectioncited by 34
- 2024The broader spectrum of in-context learningcited by 33
- 2024Do Language Models Exhibit Human-like Structural Priming Effects?cited by 21
- 2023Supervised Knowledge Makes Large Language Models Better In-context Learnerscited by 20
- 2024BPO: Towards Balanced Preference Optimization between Knowledge Breadth and Depth in Alignmentcited by 20
29 more
- 2023Do pretrained Transformers Learn In-Context by Gradient Descent?cited by 18
- 2024Unlearning Traces the Influential Training Data of Language Modelscited by 18
- 2024Revisiting In-context Learning Inference Circuit in Large Language Modelscited by 16
- 2024Analyzing and Adapting Large Language Models for Few-Shot Multilingual NLU: Are We There Yet?cited by 11
- 2024Token-based Decision Criteria Are Suboptimal in In-context Learningcited by 9
- 2026Influence-Preserving Proxies for Gradient-Based Data Selection in LLM Fine-tuningcited by 9
- 2024Influential Language Data Selection via Gradient Trajectory Pursuitcited by 7
- 2025ZEUS: Zero-shot Embeddings for Unsupervised Separation of Tabular Datacited by 6
- 2025Scaling sparse feature circuit finding for in-context learningcited by 5
- 2024NoisyICL: A Little Noise in Model Parameters Calibrates In-context Learningcited by 4
- 2024One size doesn't fit all: Predicting the Number of Examples for In-Context Learningcited by 4
- 2025Unlocking In-Context Learning for Natural Datasets Beyond Language Modellingcited by 4
- 2026Detecting and Suppressing Reward Hacking with Gradient Fingerprintscited by 4
- 2026OpenRFM: Dissecting Relational In-Context Learningcited by 4
- 2024From Unstructured Data to In-Context Learning: Exploring What Tasks Can Be Learned and Whencited by 3
- 2024No Size Fits All: The Perils and Pitfalls of Leveraging LLMs Vary with Company Sizecited by 3
- 2024Identifying and Analyzing Performance-Critical Tokens in Large Language Modelscited by 2
- 2025StaICC: Standardized Evaluation for Classification Task in In-context Learningcited by 2
- 2025Tree of Preferences for Diversified Recommendationcited by 2
- 2025Metareasoning constraints couple narratives, affect and cognitioncited by 1
- 2025ProDS: Preference-oriented Data Selection for Instruction Tuningcited by 1
- 2025One Period to Rule Them All: Identifying Critical Learning Periods in Deep Networkscited by 1
- 2025Learning-to-Context Slope: Evaluating In-Context Learning Effectiveness Beyond Performance Illusionscited by 1
- 2025InSQuAD: In-Context Learning for Efficient Retrieval via Submodular Mutual Information to Enforce Quality and Diversitycited by 1
- 2026Why Multimodal In-Context Learning Lags Behind? Unveiling the Inner Mechanisms and Bottleneckscited by 1
- 2025Rewriting History: A Recipe for Interventional Analyses to Study Data Effects on Model Behaviorcited by 0
- 2026TRUE: A Trustworthy Unified Explanation Framework for Large Language Model Reasoningcited by 0
- 2026Combining Retrieval-Augmented Text Generation with LLMs for Reading Content Recommendationscited by 0
- 2026Shortcut Before Circuit: Document Statistics Time In-Context Conflict Resolutioncited by 0
- 2026Shortcut Before Circuit: Document Statistics Time In-Context Conflict Resolution25 Aug 2026
- 2026Combining Retrieval-Augmented Text Generation with LLMs for Reading Content Recommendations12 Jun 2026
- 2026OpenRFM: Dissecting Relational In-Context Learning3 Jun 2026
- 2026Detecting and Suppressing Reward Hacking with Gradient Fingerprints17 Apr 2026
- 2026Why Multimodal In-Context Learning Lags Behind? Unveiling the Inner Mechanisms and Bottlenecks15 Apr 2026
- 2026TRUE: A Trustworthy Unified Explanation Framework for Large Language Model Reasoning21 Feb 2026
- 2026Influence-Preserving Proxies for Gradient-Based Data Selection in LLM Fine-tuning19 Feb 2026
- 2025Tree of Preferences for Diversified Recommendation24 Dec 2025
- 2025Rewriting History: A Recipe for Interventional Analyses to Study Data Effects on Model Behavior16 Oct 2025
- 2025InSQuAD: In-Context Learning for Efficient Retrieval via Submodular Mutual Information to Enforce Quality and Diversity28 Aug 2025
- 2025Learning-to-Context Slope: Evaluating In-Context Learning Effectiveness Beyond Performance Illusions29 Jun 2025
- 2025One Period to Rule Them All: Identifying Critical Learning Periods in Deep Networks19 Jun 2025
29 more
- 2025ProDS: Preference-oriented Data Selection for Instruction Tuning19 May 2025
- 2025ZEUS: Zero-shot Embeddings for Unsupervised Separation of Tabular Data15 May 2025
- 2025Scaling sparse feature circuit finding for in-context learning18 Apr 2025
- 2025Metareasoning constraints couple narratives, affect and cognition13 Feb 2025
- 2025StaICC: Standardized Evaluation for Classification Task in In-context Learning27 Jan 2025
- 2025Unlocking In-Context Learning for Natural Datasets Beyond Language Modelling9 Jan 2025
- 2024The broader spectrum of in-context learning5 Dec 2024
- 2024BPO: Towards Balanced Preference Optimization between Knowledge Breadth and Depth in Alignment16 Nov 2024
- 2024Scalable Influence and Fact Tracing for Large Language Model Pretraining22 Oct 2024
- 2024Influential Language Data Selection via Gradient Trajectory Pursuit22 Oct 2024
- 2024Revisiting In-context Learning Inference Circuit in Large Language Models6 Oct 2024
- 2024No Size Fits All: The Perils and Pitfalls of Leveraging LLMs Vary with Company Size21 Jul 2024
- 2024Token-based Decision Criteria Are Suboptimal in In-context Learning24 Jun 2024
- 2024Do Language Models Exhibit Human-like Structural Priming Effects?7 Jun 2024
- 2024From Unstructured Data to In-Context Learning: Exploring What Tasks Can Be Learned and When31 May 2024
- 2024From Words to Numbers: Your Large Language Model Is Secretly A Capable Regressor When Given In-Context Examples11 Apr 2024
- 2024Can large language models explore in-context?22 Mar 2024
- 2024Unveiling the Generalization Power of Fine-Tuned Large Language Models14 Mar 2024
- 2024One size doesn't fit all: Predicting the Number of Examples for In-Context Learning11 Mar 2024
- 2024Analyzing and Adapting Large Language Models for Few-Shot Multilingual NLU: Are We There Yet?4 Mar 2024
- 2024SelectIT: Selective Instruction Tuning for LLMs via Uncertainty-Aware Self-Reflection26 Feb 2024
- 2024NoisyICL: A Little Noise in Model Parameters Calibrates In-context Learning8 Feb 2024
- 2024LESS: Selecting Influential Data for Targeted Instruction Tuning6 Feb 2024
- 2024Unlearning Traces the Influential Training Data of Language Models26 Jan 2024
- 2024Identifying and Analyzing Performance-Critical Tokens in Large Language Models20 Jan 2024
- 2023Supervised Knowledge Makes Large Language Models Better In-context Learners26 Dec 2023
- 2023MM-Narrator: Narrating Long-form Videos with Multimodal In-Context Learning29 Nov 2023
- 2023Do pretrained Transformers Learn In-Context by Gradient Descent?12 Oct 2023
- 2023SILO Language Models: Isolating Legal Risk In a Nonparametric Datastore8 Aug 2023
- 2024LESS: Selecting Influential Data for Targeted Instruction Tuningcited by 514
- 2024Can large language models explore in-context?cited by 75
- 2023SILO Language Models: Isolating Legal Risk In a Nonparametric Datastorecited by 71
- 2024From Words to Numbers: Your Large Language Model Is Secretly A Capable Regressor When Given In-Context Examplescited by 55
- 2023MM-Narrator: Narrating Long-form Videos with Multimodal In-Context Learningcited by 46
- 2024Scalable Influence and Fact Tracing for Large Language Model Pretrainingcited by 40
- 2024Unveiling the Generalization Power of Fine-Tuned Large Language Modelscited by 35
- 2024SelectIT: Selective Instruction Tuning for LLMs via Uncertainty-Aware Self-Reflectioncited by 34
- 2024The broader spectrum of in-context learningcited by 33
- 2024Do Language Models Exhibit Human-like Structural Priming Effects?cited by 21
- 2023Supervised Knowledge Makes Large Language Models Better In-context Learnerscited by 20
- 2023Do pretrained Transformers Learn In-Context by Gradient Descent?cited by 18
12 most cited of 36 All 36 (JSON)
- 2026Shortcut Before Circuit: Document Statistics Time In-Context Conflict Resolution25 Aug 2026
- 2026OpenRFM: Dissecting Relational In-Context Learning3 Jun 2026
- 2026Why Multimodal In-Context Learning Lags Behind? Unveiling the Inner Mechanisms and Bottlenecks15 Apr 2026
- 2026Influence-Preserving Proxies for Gradient-Based Data Selection in LLM Fine-tuning19 Feb 2026
- 2025Tree of Preferences for Diversified Recommendation24 Dec 2025
- 2025Rewriting History: A Recipe for Interventional Analyses to Study Data Effects on Model Behavior16 Oct 2025
- 2025InSQuAD: In-Context Learning for Efficient Retrieval via Submodular Mutual Information to Enforce Quality and Diversity28 Aug 2025
- 2025Learning-to-Context Slope: Evaluating In-Context Learning Effectiveness Beyond Performance Illusions29 Jun 2025
- 2025One Period to Rule Them All: Identifying Critical Learning Periods in Deep Networks19 Jun 2025
- 2025ProDS: Preference-oriented Data Selection for Instruction Tuning19 May 2025
- 2025ZEUS: Zero-shot Embeddings for Unsupervised Separation of Tabular Data15 May 2025
- 2025Scaling sparse feature circuit finding for in-context learning18 Apr 2025
12 newest of 36 All 36 (JSON)