mlsanityData to 7 Oct 2026

The Learnability of In-Context Learning

arXiv 2303.07895 ↗First posted 14 Mar 2023cs.CLcited by 126

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2022Training language models to follow instructions with human feedbackcited by 15,712
  4. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  5. 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
  6. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
  7. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
  8. 2022Emergent Abilities of Large Language Modelscited by 2,483
  9. 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,462
  10. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
  11. 2022In-context Learning and Induction Headscited by 930
  12. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
14 more
  1. 2022Transformers learn in-context by gradient descentcited by 714
  2. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
  3. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
  4. 2023Larger language models do in-context learning differentlycited by 386
  5. 2021Do Prompt-Based Models Really Understand the Meaning of their Prompts?cited by 324
  6. 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
  7. 2022Can language models learn from explanations in context?cited by 248
  8. 2018Colorless green recurrent networks dream hierarchicallycited by 210
  9. 2022In-context Reinforcement Learning with Algorithm Distillationcited by 186
  10. 2021Why Do Pretrained Language Models Help in Downstream Tasks? An Analysis of Head and Prompt Tuningcited by 82
  11. 2020A Mathematical Exploration of Why Language Models Help Solve Downstream Taskscited by 71
  12. 2022Z-ICL: Zero-Shot In-Context Learning with Pseudo-Demonstrationscited by 70
  13. 2021The Inductive Bias of In-Context Learning: Rethinking Pretraining Example Designcited by 33
  14. 2021Language Modelling as a Multi-Task Problemcited by 10

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 25; 2024: 37; 2025: 40; 2026: 24.

126 papers.

Sort:

By area:

  1. 2023Large Language Modelscited by 774
  2. 2023Jailbreak and Guard Aligned Language Models with Only Few In-Context Demonstrationscited by 401
  3. 2023Function Vectors in Large Language Modelscited by 292
  4. 2023Fundamental Limitations of Alignment in Large Language Modelscited by 152
  5. 2023Supervised Pretraining Can Learn In-Context Reinforcement Learningcited by 137
  6. 2023What and How does In-Context Learning Learn? Bayesian Model Averaging, Parameterization, and Generalizationcited by 112
  7. 2023In-Context Convergence of Transformerscited by 112
  8. 2023Are Emergent Abilities in Large Language Models just In-Context Learning?cited by 109
  9. 2023The Expressive Power of Low-Rank Adaptationcited by 100
  10. 2024Large Language Model (LLM) for Telecommunications: A Comprehensive Survey on Principles, Key Techniques, and Opportunitiescited by 83
  11. 2024Can large language models explore in-context?cited by 75
  12. 2023The Transient Nature of Emergent In-Context Learning in Transformerscited by 72
38 more
  1. 2024Demystifying Chains, Trees, and Graphs of Thoughtscited by 63
  2. 2024From Words to Numbers: Your Large Language Model Is Secretly A Capable Regressor When Given In-Context Examplescited by 55
  3. 2025Baichuan-M2: Scaling Medical Capability with Large Verifier Systemcited by 55
  4. 2024What's Wrong with Your Code Generated by Large Language Models? An Extensive Studycited by 52
  5. 2023In-Context Learning Learns Label Relationships but Is Not Conventional Learningcited by 48
  6. 2023Reason for Future, Act for Now: A Principled Framework for Autonomous LLM Agents with Provable Sample Efficiencycited by 46
  7. 2023A Latent Space Theory for Emergent Abilities in Large Language Modelscited by 42
  8. 2023When Do Prompting and Prefix-Tuning Work? A Theory of Capabilities and Limitationscited by 41
  9. 2024In-Context Learning with Representations: Contextual Generalization of Trained Transformerscited by 36
  10. 2023The Mystery of In-Context Learning: A Comprehensive Survey on Interpretation and Analysiscited by 34
  11. 2023How are Prompts Different in Terms of Sensitivity?cited by 34
  12. 2025Emergent Abilities in Large Language Models: A Surveycited by 34
  13. 2024Large Language Models as Markov Chainscited by 33
  14. 2025Exploring the Limits of Vision-Language-Action Manipulations in Cross-task Generalizationcited by 31
  15. 2024Unveiling the Statistical Foundations of Chain-of-Thought Prompting Methodscited by 27
  16. 2024Evaluating the Prompt Steerability of Large Language Modelscited by 26
  17. 2024Can In-context Learning Really Generalize to Out-of-distribution Tasks?cited by 23
  18. 2023Do pretrained Transformers Learn In-Context by Gradient Descent?cited by 18
  19. 2024Bayesian scaling laws for in-context learningcited by 18
  20. 2025Representation Engineering for Large-Language Models: Survey and Research Challengescited by 18
  21. 2025Make LVLMs Focus: Context-Aware Attention Modulation for Better Multimodal In-Context Learningcited by 18
  22. 2023A Mechanism for Sample-Efficient In-Context Learning for Sparse Retrieval Taskscited by 17
  23. 2023Trainable Transformer in Transformercited by 17
  24. 2024From Words to Actions: Unveiling the Theoretical Underpinnings of LLM-Driven Autonomous Systemscited by 17
  25. 2024Probing the Decision Boundaries of In-context Learning in Large Language Modelscited by 17
  26. 2024MKGL: Mastery of a Three-Word Languagecited by 17
  27. 2023Why Can Large Language Models Generate Correct Chain-of-Thoughts?cited by 16
  28. 2024Human-centric Reward Optimization for Reinforcement Learning-based Automated Driving using Large Language Modelscited by 14
  29. 2024Large Language Models for Human-like Autonomous Driving: A Surveycited by 14
  30. 2024Can MLLMs Perform Text-to-Image In-Context Learning?cited by 13
  31. 2024Exploring the Robustness of In-Context Learning with Noisy Labelscited by 13
  32. 2024What Do Language Models Learn in Context? The Structured Task Hypothesiscited by 13
  33. 2024Vector-ICL: In-context Learning with Continuous Vector Representationscited by 13
  34. 2023Fine-tune Language Models to Approximate Unbiased In-context Learningcited by 12
  35. 2024A Survey to Recent Progress Towards Understanding In-Context Learningcited by 12
  36. 2025Learning Task Representations from In-Context Learningcited by 11
  37. 2024SymDPO: Boosting In-Context Learning of Large Multimodal Models with Symbol Demonstration Direct Preference Optimizationcited by 10
  38. 2025Contextualize-then-Aggregate: Circuits for In-Context Learning in Gemma-2 2Bcited by 10

50 most cited of 126 All 126 (JSON)