mlsanityData to 7 Oct 2026

Does In-Context Learning Really Learn? Rethinking How Large Language Models Respond and Solve Tasks via In-Context Learning

arXiv 2404.07546 ↗First posted 11 Apr 2024cs.CLcited by 8

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

  1. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?25 Feb

Other references · 25

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  4. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
  5. 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
  6. 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
  7. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
  8. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
  9. 2022Transformers learn in-context by gradient descentcited by 714
  10. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
  11. 2019SAMSum Corpus: A Human-annotated Dialogue Dataset for Abstractive Summarizationcited by 530
  12. 2021Datasets: A Community Library for Natural Language Processingcited by 526
13 more
  1. 2023Is ChatGPT a General-Purpose Natural Language Processing Task Solver?cited by 486
  2. 2020TweetEval: Unified Benchmark and Comparative Evaluation for Tweet Classificationcited by 414
  3. 2016A Corpus and Evaluation Framework for Deeper Understanding of Commonsense Storiescited by 413
  4. 2023Sentiment Analysis in the Era of Large Language Models: A Reality Checkcited by 262
  5. 2023Label Words are Anchors: An Information Flow Perspective for Understanding In-Context Learningcited by 235
  6. 2018Hate Speech Dataset from a White Supremacy Forumcited by 196
  7. 2023Large Language Models Are Latent Variable Models: Explaining and Finding Good Demonstrations for In-Context Learningcited by 149
  8. 2023What In-Context Learning "Learns" In-Context: Disentangling Task Recognition and Task Learningcited by 149
  9. 2022Diverse Demonstrations Improve In-context Compositional Generalizationcited by 136
  10. 2022Ground-Truth Labels Matter: A Deeper Look into Input-Label Demonstrationscited by 116
  11. 2018Abstractive Summarization of Reddit Posts with Multi-level Memory Networkscited by 102
  12. 2022Z-ICL: Zero-Shot In-Context Learning with Pseudo-Demonstrationscited by 70
  13. 2020Effective Transfer Learning for Identifying Similar Questions: Matching User Questions to COVID-19 FAQscited by 48

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 5; 2026: 3.

8 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025On the Relationship Between the Choice of Representation and In-Context Learning
  2. 2023Dr.ICL: Demonstration-Retrieved In-context Learning
  3. 2024Concept-aware Data Construction Improves In-context Learning of Language Models
  4. 2025Beyond In-Context Learning: Aligning Long-form Generation of Large Language Models via Task-Inherent Attribute Guidelines
  5. 2024In-Context Language Learning: Architectures and Algorithms
  6. 2025What do vision-language models see in the context? Investigating multimodal in-context learning
  7. 2024From Introspection to Best Practices: Principled Analysis of Demonstrations in Multimodal In-Context Learning
  8. 2023Hint-enhanced In-Context Learning wakes Large Language Models up for knowledge-intensive tasks