Comparable Demonstrations are Important in In-Context Learning: A Novel Perspective on Demonstration Selection
Caoyun Fan, Jidong Tian, Yitian Li, Hao He, Yaohui Jin

TL;DR
This paper introduces Comparable Demonstrations (CDs) in In-Context Learning to reduce demonstration bias by emphasizing inter-demonstration relationships, leading to improved performance especially out-of-distribution.
Contribution
It proposes a novel demonstration selection method using minimally edited comparable demonstrations to mitigate bias in ICL.
Findings
Demonstration bias exists in LLMs.
CDs significantly reduce demonstration bias.
CDs improve ICL performance, especially out-of-distribution.
Abstract
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,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Domain Adaptation and Few-Shot Learning · Multimodal Machine Learning Applications
MethodsFLIP
