Does In-Context Learning Really Learn? Rethinking How Large Language Models Respond and Solve Tasks via In-Context Learning
On the map: LLM reasoning → Reasoning benchmarks and evaluation
Abstract (arXiv)
In-context Learning (ICL) has emerged as a powerful capability alongside the development of scaled-up large language models (LLMs). By instructing LLMs using few-shot demonstrative examples, ICL enables them to perform a wide range of tasks without updating millions of parameters. However, the precise contributions of demonstrations towards improving end-task performance have not been thoroughly investigated in recent analytical studies. In this paper, we empirically decompose the overall performance of ICL into three dimensions, label space, format, and discrimination, and we evaluate four general-purpose LLMs across a diverse range of tasks. Counter-intuitively, we find that the demonstrations have a marginal impact on provoking discriminative knowledge of language models. However, ICL exhibits significant efficacy in regulating the label space and format, which helps LLMs respond to desired label words. We then demonstrate that this ability functions similar to detailed instructions for LLMs to follow. We additionally provide an in-depth analysis of the mechanism of retrieval helping with ICL. Our findings demonstrate that retrieving the semantically similar examples notably boosts the model's discriminative capability. However, we also observe a trade-off in selecting good in-context examples regarding label diversity.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Placed in Reasoning benchmarks and evaluation, one of 17 directions in LLM reasoning. Builds on 26 of its 44 references that are in the map. First posted on arXiv 11 Apr 2024.
Builds on
26 of 44 references.
Closest ancestors · 1
Same direction, newest first
Other references · 25
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
- 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
- 2019SAMSum Corpus: A Human-annotated Dialogue Dataset for Abstractive Summarizationcited by 530
- 2021Datasets: A Community Library for Natural Language Processingcited by 526
13 more
- 2023Is ChatGPT a General-Purpose Natural Language Processing Task Solver?cited by 486
- 2020TweetEval: Unified Benchmark and Comparative Evaluation for Tweet Classificationcited by 414
- 2016A Corpus and Evaluation Framework for Deeper Understanding of Commonsense Storiescited by 413
- 2023Sentiment Analysis in the Era of Large Language Models: A Reality Checkcited by 262
- 2023Label Words are Anchors: An Information Flow Perspective for Understanding In-Context Learningcited by 235
- 2018Hate Speech Dataset from a White Supremacy Forumcited by 196
- 2023Large Language Models Are Latent Variable Models: Explaining and Finding Good Demonstrations for In-Context Learningcited by 149
- 2023What In-Context Learning "Learns" In-Context: Disentangling Task Recognition and Task Learningcited by 149
- 2022Diverse Demonstrations Improve In-context Compositional Generalizationcited by 136
- 2022Ground-Truth Labels Matter: A Deeper Look into Input-Label Demonstrationscited by 116
- 2018Abstractive Summarization of Reddit Posts with Multi-level Memory Networkscited by 102
- 2022Z-ICL: Zero-Shot In-Context Learning with Pseudo-Demonstrationscited by 70
- 2020Effective Transfer Learning for Identifying Similar Questions: Matching User Questions to COVID-19 FAQscited by 48
Built on by
Citing papers per year: 2025: 5; 2026: 3.
8 papers.
- 2025Is In-Context Learning Learning?cited by 2
- 2026Safety is Contextual, LLM-Judges Are Not: Navigating the Rigid Priors of Evaluatorscited by 2
- 2025Combining physics education and machine learning research to measure evidence of students' mechanistic sensemakingcited by 1
- 2025Reinforcing Compositional Retrieval: Retrieving Step-by-Step for Composing Informative Contextscited by 1
- 2025Multi-Layer Attention is the Amplifier of Demonstration Effectivenesscited by 1
- 2026Beyond Surface Imitation: Contrastive Modeling for Reasoning Path Alignment in Multimodal In-Context Learningcited by 1
- 2025TextMineX: Data, Evaluation Framework and Ontology-guided LLM Pipeline for Humanitarian Mine Actioncited by 0
- 2026In-Context Fixation: When Demonstrated Labels Override Semantics in Few-Shot Classificationcited by 0
- 2026Beyond Surface Imitation: Contrastive Modeling for Reasoning Path Alignment in Multimodal In-Context Learning9 Sep 2026
- 2026Safety is Contextual, LLM-Judges Are Not: Navigating the Rigid Priors of Evaluators5 Jun 2026
- 2026In-Context Fixation: When Demonstrated Labels Override Semantics in Few-Shot Classification8 May 2026
- 2025TextMineX: Data, Evaluation Framework and Ontology-guided LLM Pipeline for Humanitarian Mine Action18 Sep 2025
- 2025Is In-Context Learning Learning?12 Sep 2025
- 2025Multi-Layer Attention is the Amplifier of Demonstration Effectiveness1 Aug 2025
- 2025Reinforcing Compositional Retrieval: Retrieving Step-by-Step for Composing Informative Contexts15 Apr 2025
- 2025Combining physics education and machine learning research to measure evidence of students' mechanistic sensemaking19 Mar 2025
Similar, not cited
Close in wording, no citation either way
- 2025On the Relationship Between the Choice of Representation and In-Context Learning
- 2023Dr.ICL: Demonstration-Retrieved In-context Learning
- 2024Concept-aware Data Construction Improves In-context Learning of Language Models
- 2025Beyond In-Context Learning: Aligning Long-form Generation of Large Language Models via Task-Inherent Attribute Guidelines
- 2024In-Context Language Learning: Architectures and Algorithms
- 2025What do vision-language models see in the context? Investigating multimodal in-context learning
- 2024From Introspection to Best Practices: Principled Analysis of Demonstrations in Multimodal In-Context Learning
- 2023Hint-enhanced In-Context Learning wakes Large Language Models up for knowledge-intensive tasks