Comparable Demonstrations are Important in In-Context Learning: A Novel Perspective on Demonstration Selection
Not on the map. Why?
Abstract (arXiv)
In-Context Learning (ICL) is an important paradigm for adapting Large Language Models (LLMs) to downstream tasks through a few demonstrations. Despite the great success of ICL, the limitation of the demonstration number may lead to demonstration bias, i.e. the input-label mapping induced by LLMs misunderstands the task's essence. Inspired by human experience, we attempt to mitigate such bias through the perspective of the inter-demonstration relationship. Specifically, we construct Comparable Demonstrations (CDs) by minimally editing the texts to flip the corresponding labels, in order to highlight the task's essence and eliminate potential spurious correlations through the inter-demonstration comparison. Through a series of experiments on CDs, we find that (1) demonstration bias does exist in LLMs, and CDs can significantly reduce such bias; (2) CDs exhibit good performance in ICL, especially in out-of-distribution scenarios. In summary, this study explores the ICL mechanisms from a novel perspective, providing a deeper insight into the demonstration selection strategy for ICL.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 24 of its 28 references that are in the map. First posted on arXiv 12 Dec 2023.
Builds on
24 of 28 references.
References · 24
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2022Emergent Abilities of Large Language Modelscited by 2,483
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 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
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
- 2022Automatic Chain of Thought Prompting in Large Language Modelscited by 684
- 2019Learning the Difference that Makes a Difference with Counterfactually-Augmented Datacited by 428
- 2023Harnessing the Power of LLMs in Practice: A Survey on ChatGPT and Beyondcited by 409
- 2021Do Prompt-Based Models Really Understand the Meaning of their Prompts?cited by 324
- 2022Instruction Induction: From Few Examples to Natural Language Task Descriptionscited by 152
12 more
- 2023What In-Context Learning "Learns" In-Context: Disentangling Task Recognition and Task Learningcited by 149
- 2022Ground-Truth Labels Matter: A Deeper Look into Input-Label Demonstrationscited by 116
- 2023Can Large Language Models Serve as Rational Players in Game Theory? A Systematic Analysiscited by 91
- 2023Large Language Models Can be Lazy Learners: Analyze Shortcuts in In-Context Learningcited by 69
- 2020Robustness to Spurious Correlations in Text Classification via Automatically Generated Counterfactualscited by 67
- 2020Explaining The Efficacy of Counterfactually Augmented Datacited by 64
- 2023Measuring Inductive Biases of In-Context Learning with Underspecified Demonstrationscited by 49
- 2021An Investigation of the (In)effectiveness of Counterfactually Augmented Datacited by 42
- 2021Exploring the Efficacy of Automatically Generated Counterfactuals for Sentiment Analysiscited by 30
- 2023Chain-of-Thought Tuning: Masked Language Models can also Think Step By Step in Natural Language Understandingcited by 4
- 2023Improving the Out-Of-Distribution Generalization Capability of Language Models: Counterfactually-Augmented Data is not Enoughcited by 3
- 2023Unlock the Potential of Counterfactually-Augmented Data in Out-Of-Distribution Generalizationcited by 2
Built on by
Citing papers per year: 2024: 3; 2025: 2.
5 papers.
- 2024Studying Large Language Model Behaviors Under Context-Memory Conflicts With Real Documentscited by 27
- 2025TACO: Enhancing Multimodal In-context Learning via Task Mapping-Guided Sequence Configurationcited by 23
- 2025Advancing Multimodal In-Context Learning in Large Vision-Language Models with Task-aware Demonstrationscited by 5
- 2024Improving In-Context Learning with Prediction Feedback for Sentiment Analysiscited by 4
- 2024Towards Better Graph-based Cross-document Relation Extraction via Non-bridge Entity Enhancement and Prediction Debiasingcited by 3
- 2025TACO: Enhancing Multimodal In-context Learning via Task Mapping-Guided Sequence Configuration21 May 2025
- 2025Advancing Multimodal In-Context Learning in Large Vision-Language Models with Task-aware Demonstrations5 Mar 2025
- 2024Towards Better Graph-based Cross-document Relation Extraction via Non-bridge Entity Enhancement and Prediction Debiasing24 Jun 2024
- 2024Improving In-Context Learning with Prediction Feedback for Sentiment Analysis5 Jun 2024
- 2024Studying Large Language Model Behaviors Under Context-Memory Conflicts With Real Documents24 Apr 2024