Parallel Structures in Pre-training Data Yield In-Context Learning
Not on the map. Why?
Abstract (arXiv)
Pre-trained language models (LMs) are capable of in-context learning (ICL): they can adapt to a task with only a few examples given in the prompt without any parameter update. However, it is unclear where this capability comes from as there is a stark distribution shift between pre-training text and ICL prompts. In this work, we study what patterns of the pre-training data contribute to ICL. We find that LMs' ICL ability depends on textitparallel structures in the pre-training data -- pairs of phrases following similar templates in the same context window. Specifically, we detect parallel structures by checking whether training on one phrase improves prediction of the other, and conduct ablation experiments to study their effect on ICL. We show that removing parallel structures in the pre-training data reduces LMs' ICL accuracy by 51% (vs 2% from random ablation). This drop persists even when excluding common patterns such as n-gram repetitions and long-range dependency, showing the diversity and generality of parallel structures. A closer look at the detected parallel structures indicates that they cover diverse linguistic tasks and span long distances in the data.
Key facts. Cited by 26 papers in the map (data through 7 Oct 2026). Builds on 19 of its 28 references that are in the map. First posted on arXiv 19 Feb 2024.
Builds on
19 of 28 references.
References · 19
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,919
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,548
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
- 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
- 2023Principle-Driven Self-Alignment of Language Models from Scratch with Minimal Human Supervisioncited by 318
- 2023Label Words are Anchors: An Information Flow Perspective for Understanding In-Context Learningcited by 235
- 2023One Step of Gradient Descent is Provably the Optimal In-Context Learner with One Layer of Linear Self-Attentioncited by 168
- 2023Pretraining task diversity and the emergence of non-Bayesian in-context learning for regressioncited by 138
- 2023Continual Pre-Training of Large Language Models: How to (re)warm your model?cited by 135
- 2023Are Emergent Abilities in Large Language Models just In-Context Learning?cited by 109
7 more
- 2023Finding Support Examples for In-Context Learningcited by 104
- 2021Do Long-Range Language Models Actually Use Long-Range Context?cited by 92
- 2022On the Effect of Pretraining Corpora on In-context Learning by a Large-scale Language Modelcited by 78
- 2023In-context Pretraining: Language Modeling Beyond Document Boundariescited by 76
- 2023Understanding In-Context Learning from Repetitionscited by 27
- 2022C3: Continued Pretraining with Contrastive Weak Supervision for Cross Language Ad-Hoc Retrievalcited by 14
- 2021Quantifying Adaptability in Pre-trained Language Models with 500 Taskscited by 13
Built on by
Citing papers per year: 2024: 9; 2025: 12; 2026: 5.
26 papers.
Sort:
By area:
- 2024Generalization v.s. Memorization: Tracing Language Models' Capabilities Back to Pretraining Datacited by 83
- 2024Operationalizing a Threat Model for Red-Teaming Large Language Models (LLMs)cited by 44
- 2024The broader spectrum of in-context learningcited by 33
- 2025Context parroting: A simple but tough-to-beat baseline for foundation models in scientific machine learningcited by 14
- 2024Vector-ICL: In-context Learning with Continuous Vector Representationscited by 13
- 2025Not-Just-Scaling Laws: Towards a Better Understanding of the Downstream Impact of Language Model Design Decisionscited by 11
- 2025Language Models Grow Less Humanlike beyond Phase Transitioncited by 10
- 2025Do different prompting methods yield a common task representation in language models?cited by 9
- 2025Linear-Time Demonstration Selection for In-Context Learning via Gradient Estimationcited by 8
- 2026What do Language Models Learn and When? The Implicit Curriculum Hypothesiscited by 8
- 2025Just-in-time and distributed task representations in language modelscited by 7
- 2026Context Structure Reshapes the Representational Geometry of Language Modelscited by 6
14 more
- 2025Unlocking In-Context Learning for Natural Datasets Beyond Language Modellingcited by 4
- 2024From Unstructured Data to In-Context Learning: Exploring What Tasks Can Be Learned and Whencited by 3
- 2024Is In-Context Learning a Type of Error-Driven Learning? Evidence from the Inverse Frequency Effect in Structural Primingcited by 3
- 2025Discourse Heuristics For Paradoxically Moral Self-Correctioncited by 3
- 2025Toward Preference-aligned Large Language Models via Residual-based Model Steeringcited by 3
- 2024Large Language Models Might Not Care What You Are Saying: Prompt Format Beats Descriptionscited by 2
- 2024Self-correction is Not An Innate Capability in Language Modelscited by 2
- 2025How Can Mamba Learn In Context with Outliers and Generalize Provably?cited by 2
- 2025Genomic Next-Token Predictors are In-Context Learnerscited by 1
- 2024ESG Classification by Implicit Rule Learning via GPT-4cited by 0
- 2025In-Context Learning can distort the relationship between sequence likelihoods and biological fitnesscited by 0
- 2026FineInstructions: Scaling Synthetic Instructions to Pre-Training Scalecited by 0
- 2026Causal Interventions on Continuous Variables: A Case Study on Verb Bias in Steering Vectors for In-Context Learningcited by 0
- 2026Convergent Emergence of In-Context Learning Across Modalitiescited by 0
- 2026Convergent Emergence of In-Context Learning Across Modalities12 Sep 2026
- 2026Causal Interventions on Continuous Variables: A Case Study on Verb Bias in Steering Vectors for In-Context Learning28 May 2026
- 2026What do Language Models Learn and When? The Implicit Curriculum Hypothesis9 Apr 2026
- 2026Context Structure Reshapes the Representational Geometry of Language Models29 Jan 2026
- 2026FineInstructions: Scaling Synthetic Instructions to Pre-Training Scale29 Jan 2026
- 2025Genomic Next-Token Predictors are In-Context Learners16 Nov 2025
- 2025How Can Mamba Learn In Context with Outliers and Generalize Provably?1 Oct 2025
- 2025Toward Preference-aligned Large Language Models via Residual-based Model Steering28 Sep 2025
- 2025Just-in-time and distributed task representations in language models28 Aug 2025
- 2025Linear-Time Demonstration Selection for In-Context Learning via Gradient Estimation27 Aug 2025
- 2025Discourse Heuristics For Paradoxically Moral Self-Correction1 Jul 2025
- 2025Do different prompting methods yield a common task representation in language models?17 May 2025
14 more
- 2025Context parroting: A simple but tough-to-beat baseline for foundation models in scientific machine learning16 May 2025
- 2025In-Context Learning can distort the relationship between sequence likelihoods and biological fitness23 Apr 2025
- 2025Not-Just-Scaling Laws: Towards a Better Understanding of the Downstream Impact of Language Model Design Decisions5 Mar 2025
- 2025Language Models Grow Less Humanlike beyond Phase Transition26 Feb 2025
- 2025Unlocking In-Context Learning for Natural Datasets Beyond Language Modelling9 Jan 2025
- 2024The broader spectrum of in-context learning5 Dec 2024
- 2024Self-correction is Not An Innate Capability in Language Models27 Oct 2024
- 2024Vector-ICL: In-context Learning with Continuous Vector Representations8 Oct 2024
- 2024Large Language Models Might Not Care What You Are Saying: Prompt Format Beats Descriptions16 Aug 2024
- 2024Generalization v.s. Memorization: Tracing Language Models' Capabilities Back to Pretraining Data20 Jul 2024
- 2024Operationalizing a Threat Model for Red-Teaming Large Language Models (LLMs)20 Jul 2024
- 2024Is In-Context Learning a Type of Error-Driven Learning? Evidence from the Inverse Frequency Effect in Structural Priming26 Jun 2024
- 2024From Unstructured Data to In-Context Learning: Exploring What Tasks Can Be Learned and When31 May 2024
- 2024ESG Classification by Implicit Rule Learning via GPT-422 Mar 2024
- 2024Generalization v.s. Memorization: Tracing Language Models' Capabilities Back to Pretraining Datacited by 83
- 2024The broader spectrum of in-context learningcited by 33
- 2025Context parroting: A simple but tough-to-beat baseline for foundation models in scientific machine learningcited by 14
- 2024Vector-ICL: In-context Learning with Continuous Vector Representationscited by 13
- 2025Not-Just-Scaling Laws: Towards a Better Understanding of the Downstream Impact of Language Model Design Decisionscited by 11
- 2025Language Models Grow Less Humanlike beyond Phase Transitioncited by 10
- 2025Do different prompting methods yield a common task representation in language models?cited by 9
- 2025Linear-Time Demonstration Selection for In-Context Learning via Gradient Estimationcited by 8
- 2026What do Language Models Learn and When? The Implicit Curriculum Hypothesiscited by 8
- 2025Just-in-time and distributed task representations in language modelscited by 7
- 2026Context Structure Reshapes the Representational Geometry of Language Modelscited by 6
- 2025Unlocking In-Context Learning for Natural Datasets Beyond Language Modellingcited by 4
12 most cited of 22 All 22 (JSON)
- 2026Convergent Emergence of In-Context Learning Across Modalities12 Sep 2026
- 2026Causal Interventions on Continuous Variables: A Case Study on Verb Bias in Steering Vectors for In-Context Learning28 May 2026
- 2026What do Language Models Learn and When? The Implicit Curriculum Hypothesis9 Apr 2026
- 2026Context Structure Reshapes the Representational Geometry of Language Models29 Jan 2026
- 2025Genomic Next-Token Predictors are In-Context Learners16 Nov 2025
- 2025Just-in-time and distributed task representations in language models28 Aug 2025
- 2025Linear-Time Demonstration Selection for In-Context Learning via Gradient Estimation27 Aug 2025
- 2025Discourse Heuristics For Paradoxically Moral Self-Correction1 Jul 2025
- 2025Do different prompting methods yield a common task representation in language models?17 May 2025
- 2025Context parroting: A simple but tough-to-beat baseline for foundation models in scientific machine learning16 May 2025
- 2025In-Context Learning can distort the relationship between sequence likelihoods and biological fitness23 Apr 2025
- 2025Not-Just-Scaling Laws: Towards a Better Understanding of the Downstream Impact of Language Model Design Decisions5 Mar 2025
12 newest of 22 All 22 (JSON)