The Learnability of In-Context Learning
Not on the map. Why?
Abstract (arXiv)
In-context learning is a surprising and important phenomenon that emerged when modern language models were scaled to billions of learned parameters. Without modifying a large language model's weights, it can be tuned to perform various downstream natural language tasks simply by including concatenated training examples of these tasks in its input. Though disruptive for many practical applications of large language models, this emergent learning paradigm is not well understood from a theoretical perspective. In this paper, we propose a first-of-its-kind PAC based framework for in-context learnability, and use it to provide the first finite sample complexity results for the in-context learning setup. Our framework includes an initial pretraining phase, which fits a function to the pretraining distribution, and then a second in-context learning phase, which keeps this function constant and concatenates training examples of the downstream task in its input. We use our framework in order to prove that, under mild assumptions, when the pretraining distribution is a mixture of latent tasks (a model often considered for natural language pretraining), these tasks can be efficiently learned via in-context learning, even though the model's weights are unchanged and the input significantly diverges from the pretraining distribution. Our theoretical analysis reveals that in this setting, in-context learning is more about identifying the task than about learning it, a result which is in line with a series of recent empirical findings. We hope that the in-context learnability framework presented in this paper will facilitate future progress towards a deeper understanding of this important new learning paradigm.
Key facts. Cited by 126 papers in the map (data through 7 Oct 2026). Builds on 26 of its 40 references that are in the map. First posted on arXiv 14 Mar 2023.
Builds on
26 of 40 references.
References · 26
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
- 2022Emergent Abilities of Large Language Modelscited by 2,483
- 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,462
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
- 2022In-context Learning and Induction Headscited by 930
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
14 more
- 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
- 2023Larger language models do in-context learning differentlycited by 386
- 2021Do Prompt-Based Models Really Understand the Meaning of their Prompts?cited by 324
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
- 2022Can language models learn from explanations in context?cited by 248
- 2018Colorless green recurrent networks dream hierarchicallycited by 210
- 2022In-context Reinforcement Learning with Algorithm Distillationcited by 186
- 2021Why Do Pretrained Language Models Help in Downstream Tasks? An Analysis of Head and Prompt Tuningcited by 82
- 2020A Mathematical Exploration of Why Language Models Help Solve Downstream Taskscited by 71
- 2022Z-ICL: Zero-Shot In-Context Learning with Pseudo-Demonstrationscited by 70
- 2021The Inductive Bias of In-Context Learning: Rethinking Pretraining Example Designcited by 33
- 2021Language Modelling as a Multi-Task Problemcited by 10
Built on by
Citing papers per year: 2023: 25; 2024: 37; 2025: 40; 2026: 24.
126 papers.
Sort:
By area:
- 2023Large Language Modelscited by 774
- 2023Jailbreak and Guard Aligned Language Models with Only Few In-Context Demonstrationscited by 401
- 2023Function Vectors in Large Language Modelscited by 292
- 2023Fundamental Limitations of Alignment in Large Language Modelscited by 152
- 2023Supervised Pretraining Can Learn In-Context Reinforcement Learningcited by 137
- 2023What and How does In-Context Learning Learn? Bayesian Model Averaging, Parameterization, and Generalizationcited by 112
- 2023In-Context Convergence of Transformerscited by 112
- 2023Are Emergent Abilities in Large Language Models just In-Context Learning?cited by 109
- 2023The Expressive Power of Low-Rank Adaptationcited by 100
- 2024Large Language Model (LLM) for Telecommunications: A Comprehensive Survey on Principles, Key Techniques, and Opportunitiescited by 83
- 2024Can large language models explore in-context?cited by 75
- 2023The Transient Nature of Emergent In-Context Learning in Transformerscited by 72
38 more
- 2024Demystifying Chains, Trees, and Graphs of Thoughtscited by 63
- 2024From Words to Numbers: Your Large Language Model Is Secretly A Capable Regressor When Given In-Context Examplescited by 55
- 2025Baichuan-M2: Scaling Medical Capability with Large Verifier Systemcited by 55
- 2024What's Wrong with Your Code Generated by Large Language Models? An Extensive Studycited by 52
- 2023In-Context Learning Learns Label Relationships but Is Not Conventional Learningcited by 48
- 2023Reason for Future, Act for Now: A Principled Framework for Autonomous LLM Agents with Provable Sample Efficiencycited by 46
- 2023A Latent Space Theory for Emergent Abilities in Large Language Modelscited by 42
- 2023When Do Prompting and Prefix-Tuning Work? A Theory of Capabilities and Limitationscited by 41
- 2024In-Context Learning with Representations: Contextual Generalization of Trained Transformerscited by 36
- 2023The Mystery of In-Context Learning: A Comprehensive Survey on Interpretation and Analysiscited by 34
- 2023How are Prompts Different in Terms of Sensitivity?cited by 34
- 2025Emergent Abilities in Large Language Models: A Surveycited by 34
- 2024Large Language Models as Markov Chainscited by 33
- 2025Exploring the Limits of Vision-Language-Action Manipulations in Cross-task Generalizationcited by 31
- 2024Unveiling the Statistical Foundations of Chain-of-Thought Prompting Methodscited by 27
- 2024Evaluating the Prompt Steerability of Large Language Modelscited by 26
- 2024Can In-context Learning Really Generalize to Out-of-distribution Tasks?cited by 23
- 2023Do pretrained Transformers Learn In-Context by Gradient Descent?cited by 18
- 2024Bayesian scaling laws for in-context learningcited by 18
- 2025Representation Engineering for Large-Language Models: Survey and Research Challengescited by 18
- 2025Make LVLMs Focus: Context-Aware Attention Modulation for Better Multimodal In-Context Learningcited by 18
- 2023A Mechanism for Sample-Efficient In-Context Learning for Sparse Retrieval Taskscited by 17
- 2023Trainable Transformer in Transformercited by 17
- 2024From Words to Actions: Unveiling the Theoretical Underpinnings of LLM-Driven Autonomous Systemscited by 17
- 2024Probing the Decision Boundaries of In-context Learning in Large Language Modelscited by 17
- 2024MKGL: Mastery of a Three-Word Languagecited by 17
- 2023Why Can Large Language Models Generate Correct Chain-of-Thoughts?cited by 16
- 2024Human-centric Reward Optimization for Reinforcement Learning-based Automated Driving using Large Language Modelscited by 14
- 2024Large Language Models for Human-like Autonomous Driving: A Surveycited by 14
- 2024Can MLLMs Perform Text-to-Image In-Context Learning?cited by 13
- 2024Exploring the Robustness of In-Context Learning with Noisy Labelscited by 13
- 2024What Do Language Models Learn in Context? The Structured Task Hypothesiscited by 13
- 2024Vector-ICL: In-context Learning with Continuous Vector Representationscited by 13
- 2023Fine-tune Language Models to Approximate Unbiased In-context Learningcited by 12
- 2024A Survey to Recent Progress Towards Understanding In-Context Learningcited by 12
- 2025Learning Task Representations from In-Context Learningcited by 11
- 2024SymDPO: Boosting In-Context Learning of Large Multimodal Models with Symbol Demonstration Direct Preference Optimizationcited by 10
- 2025Contextualize-then-Aggregate: Circuits for In-Context Learning in Gemma-2 2Bcited by 10
50 most cited of 126 All 126 (JSON)
- 2026When Can Prefixes Compile LoRA? Exact Resource-Capped Tests for Frozen Attention29 Sep 2026
- 2026Theory on Attention Dynamics for Out-of-Distribution In-Context Learning29 Sep 2026
- 2026Arbitrary Cipher Attacks Against Large Language Models Do Not Require Fine-Tuning9 Sep 2026
- 2026Understanding In-Context Multimodal Jailbreaks via Posterior Reweighting8 Sep 2026
- 2026Partition, Prompt, Aggregate: Statistical Self-Consistency in Language Models16 Jul 2026
- 2026Self-Evolving In-Context Learning for Direct Pilot-to-Beamformer Design in MU-MISO Systems13 Jul 2026
- 2026On the Limits of Prompt-Conditioned Language Models as General-Purpose Learners22 Jun 2026
- 2026OpenRFM: Dissecting Relational In-Context Learning3 Jun 2026
- 2026TabQL: In-Context Q-Learning with Tabular Foundation Models18 May 2026
- 2026In-Context Learning Operates as Concept Subspace Learning12 May 2026
- 2026OrchJail: Jailbreaking Tool-Calling Text-to-Image Agents by Orchestration-Guided Fuzzing8 May 2026
- 2026Decompose and Recompose: Reasoning New Skills from Existing Abilities for Cross-Task Robotic Manipulation2 May 2026
38 more
- 2026Symmetry Reveals Layerwise Dynamics: How Transformers Perform In-Context Classification13 Apr 2026
- 2026Learning to Adapt: In-Context Learning Beyond Stationarity13 Apr 2026
- 2026SelfGrader: LLM Jailbreak Detection via Anchored Token-Level Logits1 Apr 2026
- 2026Distributional Open-Ended Evaluation of LLM Cultural Value Alignment Based on Value Codebook16 Mar 2026
- 2026Constraint-aware Path Planning from Natural Language Instructions Using Large Language Models26 Feb 2026
- 2026Bayesian Optimality of In-Context Learning with Selective State Spaces19 Feb 2026
- 2026Meta-Sel: Efficient Demonstration Selection for In-Context Learning via Supervised Meta-Learning12 Feb 2026
- 2026Learning to Remember, Learn, and Forget in Attention-Based Models9 Feb 2026
- 2026Emergent Structured Representations Support Flexible In-Context Inference in Large Language Models8 Feb 2026
- 2026Bifrost: Steering Strategic Trajectories to Bridge Contextual Gaps for Self-Improving Agents5 Feb 2026
- 2026Rethinking Zero-Shot Time Series Classification: From Task-specific Classifiers to In-Context Inference31 Jan 2026
- 2026Can LLMs Track Their Output Length? A Dynamic Feedback Mechanism for Precise Length Regulation5 Jan 2026
- 2025Towards Synergistic Teacher-AI Interactions with Generative Artificial Intelligence24 Nov 2025
- 2025Implicit Federated In-context Learning For Task-Specific LLM Fine-Tuning10 Nov 2025
- 2025Context-Guided Decompilation: A Step Towards Re-executability3 Nov 2025
- 2025Transformers are almost optimal metalearners for linear classification22 Oct 2025
- 2025On the Relationship Between the Choice of Representation and In-Context Learning9 Oct 2025
- 2025Fine-Grained Emotion Recognition via In-Context Learning8 Oct 2025
- 2025Train Once, Reuse Everywhere: Generalizable Implicit In-Context Learning by Routing Attention26 Sep 2025
- 2025Is In-Context Learning Learning?12 Sep 2025
- 2025Baichuan-M2: Scaling Medical Capability with Large Verifier System2 Sep 2025
- 2025Optimizing In-Context Learning for Efficient Full Conformal Prediction1 Sep 2025
- 2025Supervised In-Context Fine-Tuning for Generative Sequence Labeling31 Aug 2025
- 2025Extracting Structured Requirements from Unstructured Building Technical Specifications for Building Information Modeling19 Aug 2025
- 2025Reverse Physician-AI Relationship: Full-process Clinical Diagnosis Driven by a Large Language Model14 Aug 2025
- 2025LinguaFluid: Language Guided Fluid Control via Semantic Rewards in Reinforcement Learning8 Aug 2025
- 2025ICM-Fusion: In-Context Meta-Optimized LoRA Fusion for Multi-Task Adaptation6 Aug 2025
- 2025Multi-Layer Attention is the Amplifier of Demonstration Effectiveness1 Aug 2025
- 2025To Theoretically Understand Transformer-Based In-Context Learning for Optimizing CSMA31 Jul 2025
- 2025GradOT: Training-free Gradient-preserving Offsite-tuning for Large Language Models6 Jul 2025
- 2025Brewing Knowledge in Context: Distillation Perspectives on In-Context Learning13 Jun 2025
- 2025ConText: Driving In-context Learning for Text Removal and Segmentation4 Jun 2025
- 2025EvaLearn: Quantifying the Learning Capability and Efficiency of LLMs via Sequential Problem Solving3 Jun 2025
- 2025Explain-then-Process: Using Grammar Prompting to Enhance Grammatical Acceptability Judgments2 Jun 2025
- 2025The Role of Diversity in In-Context Learning for Large Language Models26 May 2025
- 2025Make LVLMs Focus: Context-Aware Attention Modulation for Better Multimodal In-Context Learning21 May 2025
- 2025Exploring the Limits of Vision-Language-Action Manipulations in Cross-task Generalization21 May 2025
- 2025Filtering Learning Histories Enhances In-Context Reinforcement Learning21 May 2025
50 newest of 126 All 126 (JSON)
- 2024Large Language Model (LLM) for Telecommunications: A Comprehensive Survey on Principles, Key Techniques, and Opportunitiescited by 83
- 2024Demystifying Chains, Trees, and Graphs of Thoughtscited by 63
- 2025Baichuan-M2: Scaling Medical Capability with Large Verifier Systemcited by 55
- 2024Unveiling the Statistical Foundations of Chain-of-Thought Prompting Methodscited by 27
- 2023Why Can Large Language Models Generate Correct Chain-of-Thoughts?cited by 16
- 2026Partition, Prompt, Aggregate: Statistical Self-Consistency in Language Modelscited by 2
- 2026Partition, Prompt, Aggregate: Statistical Self-Consistency in Language Models16 Jul 2026
- 2025Baichuan-M2: Scaling Medical Capability with Large Verifier System2 Sep 2025
- 2024Unveiling the Statistical Foundations of Chain-of-Thought Prompting Methods25 Aug 2024
- 2024Large Language Model (LLM) for Telecommunications: A Comprehensive Survey on Principles, Key Techniques, and Opportunities17 May 2024
- 2024Demystifying Chains, Trees, and Graphs of Thoughts25 Jan 2024
- 2023Why Can Large Language Models Generate Correct Chain-of-Thoughts?20 Oct 2023
- 2025Make LVLMs Focus: Context-Aware Attention Modulation for Better Multimodal In-Context Learningcited by 18
- 2024Can MLLMs Perform Text-to-Image In-Context Learning?cited by 13
- 2024SymDPO: Boosting In-Context Learning of Large Multimodal Models with Symbol Demonstration Direct Preference Optimizationcited by 10
- 2024Adapting Large Multimodal Models to Distribution Shifts: The Role of In-Context Learningcited by 4
- 2024The Labyrinth of Links: Navigating the Associative Maze of Multi-modal LLMscited by 4
- 2026Understanding In-Context Multimodal Jailbreaks via Posterior Reweightingcited by 0
- 2026Understanding In-Context Multimodal Jailbreaks via Posterior Reweighting8 Sep 2026
- 2025Make LVLMs Focus: Context-Aware Attention Modulation for Better Multimodal In-Context Learning21 May 2025
- 2024SymDPO: Boosting In-Context Learning of Large Multimodal Models with Symbol Demonstration Direct Preference Optimization17 Nov 2024
- 2024The Labyrinth of Links: Navigating the Associative Maze of Multi-modal LLMs2 Oct 2024
- 2024Adapting Large Multimodal Models to Distribution Shifts: The Role of In-Context Learning20 May 2024
- 2024Can MLLMs Perform Text-to-Image In-Context Learning?2 Feb 2024
- 2023The Expressive Power of Low-Rank Adaptationcited by 100
- 2023The Expressive Power of Low-Rank Adaptation26 Oct 2023
- 2023Large Language Modelscited by 774
- 2023Function Vectors in Large Language Modelscited by 292
- 2023Supervised Pretraining Can Learn In-Context Reinforcement Learningcited by 137
- 2023What and How does In-Context Learning Learn? Bayesian Model Averaging, Parameterization, and Generalizationcited by 112
- 2023In-Context Convergence of Transformerscited by 112
- 2023Are Emergent Abilities in Large Language Models just In-Context Learning?cited by 109
- 2024Can large language models explore in-context?cited by 75
- 2023The Transient Nature of Emergent In-Context Learning in Transformerscited by 72
- 2024From Words to Numbers: Your Large Language Model Is Secretly A Capable Regressor When Given In-Context Examplescited by 55
- 2024What's Wrong with Your Code Generated by Large Language Models? An Extensive Studycited by 52
- 2023In-Context Learning Learns Label Relationships but Is Not Conventional Learningcited by 48
- 2023A Latent Space Theory for Emergent Abilities in Large Language Modelscited by 42
12 most cited of 98 All 98 (JSON)
- 2026When Can Prefixes Compile LoRA? Exact Resource-Capped Tests for Frozen Attention29 Sep 2026
- 2026Theory on Attention Dynamics for Out-of-Distribution In-Context Learning29 Sep 2026
- 2026Self-Evolving In-Context Learning for Direct Pilot-to-Beamformer Design in MU-MISO Systems13 Jul 2026
- 2026On the Limits of Prompt-Conditioned Language Models as General-Purpose Learners22 Jun 2026
- 2026OpenRFM: Dissecting Relational In-Context Learning3 Jun 2026
- 2026TabQL: In-Context Q-Learning with Tabular Foundation Models18 May 2026
- 2026In-Context Learning Operates as Concept Subspace Learning12 May 2026
- 2026Decompose and Recompose: Reasoning New Skills from Existing Abilities for Cross-Task Robotic Manipulation2 May 2026
- 2026Symmetry Reveals Layerwise Dynamics: How Transformers Perform In-Context Classification13 Apr 2026
- 2026Learning to Adapt: In-Context Learning Beyond Stationarity13 Apr 2026
- 2026Distributional Open-Ended Evaluation of LLM Cultural Value Alignment Based on Value Codebook16 Mar 2026
- 2026Constraint-aware Path Planning from Natural Language Instructions Using Large Language Models26 Feb 2026
12 newest of 98 All 98 (JSON)