Sample Efficient Demonstration Selection for In-Context Learning
Kiran Purohit, V Venktesh, Sourangshu Bhattacharya, Avishek Anand

TL;DR
This paper introduces CASE, a sample-efficient method for selecting exemplars in in-context learning with large language models, significantly reducing LLM evaluations while maintaining performance.
Contribution
We formulate exemplar selection as a top-m arms identification problem and propose CASE, a novel exploration strategy that reduces sample complexity and improves efficiency.
Findings
Achieves up to 7x speedup in runtime
Requires 87% fewer LLM calls
Maintains competitive performance
Abstract
The in-context learning paradigm with LLMs has been instrumental in advancing a wide range of natural language processing tasks. The selection of few-shot examples (exemplars / demonstration samples) is essential for constructing effective prompts under context-length budget constraints. In this paper, we formulate the exemplar selection task as a top-m best arms identification problem. A key challenge in this setup is the exponentially large number of arms that need to be evaluated to identify the m-best arms. We propose CASE (Challenger Arm Sampling for Exemplar selection), a novel sample-efficient selective exploration strategy that maintains a shortlist of "challenger" arms, which are current candidates for the top-m arms. In each iteration, only one of the arms from this shortlist or the current topm set is pulled, thereby reducing sample complexity and, consequently, the number of…
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.
Code & Models
Videos
Taxonomy
TopicsMachine Learning and Data Classification · Topic Modeling · Domain Adaptation and Few-Shot Learning
MethodsSparse Evolutionary Training
