What In-Context Learning "Learns" In-Context: Disentangling Task Recognition and Task Learning
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) exploit in-context learning (ICL) to solve tasks with only a few demonstrations, but its mechanisms are not yet well-understood. Some works suggest that LLMs only recall already learned concepts from pre-training, while others hint that ICL performs implicit learning over demonstrations. We characterize two ways through which ICL leverages demonstrations. Task recognition (TR) captures the extent to which LLMs can recognize a task through demonstrations -- even without ground-truth labels -- and apply their pre-trained priors, whereas task learning (TL) is the ability to capture new input-label mappings unseen in pre-training. Using a wide range of classification datasets and three LLM families (GPT-3, LLaMA and OPT), we design controlled experiments to disentangle the roles of TR and TL in ICL. We show that (1) models can achieve non-trivial performance with only TR, and TR does not further improve with larger models or more demonstrations; (2) LLMs acquire TL as the model scales, and TL's performance consistently improves with more demonstrations in context. Our findings unravel two different forces behind ICL and we advocate for discriminating them in future ICL research due to their distinct nature.
Key facts. Cited by 149 papers in the map (data through 7 Oct 2026). Builds on 16 of its 32 references that are in the map. First posted on arXiv 16 May 2023.
Builds on
16 of 32 references.
References · 16
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2015A large annotated corpus for learning natural language inferencecited by 1,837
- 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
- 2022Transformers learn in-context by gradient descentcited by 714
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
- 2023Larger language models do in-context learning differentlycited by 386
- 2013Good Debt or Bad Debt: Detecting Semantic Orientations in Economic Textscited by 310
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
- 2022Why Can GPT Learn In-Context? Language Models Implicitly Perform Gradient Descent as Meta-Optimizerscited by 204
4 more
- 2022Ground-Truth Labels Matter: A Deeper Look into Input-Label Demonstrationscited by 116
- 2022General-Purpose In-Context Learning by Meta-Learning Transformerscited by 102
- 2022Rethinking the Role of Scale for In-Context Learning: An Interpretability-based Case Study at 66 Billion Scalecited by 64
- 2020Investigating Societal Biases in a Poetry Composition Systemcited by 47
Built on by
Citing papers per year: 2023: 34; 2024: 53; 2025: 40; 2026: 22.
149 papers.
Sort:
By area:
- 2023Large Language Models Are Not Robust Multiple Choice Selectorscited by 454
- 2023Editing Large Language Models: Problems, Methods, and Opportunitiescited by 367
- 2023Function Vectors in Large Language Modelscited by 292
- 2024Many-Shot In-Context Learningcited by 203
- 2023Large Language Models as General Pattern Machinescited by 196
- 2024How to Train Long-Context Language Models (Effectively)cited by 141
- 2023Understanding Catastrophic Forgetting in Language Models via Implicit Inferencecited by 138
- 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 126
- 2024HELMET: How to Evaluate Long-Context Language Models Effectively and Thoroughlycited by 119
- 2023Batch Calibration: Rethinking Calibration for In-Context Learning and Prompt Engineeringcited by 91
- 2024Breaking Agents: Compromising Autonomous LLM Agents Through Malfunction Amplificationcited by 80
- 2023In-Context Learning through the Bayesian Prismcited by 78
38 more
- 2023Boosting Language Models Reasoning with Chain-of-Knowledge Promptingcited by 77
- 2023In-Context Learning with Iterative Demonstration Selectioncited by 74
- 2023Efficient Benchmarking of Language Modelscited by 71
- 2024In-context Learning with Retrieved Demonstrations for Language Models: A Surveycited by 69
- 2024Artifacts or Abduction: How Do LLMs Answer Multiple-Choice Questions Without the Question?cited by 68
- 2024Attention Heads of Large Language Models: A Surveycited by 65
- 2024Steering Knowledge Selection Behaviours in LLMs via SAE-Based Representation Engineeringcited by 60
- 2024From Words to Numbers: Your Large Language Model Is Secretly A Capable Regressor When Given In-Context Examplescited by 55
- 2023Active Learning Principles for In-Context Learning with Large Language Modelscited by 53
- 2023Active Instruction Tuning: Improving Cross-Task Generalization by Training on Prompt Sensitive Taskscited by 53
- 2023Measuring Inductive Biases of In-Context Learning with Underspecified Demonstrationscited by 49
- 2023In-Context Learning Learns Label Relationships but Is Not Conventional Learningcited by 48
- 2024Why Larger Language Models Do In-context Learning Differently?cited by 44
- 2023Understanding In-Context Learning via Supportive Pretraining Datacited by 41
- 2023LLM4DyG: Can Large Language Models Solve Spatial-Temporal Problems on Dynamic Graphs?cited by 40
- 2023When does In-context Learning Fall Short and Why? A Study on Specification-Heavy Taskscited by 37
- 2023The Mystery of In-Context Learning: A Comprehensive Survey on Interpretation and Analysiscited by 34
- 2024The broader spectrum of in-context learningcited by 33
- 2023How to Configure Good In-Context Sequence for Visual Question Answeringcited by 31
- 2024Out-of-distribution generalization via composition: a lens through induction heads in Transformerscited by 28
- 2023Understanding In-Context Learning from Repetitionscited by 27
- 2024LLMs Are In-Context Bandit Reinforcement Learnerscited by 27
- 2024Can In-context Learning Really Generalize to Out-of-distribution Tasks?cited by 23
- 2025TACO: Enhancing Multimodal In-context Learning via Task Mapping-Guided Sequence Configurationcited by 23
- 2023In-context Learning Generalizes, But Not Always Robustly: The Case of Syntaxcited by 22
- 2025Large Language Models are Good Relational Learnerscited by 22
- 2023A Study on the Calibration of In-context Learningcited by 21
- 2024Bypassing the Exponential Dependency: Looped Transformers Efficiently Learn In-context by Multi-step Gradient Descentcited by 21
- 2023Generative Calibration for In-context Learningcited by 20
- 2023Supervised Knowledge Makes Large Language Models Better In-context Learnerscited by 20
- 2024Estimating the Hallucination Rate of Generative AIcited by 20
- 2025An Empirical Analysis of Uncertainty in Large Language Model Evaluationscited by 20
- 2024Differential learning kinetics govern the transition from memorization to generalization during in-context learningcited by 19
- 2023Do pretrained Transformers Learn In-Context by Gradient Descent?cited by 18
- 2024How do Large Language Models Learn In-Context? Query and Key Matrices of In-Context Heads are Two Towers for Metric Learningcited by 18
- 2025GUI-Bee: Align GUI Action Grounding to Novel Environments via Autonomous Explorationcited by 18
- 2023Large Language Models are Fixated by Red Herrings: Exploring Creative Problem Solving and Einstellung Effect using the Only Connect Wall Datasetcited by 17
- 2024KoMA: Knowledge-driven Multi-agent Framework for Autonomous Driving with Large Language Modelscited by 16
50 most cited of 149 All 149 (JSON)
- 2026When Can Prefixes Compile LoRA? Exact Resource-Capped Tests for Frozen Attention29 Sep 2026
- 2026Unifying Video Tasks via Spatiotemporal Analogy27 Sep 2026
- 2026Complementary Roles of Activation and Parametric Memory in Few-Shot Learning23 Sep 2026
- 2026One Example Is Enough to Pass Fairness Benchmarks: Rethinking Fairness Evaluation for Aligned LLMs14 Sep 2026
- 2026LANTERN: Language Model Assessment on Noisy and Transformed Tasks for Understanding Error and Robustness Nuances7 Sep 2026
- 2026LLMs Learn Better In-Context from Rules than from Examples2 Sep 2026
- 2026LittleLearner: Language Models Under Pedagogically Controlled Knowledge Exposure13 Aug 2026
- 2026Pretraining Curricula Enable Selective Fine-tuning6 Jul 2026
- 2026A Theoretical Interpretation of In-Context Learning via Probabilistic Modeling27 Jun 2026
- 2026Distilling Examples into Task Instructions: Enhanced In-Context Learning for Real-World B2B Conversations14 Jun 2026
- 2026The Effect of Training Task Diversity on In-Context Learning through the Lens of Low-Dimensional Subspaces5 Jun 2026
- 2026Persistent Priors, Preserved Targets: A Stroop-Style Paradigm for Lexical Override25 May 2026
38 more
- 2026In-Context Learning Operates as Concept Subspace Learning12 May 2026
- 2026In-Context Fixation: When Demonstrated Labels Override Semantics in Few-Shot Classification8 May 2026
- 2026In-Context Examples Suppress Scientific Knowledge Recall in LLMs30 Apr 2026
- 2026When Context Sticks: Studying Interference in In-Context Learning25 Apr 2026
- 2026Fine-tuning vs. In-context Learning in Large Language Models: A Formal Language Learning Perspective25 Apr 2026
- 2026Why Multimodal In-Context Learning Lags Behind? Unveiling the Inner Mechanisms and Bottlenecks15 Apr 2026
- 2026Understanding Contextual Recall in Transformers: How Finetuning Enables In-Context Reasoning over Pretraining Knowledge21 Mar 2026
- 2026When Demonstrations Fail: Diagnosing the Limits of In-Context Learning in Large Audio-Language Models with Progressive Cue Removal20 Mar 2026
- 2026Reconciling In-Context and In-Weight Learning via Dual Representation Space Encoding13 Mar 2026
- 2026The Alchemy of Thought: Understanding In-Context Learning Through Supervised Classification3 Jan 2026
- 2025Task Schema and Binding: A Double Dissociation Study of In-Context Learning19 Dec 2025
- 2025Textual Gradients are a Flawed Metaphor for Automatic Prompt Optimization15 Dec 2025
- 2025Genomic Next-Token Predictors are In-Context Learners16 Nov 2025
- 2025Online In-Context Distillation for Low-Resource Vision Language Models20 Oct 2025
- 2025Static Sandboxes Are Inadequate: Modeling Societal Complexity Requires Open-Ended Co-Evolution in LLM-Based Multi-Agent Simulations15 Oct 2025
- 2025On the Relationship Between the Choice of Representation and In-Context Learning9 Oct 2025
- 2025Controlling the Risk of Corrupted Contexts for Language Models via Early-Exiting2 Oct 2025
- 2025Localizing Task Recognition and Task Learning in In-Context Learning via Attention Head Analysis29 Sep 2025
- 2025Train Once, Reuse Everywhere: Generalizable Implicit In-Context Learning by Routing Attention26 Sep 2025
- 2025Context and Diversity Matter: The Emergence of In-Context Learning in World Models26 Sep 2025
- 2025Binary Autoencoder for Mechanistic Interpretability of Large Language Models25 Sep 2025
- 2025On Theoretical Interpretations of Concept-Based In-Context Learning25 Sep 2025
- 2025KITE: Kernelized and Information Theoretic Exemplars for In-Context Learning19 Sep 2025
- 2025ALLabel: Three-stage Active Learning for LLM-based Entity Recognition using Demonstration Retrieval9 Sep 2025
- 2025MachineLearningLM: Scaling Many-shot In-context Learning via Continued Pretraining8 Sep 2025
- 2025True Multimodal In-Context Learning Needs Attention to the Visual Context21 Jul 2025
- 2025Unveiling Effective In-Context Configurations for Image Captioning: An External & Internal Analysis8 Jul 2025
- 2025In-Context Occam's Razor: How Transformers Prefer Simpler Hypotheses on the Fly24 Jun 2025
- 2025One Patient, Many Contexts: Scaling Medical AI with Contextual Intelligence11 Jun 2025
- 2025Large Language Models are Good Relational Learners6 Jun 2025
- 2025ConText: Driving In-context Learning for Text Removal and Segmentation4 Jun 2025
- 2025Multilingual Definition Modeling2 Jun 2025
- 2025CrossICL: Cross-Task In-Context Learning via Unsupervised Demonstration Transfer30 May 2025
- 2025The Role of Diversity in In-Context Learning for Large Language Models26 May 2025
- 2025An Empirical Study on Configuring In-Context Learning Demonstrations for Unleashing MLLMs' Sentimental Perception Capability22 May 2025
- 2025TACO: Enhancing Multimodal In-context Learning via Task Mapping-Guided Sequence Configuration21 May 2025
- 2025Out-of-Distribution Generalization of In-Context Learning: A Low-Dimensional Subspace Perspective20 May 2025
- 2025Do different prompting methods yield a common task representation in language models?17 May 2025
50 newest of 149 All 149 (JSON)
- 2023Batch Calibration: Rethinking Calibration for In-Context Learning and Prompt Engineeringcited by 91
- 2023Boosting Language Models Reasoning with Chain-of-Knowledge Promptingcited by 77
- 2024Does In-Context Learning Really Learn? Rethinking How Large Language Models Respond and Solve Tasks via In-Context Learningcited by 8
- 2024Relevant or Random: Can LLMs Truly Perform Analogical Reasoning?cited by 8
- 2024Larger Language Models Don't Care How You Think: Why Chain-of-Thought Prompting Fails in Subjective Taskscited by 8
- 2023Modeling Complex Mathematical Reasoning via Large Language Model based MathAgentcited by 3
- 2025MachineLearningLM: Scaling Many-shot In-context Learning via Continued Pretrainingcited by 3
- 2024Look Before You Leap: Problem Elaboration Prompting Improves Mathematical Reasoning in Large Language Modelscited by 2
- 2026Understanding Contextual Recall in Transformers: How Finetuning Enables In-Context Reasoning over Pretraining Knowledgecited by 2
- 2026The Alchemy of Thought: Understanding In-Context Learning Through Supervised Classificationcited by 0
- 2026In-Context Examples Suppress Scientific Knowledge Recall in LLMscited by 0
- 2026In-Context Examples Suppress Scientific Knowledge Recall in LLMs30 Apr 2026
- 2026Understanding Contextual Recall in Transformers: How Finetuning Enables In-Context Reasoning over Pretraining Knowledge21 Mar 2026
- 2026The Alchemy of Thought: Understanding In-Context Learning Through Supervised Classification3 Jan 2026
- 2025MachineLearningLM: Scaling Many-shot In-context Learning via Continued Pretraining8 Sep 2025
- 2024Larger Language Models Don't Care How You Think: Why Chain-of-Thought Prompting Fails in Subjective Tasks10 Sep 2024
- 2024Relevant or Random: Can LLMs Truly Perform Analogical Reasoning?19 Apr 2024
- 2024Does In-Context Learning Really Learn? Rethinking How Large Language Models Respond and Solve Tasks via In-Context Learning11 Apr 2024
- 2024Look Before You Leap: Problem Elaboration Prompting Improves Mathematical Reasoning in Large Language Models24 Feb 2024
- 2023Modeling Complex Mathematical Reasoning via Large Language Model based MathAgent14 Dec 2023
- 2023Batch Calibration: Rethinking Calibration for In-Context Learning and Prompt Engineering29 Sep 2023
- 2023Boosting Language Models Reasoning with Chain-of-Knowledge Prompting10 Jun 2023
- 2023How to Configure Good In-Context Sequence for Visual Question Answeringcited by 31
- 2025TACO: Enhancing Multimodal In-context Learning via Task Mapping-Guided Sequence Configurationcited by 23
- 2025True Multimodal In-Context Learning Needs Attention to the Visual Contextcited by 14
- 2025Enhancing Multimodal In-Context Learning for Image Classification through Coreset Optimizationcited by 6
- 2025Advancing Multimodal In-Context Learning in Large Vision-Language Models with Task-aware Demonstrationscited by 5
- 2025An Empirical Study on Configuring In-Context Learning Demonstrations for Unleashing MLLMs' Sentimental Perception Capabilitycited by 4
- 2025Online In-Context Distillation for Low-Resource Vision Language Modelscited by 2
- 2025One Patient, Many Contexts: Scaling Medical AI with Contextual Intelligencecited by 1
- 2025Online In-Context Distillation for Low-Resource Vision Language Models20 Oct 2025
- 2025True Multimodal In-Context Learning Needs Attention to the Visual Context21 Jul 2025
- 2025One Patient, Many Contexts: Scaling Medical AI with Contextual Intelligence11 Jun 2025
- 2025An Empirical Study on Configuring In-Context Learning Demonstrations for Unleashing MLLMs' Sentimental Perception Capability22 May 2025
- 2025TACO: Enhancing Multimodal In-context Learning via Task Mapping-Guided Sequence Configuration21 May 2025
- 2025Enhancing Multimodal In-Context Learning for Image Classification through Coreset Optimization19 Apr 2025
- 2025Advancing Multimodal In-Context Learning in Large Vision-Language Models with Task-aware Demonstrations5 Mar 2025
- 2023How to Configure Good In-Context Sequence for Visual Question Answering4 Dec 2023
- 2023Understanding Catastrophic Forgetting in Language Models via Implicit Inferencecited by 138
- 2024SeCoKD: Aligning Large Language Models for In-Context Learning with Fewer Shotscited by 0
- 2026One Example Is Enough to Pass Fairness Benchmarks: Rethinking Fairness Evaluation for Aligned LLMscited by 0
- 2026One Example Is Enough to Pass Fairness Benchmarks: Rethinking Fairness Evaluation for Aligned LLMs14 Sep 2026
- 2024SeCoKD: Aligning Large Language Models for In-Context Learning with Fewer Shots20 Jun 2024
- 2023Understanding Catastrophic Forgetting in Language Models via Implicit Inference18 Sep 2023
- 2023Large Language Models Are Not Robust Multiple Choice Selectorscited by 454
- 2023Editing Large Language Models: Problems, Methods, and Opportunitiescited by 367
- 2023Function Vectors in Large Language Modelscited by 292
- 2024Many-Shot In-Context Learningcited by 203
- 2023Large Language Models as General Pattern Machinescited by 196
- 2024How to Train Long-Context Language Models (Effectively)cited by 141
- 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 126
- 2024HELMET: How to Evaluate Long-Context Language Models Effectively and Thoroughlycited by 119
- 2023In-Context Learning through the Bayesian Prismcited by 78
- 2023In-Context Learning with Iterative Demonstration Selectioncited by 74
- 2023Efficient Benchmarking of Language Modelscited by 71
- 2024In-context Learning with Retrieved Demonstrations for Language Models: A Surveycited by 69
12 most cited of 120 All 120 (JSON)
- 2026When Can Prefixes Compile LoRA? Exact Resource-Capped Tests for Frozen Attention29 Sep 2026
- 2026Unifying Video Tasks via Spatiotemporal Analogy27 Sep 2026
- 2026Complementary Roles of Activation and Parametric Memory in Few-Shot Learning23 Sep 2026
- 2026LANTERN: Language Model Assessment on Noisy and Transformed Tasks for Understanding Error and Robustness Nuances7 Sep 2026
- 2026LLMs Learn Better In-Context from Rules than from Examples2 Sep 2026
- 2026LittleLearner: Language Models Under Pedagogically Controlled Knowledge Exposure13 Aug 2026
- 2026Pretraining Curricula Enable Selective Fine-tuning6 Jul 2026
- 2026A Theoretical Interpretation of In-Context Learning via Probabilistic Modeling27 Jun 2026
- 2026Distilling Examples into Task Instructions: Enhanced In-Context Learning for Real-World B2B Conversations14 Jun 2026
- 2026The Effect of Training Task Diversity on In-Context Learning through the Lens of Low-Dimensional Subspaces5 Jun 2026
- 2026Persistent Priors, Preserved Targets: A Stroop-Style Paradigm for Lexical Override25 May 2026
- 2026In-Context Learning Operates as Concept Subspace Learning12 May 2026
12 newest of 120 All 120 (JSON)