Pretraining Data Mixtures Enable Narrow Model Selection Capabilities in Transformer Models
Not on the map. Why?
Abstract (arXiv)
Transformer models, notably large language models (LLMs), have the remarkable ability to perform in-context learning (ICL) -- to perform new tasks when prompted with unseen input-output examples without any explicit model training. In this work, we study how effectively transformers can bridge between their pretraining data mixture, comprised of multiple distinct task families, to identify and learn new tasks in-context which are both inside and outside the pretraining distribution. Building on previous work, we investigate this question in a controlled setting, where we study transformer models trained on sequences of (x, f(x)) pairs rather than natural language. Our empirical results show transformers demonstrate near-optimal unsupervised model selection capabilities, in their ability to first in-context identify different task families and in-context learn within them when the task families are well-represented in their pretraining data. However when presented with tasks or functions which are out-of-domain of their pretraining data, we demonstrate various failure modes of transformers and degradation of their generalization for even simple extrapolation tasks. Together our results highlight that the impressive ICL abilities of high-capacity sequence models may be more closely tied to the coverage of their pretraining data mixtures than inductive biases that create fundamental generalization capabilities.
Key facts. Cited by 45 papers in the map (data through 7 Oct 2026). Builds on 6 of its 7 references that are in the map. First posted on arXiv 1 Nov 2023.
Builds on
6 of 7 references.
References · 6
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 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
- 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 220
- 2023Pretraining task diversity and the emergence of non-Bayesian in-context learning for regressioncited by 138
Built on by
Citing papers per year: 2023: 2; 2024: 19; 2025: 15; 2026: 9.
45 papers.
Sort:
By area:
- 2024Functional Benchmarks for Robust Evaluation of Reasoning Performance, and the Reasoning Gapcited by 79
- 2025CausalPFN: Amortized Causal Effect Estimation via In-Context Learningcited by 43
- 2024Compositional Generative Modeling: A Single Model is Not All You Needcited by 41
- 2025Emergent Abilities in Large Language Models: A Surveycited by 34
- 2024Linear Transformers are Versatile In-Context Learnerscited by 28
- 2023Competition-Level Problems are Effective LLM Evaluatorscited by 25
- 2024Prompting a Pretrained Transformer Can Be a Universal Approximatorcited by 25
- 2024Astraios: Parameter-Efficient Instruction Tuning Code Large Language Modelscited by 23
- 2024Can In-context Learning Really Generalize to Out-of-distribution Tasks?cited by 23
- 2024ChatGPT as Research Scientist: Probing GPT's Capabilities as a Research Librarian, Research Ethicist, Data Generator and Data Predictorcited by 21
- 2023Assessing Logical Puzzle Solving in Large Language Models: Insights from a Minesweeper Case Studycited by 14
- 2025When can in-context learning generalize out of task distribution?cited by 13
33 more
- 2024A Survey to Recent Progress Towards Understanding In-Context Learningcited by 12
- 2024Large Language Models for Social Networks: Applications, Challenges, and Solutionscited by 11
- 2024Scalable Data Ablation Approximations for Language Models through Modular Training and Mergingcited by 11
- 2025Train Once, Reuse Everywhere: Generalizable Implicit In-Context Learning by Routing Attentioncited by 8
- 2025Selective Induction Heads: How Transformers Select Causal Structures In Contextcited by 7
- 2024Bayes' Power for Explaining In-Context Learning Generalizationscited by 6
- 2024Adaptive Cross-lingual Text Classification through In-Context One-Shot Demonstrationscited by 5
- 2024M2QA: Multi-domain Multilingual Question Answeringcited by 5
- 2025Scaling sparse feature circuit finding for in-context learningcited by 5
- 2025Out-of-Distribution Generalization of In-Context Learning: A Low-Dimensional Subspace Perspectivecited by 5
- 2026Dissecting Multimodal In-Context Learning: Modality Asymmetries and Circuit Dynamics in modern Transformerscited by 5
- 2024From Unstructured Data to In-Context Learning: Exploring What Tasks Can Be Learned and Whencited by 3
- 2024An evaluation of LLM code generation capabilities through graded exercisescited by 3
- 2025Beyond Scaling: Measuring and Predicting the Upper Bound of Knowledge Retention in Language Model Pre-Trainingcited by 3
- 2025Understanding the Generalization of In-Context Learning in Transformers: An Empirical Studycited by 3
- 2024How does Multi-Task Training Affect Transformer In-Context Capabilities? Investigations with Function Classescited by 2
- 2024In-context Learning in Presence of Spurious Correlationscited by 2
- 2025On Theoretical Interpretations of Concept-Based In-Context Learningcited by 2
- 2024Can Large Language Models Create New Knowledge for Spatial Reasoning Tasks?cited by 1
- 2025Genomic Next-Token Predictors are In-Context Learnerscited by 1
- 2026Transformers Learn Latent Mixture Models In-Context via Mirror Descentcited by 1
- 2024How to Measure the Intelligence of Large Language Models?cited by 0
- 2025Meta-Learning Approaches for Speaker-Dependent Voice Fatigue Modelscited by 0
- 2025What Neuroscience Can Teach AI About Learning in Continuously Changing Environmentscited by 0
- 2025Vibe Learning: Education in the age of AIcited by 0
- 2025Batch Transformer Architecture: Case of Synthetic Image Generation for Emotion Expression Facial Recognitioncited by 0
- 2026FineInstructions: Scaling Synthetic Instructions to Pre-Training Scalecited by 0
- 2026Reconciling In-Context and In-Weight Learning via Dual Representation Space Encodingcited by 0
- 2026Symmetry Reveals Layerwise Dynamics: How Transformers Perform In-Context Classificationcited by 0
- 2026The Effect of Training Task Diversity on In-Context Learning through the Lens of Low-Dimensional Subspacescited by 0
- 2026Can In-Context Learning Support Intrinsic Curiosity?cited by 0
- 2026Induction Heads Interpolate N-Gramscited by 0
- 2026Convergent Emergence of In-Context Learning Across Modalitiescited by 0
- 2026Convergent Emergence of In-Context Learning Across Modalities12 Sep 2026
- 2026Induction Heads Interpolate N-Grams2 Jul 2026
- 2026Can In-Context Learning Support Intrinsic Curiosity?17 Jun 2026
- 2026The Effect of Training Task Diversity on In-Context Learning through the Lens of Low-Dimensional Subspaces5 Jun 2026
- 2026Symmetry Reveals Layerwise Dynamics: How Transformers Perform In-Context Classification13 Apr 2026
- 2026Transformers Learn Latent Mixture Models In-Context via Mirror Descent12 Apr 2026
- 2026Reconciling In-Context and In-Weight Learning via Dual Representation Space Encoding13 Mar 2026
- 2026FineInstructions: Scaling Synthetic Instructions to Pre-Training Scale29 Jan 2026
- 2026Dissecting Multimodal In-Context Learning: Modality Asymmetries and Circuit Dynamics in modern Transformers28 Jan 2026
- 2025Genomic Next-Token Predictors are In-Context Learners16 Nov 2025
- 2025Batch Transformer Architecture: Case of Synthetic Image Generation for Emotion Expression Facial Recognition13 Nov 2025
- 2025Vibe Learning: Education in the age of AI3 Nov 2025
33 more
- 2025Train Once, Reuse Everywhere: Generalizable Implicit In-Context Learning by Routing Attention26 Sep 2025
- 2025On Theoretical Interpretations of Concept-Based In-Context Learning25 Sep 2025
- 2025Selective Induction Heads: How Transformers Select Causal Structures In Context9 Sep 2025
- 2025What Neuroscience Can Teach AI About Learning in Continuously Changing Environments2 Jul 2025
- 2025CausalPFN: Amortized Causal Effect Estimation via In-Context Learning9 Jun 2025
- 2025When can in-context learning generalize out of task distribution?5 Jun 2025
- 2025Meta-Learning Approaches for Speaker-Dependent Voice Fatigue Models29 May 2025
- 2025Out-of-Distribution Generalization of In-Context Learning: A Low-Dimensional Subspace Perspective20 May 2025
- 2025Scaling sparse feature circuit finding for in-context learning18 Apr 2025
- 2025Understanding the Generalization of In-Context Learning in Transformers: An Empirical Study19 Mar 2025
- 2025Emergent Abilities in Large Language Models: A Survey28 Feb 2025
- 2025Beyond Scaling: Measuring and Predicting the Upper Bound of Knowledge Retention in Language Model Pre-Training6 Feb 2025
- 2024Scalable Data Ablation Approximations for Language Models through Modular Training and Merging21 Oct 2024
- 2024Can In-context Learning Really Generalize to Out-of-distribution Tasks?13 Oct 2024
- 2024An evaluation of LLM code generation capabilities through graded exercises6 Oct 2024
- 2024In-context Learning in Presence of Spurious Correlations4 Oct 2024
- 2024Bayes' Power for Explaining In-Context Learning Generalizations2 Oct 2024
- 2024How to Measure the Intelligence of Large Language Models?30 Jul 2024
- 2024M2QA: Multi-domain Multilingual Question Answering1 Jul 2024
- 2024ChatGPT as Research Scientist: Probing GPT's Capabilities as a Research Librarian, Research Ethicist, Data Generator and Data Predictor20 Jun 2024
- 2024From Unstructured Data to In-Context Learning: Exploring What Tasks Can Be Learned and When31 May 2024
- 2024Can Large Language Models Create New Knowledge for Spatial Reasoning Tasks?23 May 2024
- 2024How does Multi-Task Training Affect Transformer In-Context Capabilities? Investigations with Function Classes4 Apr 2024
- 2024Adaptive Cross-lingual Text Classification through In-Context One-Shot Demonstrations3 Apr 2024
- 2024Functional Benchmarks for Robust Evaluation of Reasoning Performance, and the Reasoning Gap29 Feb 2024
- 2024Prompting a Pretrained Transformer Can Be a Universal Approximator22 Feb 2024
- 2024Linear Transformers are Versatile In-Context Learners21 Feb 2024
- 2024A Survey to Recent Progress Towards Understanding In-Context Learning3 Feb 2024
- 2024Compositional Generative Modeling: A Single Model is Not All You Need2 Feb 2024
- 2024Large Language Models for Social Networks: Applications, Challenges, and Solutions4 Jan 2024
- 2024Astraios: Parameter-Efficient Instruction Tuning Code Large Language Models1 Jan 2024
- 2023Competition-Level Problems are Effective LLM Evaluators4 Dec 2023
- 2023Assessing Logical Puzzle Solving in Large Language Models: Insights from a Minesweeper Case Study13 Nov 2023
- 2026Can In-Context Learning Support Intrinsic Curiosity?cited by 0
- 2026Can In-Context Learning Support Intrinsic Curiosity?17 Jun 2026
- 2025CausalPFN: Amortized Causal Effect Estimation via In-Context Learningcited by 43
- 2024Compositional Generative Modeling: A Single Model is Not All You Needcited by 41
- 2025Emergent Abilities in Large Language Models: A Surveycited by 34
- 2024Linear Transformers are Versatile In-Context Learnerscited by 28
- 2024Prompting a Pretrained Transformer Can Be a Universal Approximatorcited by 25
- 2024Astraios: Parameter-Efficient Instruction Tuning Code Large Language Modelscited by 23
- 2024Can In-context Learning Really Generalize to Out-of-distribution Tasks?cited by 23
- 2024ChatGPT as Research Scientist: Probing GPT's Capabilities as a Research Librarian, Research Ethicist, Data Generator and Data Predictorcited by 21
- 2023Assessing Logical Puzzle Solving in Large Language Models: Insights from a Minesweeper Case Studycited by 14
- 2025When can in-context learning generalize out of task distribution?cited by 13
- 2024A Survey to Recent Progress Towards Understanding In-Context Learningcited by 12
- 2024Large Language Models for Social Networks: Applications, Challenges, and Solutionscited by 11
12 most cited of 39 All 39 (JSON)
- 2026Convergent Emergence of In-Context Learning Across Modalities12 Sep 2026
- 2026Induction Heads Interpolate N-Grams2 Jul 2026
- 2026The Effect of Training Task Diversity on In-Context Learning through the Lens of Low-Dimensional Subspaces5 Jun 2026
- 2026Symmetry Reveals Layerwise Dynamics: How Transformers Perform In-Context Classification13 Apr 2026
- 2026Transformers Learn Latent Mixture Models In-Context via Mirror Descent12 Apr 2026
- 2026Reconciling In-Context and In-Weight Learning via Dual Representation Space Encoding13 Mar 2026
- 2025Genomic Next-Token Predictors are In-Context Learners16 Nov 2025
- 2025Batch Transformer Architecture: Case of Synthetic Image Generation for Emotion Expression Facial Recognition13 Nov 2025
- 2025Vibe Learning: Education in the age of AI3 Nov 2025
- 2025Train Once, Reuse Everywhere: Generalizable Implicit In-Context Learning by Routing Attention26 Sep 2025
- 2025On Theoretical Interpretations of Concept-Based In-Context Learning25 Sep 2025
- 2025Selective Induction Heads: How Transformers Select Causal Structures In Context9 Sep 2025
12 newest of 39 All 39 (JSON)