Sample Efficient Demonstration Selection for In-Context Learning
Not on the map. Why?
Abstract (arXiv)
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 LLM evaluations. Furthermore, we model the scores of exemplar subsets (arms) using a parameterized linear scoring function, leading to stochastic linear bandits setting. CASE achieves remarkable efficiency gains of up to 7x speedup in runtime while requiring 7x fewer LLM calls (87% reduction) without sacrificing performance compared to state-of-the-art exemplar selection methods. We release our code and data at https://github.com/kiranpurohit/CASE
Key facts. Cited by 13 papers in the map (data through 14 Oct 2026). Builds on 37 of its 50 references that are in the map. First posted on arXiv 10 Jun 2025.
Builds on
37 of 50 references.
References · 37
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,076
- 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,075
- 2021Did Aristotle Use a Laptop? A Question Answering Benchmark with Implicit Reasoning Strategiescited by 743
- 2017Program Induction by Rationale Generation : Learning to Solve and Explain Algebraic Word Problemscited by 650
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 648
- 2023Plan-and-Solve Prompting: Improving Zero-Shot Chain-of-Thought Reasoning by Large Language Modelscited by 560
- 2022Complexity-Based Prompting for Multi-Step Reasoningcited by 388
25 more
- 2022Dynamic Prompt Learning via Policy Gradient for Semi-structured Mathematical Reasoningcited by 350
- 2023Prompt Cache: Modular Attention Reuse for Low-Latency Inferencecited by 268
- 2022Active Example Selection for In-Context Learningcited by 196
- 2023Active Prompting with Chain-of-Thought for Large Language Modelscited by 154
- 2023Finding Support Examples for In-Context Learningcited by 104
- 2019Sequential Experimental Design for Transductive Linear Banditscited by 91
- 2020Optimal Best-arm Identification in Linear Banditscited by 71
- 2022Complementary Explanations for Effective In-Context Learningcited by 71
- 2020Gamification of Pure Exploration for Linear Banditscited by 63
- 2020Knowledge-Aware Language Model Pretrainingcited by 52
- 2017Fully adaptive algorithm for pure exploration in linear banditscited by 43
- 2013Submodular Optimization with Submodular Cover and Submodular Knapsack Constraintscited by 41
- 2017Nearly Instance Optimal Sample Complexity Bounds for Top-k Arm Selectioncited by 28
- 2017Online Learning to Rank in Stochastic Click Modelscited by 26
- 2024QuanTemp: A real-world open-domain benchmark for fact-checking numerical claimscited by 23
- 2018Online Learning to Rank with Featurescited by 18
- 2025Guiding Retrieval using LLM-based Listwise Rankerscited by 16
- 2021Top-m identification for linear banditscited by 11
- 2025A Study into Investigating Temporal Robustness of LLMscited by 11
- 2023SEER : A Knapsack approach to Exemplar Selection for In-Context HybridQAcited by 9
- 2024Quam: Adaptive Retrieval through Query Affinity Modellingcited by 6
- 2024EXPLORA: Efficient Exemplar Subset Selection for Complex Reasoningcited by 5
- 2025FlashCheck: Exploration of Efficient Evidence Retrieval for Fast Fact-Checkingcited by 4
- 2025Breaking the Lens of the Telescope: Online Relevance Estimation over Large Retrieval Setscited by 4
- 2025SUNAR: Semantic Uncertainty based Neighborhood Aware Retrieval for Complex QAcited by 3
Built on by
Citing papers per year: 2025: 4; 2026: 9.
13 papers.
Sort:
By area:
- 2025Bridging Streaming Continual Learning via In-Context Large Tabular Modelscited by 7
- 2026Context Learning for Multi-Agent Discussioncited by 3
- 2026Learning to Select Visual In-Context Demonstrationscited by 2
- 2025Efficient Text Classification with Conformal In-Context Learningcited by 1
- 2026Shaping Schema via Language Representation as the Next Frontier for LLM Intelligence Expandingcited by 1
- 2026Towards Reliable, Generalizable, and Specific In-Context Knowledge Editing via Multi-Objective Reinforcement Learningcited by 1
- 2025Large Language Models Can Perform Automatic Modulation Classification via Discretized Self-supervised Candidate Retrievalcited by 0
- 2025Challenger-Based Combinatorial Bandits for Subcarrier Selection in OFDM Systemscited by 0
- 2026Data Efficient Sample Selection for In-Context Learningcited by 0
- 2026Downstream-Aware Context Selection for Online In-Context Reinforcement Learningcited by 0
- 2026You Only Edit Once: Incentivizing In-Context Capability of LLMs via Local Demonstration Refinementcited by 0
- 2026Efficient Task Adaptation in Large Language Models: A Survey of Weight-Based, Prompt-Based, and Embedding-Based Adaptationscited by 0
1 more
- 2026Accelerating Linear Bandits with Persistent Candidate Sets9 Oct 2026
- 2026Efficient Task Adaptation in Large Language Models: A Survey of Weight-Based, Prompt-Based, and Embedding-Based Adaptations1 Oct 2026
- 2026You Only Edit Once: Incentivizing In-Context Capability of LLMs via Local Demonstration Refinement27 Sep 2026
- 2026Downstream-Aware Context Selection for Online In-Context Reinforcement Learning27 Sep 2026
- 2026Data Efficient Sample Selection for In-Context Learning6 Sep 2026
- 2026Towards Reliable, Generalizable, and Specific In-Context Knowledge Editing via Multi-Objective Reinforcement Learning25 Aug 2026
- 2026Shaping Schema via Language Representation as the Next Frontier for LLM Intelligence Expanding10 May 2026
- 2026Learning to Select Visual In-Context Demonstrations24 Mar 2026
- 2026Context Learning for Multi-Agent Discussion2 Feb 2026
- 2025Bridging Streaming Continual Learning via In-Context Large Tabular Models12 Dec 2025
- 2025Efficient Text Classification with Conformal In-Context Learning5 Dec 2025
- 2025Challenger-Based Combinatorial Bandits for Subcarrier Selection in OFDM Systems6 Oct 2025
- 2026Learning to Select Visual In-Context Demonstrationscited by 2
- 2026Learning to Select Visual In-Context Demonstrations24 Mar 2026
- 2025Bridging Streaming Continual Learning via In-Context Large Tabular Modelscited by 7
- 2025Efficient Text Classification with Conformal In-Context Learningcited by 1
- 2026Shaping Schema via Language Representation as the Next Frontier for LLM Intelligence Expandingcited by 1
- 2025Large Language Models Can Perform Automatic Modulation Classification via Discretized Self-supervised Candidate Retrievalcited by 0
- 2025Challenger-Based Combinatorial Bandits for Subcarrier Selection in OFDM Systemscited by 0
- 2026Data Efficient Sample Selection for In-Context Learningcited by 0
- 2026You Only Edit Once: Incentivizing In-Context Capability of LLMs via Local Demonstration Refinementcited by 0
- 2026Efficient Task Adaptation in Large Language Models: A Survey of Weight-Based, Prompt-Based, and Embedding-Based Adaptationscited by 0
- 2026Accelerating Linear Bandits with Persistent Candidate Setscited by 0
- 2026Accelerating Linear Bandits with Persistent Candidate Sets9 Oct 2026
- 2026Efficient Task Adaptation in Large Language Models: A Survey of Weight-Based, Prompt-Based, and Embedding-Based Adaptations1 Oct 2026
- 2026You Only Edit Once: Incentivizing In-Context Capability of LLMs via Local Demonstration Refinement27 Sep 2026
- 2026Data Efficient Sample Selection for In-Context Learning6 Sep 2026
- 2026Shaping Schema via Language Representation as the Next Frontier for LLM Intelligence Expanding10 May 2026
- 2025Bridging Streaming Continual Learning via In-Context Large Tabular Models12 Dec 2025
- 2025Efficient Text Classification with Conformal In-Context Learning5 Dec 2025
- 2025Challenger-Based Combinatorial Bandits for Subcarrier Selection in OFDM Systems6 Oct 2025
- 2025Large Language Models Can Perform Automatic Modulation Classification via Discretized Self-supervised Candidate Retrieval30 Sep 2025