Coverage-based Example Selection for In-Context Learning
Not on the map. Why?
Abstract (arXiv)
In-context learning (ICL), the ability of large language models to perform novel tasks by conditioning on a prompt with a few task examples, requires these examples to be informative about the test instance. The standard approach of independently ranking and selecting the most similar examples selects redundant examples while omitting important information. In this work, we show that BERTScore-Recall (BSR) selects better examples that demonstrate more of the salient aspects, e.g. reasoning patterns, of the test input. We further extend BSR and many standard metrics to easily optimizable set-level metrics, giving still better coverage of those salient aspects. On 15 datasets spanning 6 tasks and with 7 diverse LLMs, we show that (1) BSR is the superior metric for in-context example selection across the board, and (2) for compositional tasks, set selection using Set-BSR outperforms independent ranking by up to 17 points on average and, despite being training-free, surpasses methods that leverage task or LLM-specific training.
Key facts. Cited by 58 papers in the map (data through 7 Oct 2026). Builds on 39 of its 67 references that are in the map. First posted on arXiv 24 May 2023.
Builds on
39 of 67 references.
References · 39
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,462
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2017Billion-scale similarity search with GPUscited by 2,477
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
27 more
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
- 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 934
- 2019DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphscited by 883
- 2023StarCoder: may the source be with you!cited by 790
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
- 2019PAWS: Paraphrase Adversaries from Word Scramblingcited by 395
- 2022The Stack: 3 TB of permissively licensed source codecited by 354
- 2022Dynamic Prompt Learning via Policy Gradient for Semi-structured Mathematical Reasoningcited by 347
- 2019Measuring Compositional Generalization: A Comprehensive Method on Realistic Datacited by 280
- 2022Selective Annotation Makes Language Models Better Few-Shot Learnerscited by 242
- 2022Exploring Length Generalization in Large Language Modelscited by 204
- 2022In-context Examples Selection for Machine Translationcited by 172
- 2022Self-Adaptive In-Context Learning: An Information Compression Perspective for In-Context Example Selection and Orderingcited by 158
- 2020MTOP: A Comprehensive Multilingual Task-Oriented Semantic Parsing Benchmarkcited by 156
- 2023Compositional Exemplars for In-context Learningcited by 143
- 2022Diverse Demonstrations Improve In-context Compositional Generalizationcited by 136
- 2018Improving Text-to-SQL Evaluation Methodologycited by 133
- 2020Break It Down: A Question Understanding Benchmarkcited by 131
- 2020Task-Oriented Dialogue as Dataflow Synthesiscited by 122
- 2022Compositional Semantic Parsing with Large Language Modelscited by 95
- 2022Complementary Explanations for Effective In-Context Learningcited by 71
- 2022Evaluating the Impact of Model Scale for Compositional Generalization in Semantic Parsingcited by 50
- 2021Improving Compositional Generalization with Latent Structure and Data Augmentationcited by 46
- 2022Structurally Diverse Sampling for Sample-Efficient Training and Comprehensive Evaluationcited by 8
- 2021Question Decomposition with Dependency Graphscited by 7
- 2022Simplifying Semantic Annotations of SMCalFlowcited by 7
Built on by
Citing papers per year: 2023: 5; 2024: 19; 2025: 23; 2026: 11.
58 papers.
Sort:
By area:
- 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 126
- 2023Pearl: Personalizing Large Language Model Writing Assistants with Generation-Calibrated Retrieverscited by 91
- 2024Prompt Optimization with EASE? Efficient Ordering-aware Automated Selection of Exemplarscited by 37
- 2024Task Facet Learning: A Structured Approach to Prompt Optimizationcited by 17
- 2024On the Noise Robustness of In-Context Learning for Text Generationcited by 15
- 2025Understanding and Improving Information Preservation in Prompt Compression for LLMscited by 13
- 2024Few-shot clinical entity recognition in English, French and Spanish: masked language models outperform generative model promptingcited by 12
- 2023Leveraging Code to Improve In-context Learning for Semantic Parsingcited by 10
- 2024From Introspection to Best Practices: Principled Analysis of Demonstrations in Multimodal In-Context Learningcited by 10
- 2025Assessing the Macro and Micro Effects of Random Seeds on Fine-Tuning Large Language Modelscited by 10
- 2024Learning to Reason via Program Generation, Emulation, and Searchcited by 9
- 2024Effective Demonstration Annotation for In-Context Learning via Language Model-Based Determinantal Point Processcited by 9
38 more
- 2024From Instructions to Constraints: Language Model Alignment with Automatic Constraint Verificationcited by 8
- 2024Retrieving Examples from Memory for Retrieval Augmented Neural Machine Translation: A Systematic Comparisoncited by 7
- 2024Speechworthy Instruction-tuned Language Modelscited by 7
- 2024Demonstration Selection for In-Context Learning via Reinforcement Learningcited by 7
- 2025Meta-Prompt Optimization for LLM-Based Sequential Decision Makingcited by 7
- 2023GistScore: Learning Better Representations for In-Context Example Selection with Gist Bottleneckscited by 6
- 2025OptiSeq: Ordering Examples On-The-Fly for In-Context Learningcited by 6
- 2025The Role of Diversity in In-Context Learning for Large Language Modelscited by 6
- 2025ProCut: LLM Prompt Compression via Attribution Estimationcited by 5
- 2025Leveraging In-Context Learning for Language Model Agentscited by 4
- 2025Unraveling Indirect In-Context Learning Using Influence Functionscited by 3
- 2025Topic Coverage-based Demonstration Retrieval for In-Context Learningcited by 3
- 2023Using Natural Language Explanations to Improve Robustness of In-context Learningcited by 2
- 2023Take One Step at a Time to Know Incremental Utility of Demonstration: An Analysis on Reranking for Few-Shot In-Context Learningcited by 2
- 2024Concept-aware Data Construction Improves In-context Learning of Language Modelscited by 2
- 2024Effective In-Context Example Selection through Data Compressioncited by 2
- 2025Re-ranking Using Large Language Models for Mitigating Exposure to Harmful Content on Social Media Platformscited by 2
- 2025Incomplete In-context Learningcited by 2
- 2025Exploring Explanations Improves the Robustness of In-Context Learningcited by 2
- 2025Distilling Many-Shot In-Context Learning into a Cheat Sheetcited by 2
- 2026Optimal Skill Selection for LLM Agents with Provable Bicriteria Guaranteescited by 2
- 2024ParaICL: Towards Parallel In-Context Learningcited by 1
- 2024SCOI: Syntax-augmented Coverage-based In-context Example Selection for Machine Translationcited by 1
- 2025Learning to Substitute Components for Compositional Generalizationcited by 1
- 2025"Whose Side Are You On?" Estimating Ideology of Political and News Content Using Large Language Models and Few-shot Demonstration Selectioncited by 1
- 2025Diverse In-Context Example Selection After Decomposing Programs and Aligned Utterances Improves Semantic Parsingcited by 1
- 2025Boosting In-Context Learning in LLMs Through the Lens of Classical Supervised Learningcited by 1
- 2025Tuning without Peeking: Provable Generalization Bounds and Robust LLM Post-Trainingcited by 1
- 2025Continual Learning of Domain Knowledge from Human Feedback in Text-to-SQLcited by 1
- 2026Towards Effective In-context Cross-domain Knowledge Transfer via Domain-invariant-neurons-based Retrievalcited by 1
- 2026Reason Analogically via Cross-domain Prior Knowledge: An Empirical Study of Cross-domain Knowledge Transfer for In-Context Learningcited by 1
- 2026Towards Reliable, Generalizable, and Specific In-Context Knowledge Editing via Multi-Objective Reinforcement Learningcited by 1
- 2024Ungrammatical-syntax-based In-context Example Selection for Grammatical Error Correctioncited by 0
- 2024In-Context Learning with Reinforcement Learning for Incomplete Utterance Rewritingcited by 0
- 2024What Is Wrong with My Model? Identifying Systematic Problems with Semantic Data Slicingcited by 0
- 2025Improving Dialogue State Tracking through Combinatorial Search for In-Context Examplescited by 0
- 2025Rethinking Reasoning in LLMs: Neuro-Symbolic Local RetoMaton Beyond ICL and CoTcited by 0
- 2025Retrieval and Augmentation of Domain Knowledge for Text-to-SQL Semantic Parsingcited by 0
50 most cited of 58 All 58 (JSON)
- 2026You Only Edit Once: Incentivizing In-Context Capability of LLMs via Local Demonstration Refinement27 Sep 2026
- 2026Beyond Similarity: Coverage-Aware Prompt Selection for Time Series Forecasting with LLMs19 Sep 2026
- 2026Towards Reliable, Generalizable, and Specific In-Context Knowledge Editing via Multi-Objective Reinforcement Learning25 Aug 2026
- 2026Optimal Skill Selection for LLM Agents with Provable Bicriteria Guarantees20 Aug 2026
- 2026GRAIN: Group Aggregation via Min-Norm Objective22 Jun 2026
- 2026When Correct Demonstrations Hurt: Rethinking the Role of Exemplars in In-Context Learning25 May 2026
- 2026Dynamic Scaled Gradient Descent for Stable Fine-Tuning for Classifications30 Apr 2026
- 2026UCS: Estimating Unseen Coverage for Improved In-Context Learning13 Apr 2026
- 2026Reason Analogically via Cross-domain Prior Knowledge: An Empirical Study of Cross-domain Knowledge Transfer for In-Context Learning7 Apr 2026
- 2026Towards Effective In-context Cross-domain Knowledge Transfer via Domain-invariant-neurons-based Retrieval7 Apr 2026
- 2026Meta-Sel: Efficient Demonstration Selection for In-Context Learning via Supervised Meta-Learning12 Feb 2026
- 2025Continual Learning of Domain Knowledge from Human Feedback in Text-to-SQL10 Nov 2025
38 more
- 2025Combining Distantly Supervised Models with In Context Learning for Monolingual and Cross-Lingual Relation Extraction21 Oct 2025
- 2025Retrieval and Augmentation of Domain Knowledge for Text-to-SQL Semantic Parsing1 Oct 2025
- 2025Distilling Many-Shot In-Context Learning into a Cheat Sheet25 Sep 2025
- 2025Topic Coverage-based Demonstration Retrieval for In-Context Learning15 Sep 2025
- 2025Rethinking Reasoning in LLMs: Neuro-Symbolic Local RetoMaton Beyond ICL and CoT22 Aug 2025
- 2025ProCut: LLM Prompt Compression via Attribution Estimation4 Aug 2025
- 2025Tuning without Peeking: Provable Generalization Bounds and Robust LLM Post-Training2 Jul 2025
- 2025Leveraging In-Context Learning for Language Model Agents16 Jun 2025
- 2025Exploring Explanations Improves the Robustness of In-Context Learning3 Jun 2025
- 2025Improving Dialogue State Tracking through Combinatorial Search for In-Context Examples31 May 2025
- 2025The Role of Diversity in In-Context Learning for Large Language Models26 May 2025
- 2025Boosting In-Context Learning in LLMs Through the Lens of Classical Supervised Learning22 May 2025
- 2025Incomplete In-context Learning12 May 2025
- 2025Diverse In-Context Example Selection After Decomposing Programs and Aligned Utterances Improves Semantic Parsing4 Apr 2025
- 2025Understanding and Improving Information Preservation in Prompt Compression for LLMs24 Mar 2025
- 2025"Whose Side Are You On?" Estimating Ideology of Political and News Content Using Large Language Models and Few-shot Demonstration Selection23 Mar 2025
- 2025Assessing the Macro and Micro Effects of Random Seeds on Fine-Tuning Large Language Models10 Mar 2025
- 2025Learning to Substitute Components for Compositional Generalization28 Feb 2025
- 2025Meta-Prompt Optimization for LLM-Based Sequential Decision Making2 Feb 2025
- 2025OptiSeq: Ordering Examples On-The-Fly for In-Context Learning25 Jan 2025
- 2025Re-ranking Using Large Language Models for Mitigating Exposure to Harmful Content on Social Media Platforms23 Jan 2025
- 2025Unraveling Indirect In-Context Learning Using Influence Functions1 Jan 2025
- 2024Demonstration Selection for In-Context Learning via Reinforcement Learning5 Dec 2024
- 2024Speechworthy Instruction-tuned Language Models23 Sep 2024
- 2024What Is Wrong with My Model? Identifying Systematic Problems with Semantic Data Slicing14 Sep 2024
- 2024In-Context Learning with Reinforcement Learning for Incomplete Utterance Rewriting23 Aug 2024
- 2024SCOI: Syntax-augmented Coverage-based In-context Example Selection for Machine Translation9 Aug 2024
- 2024Effective Demonstration Annotation for In-Context Learning via Language Model-Based Determinantal Point Process4 Aug 2024
- 2024From Introspection to Best Practices: Principled Analysis of Demonstrations in Multimodal In-Context Learning1 Jul 2024
- 2024Task Facet Learning: A Structured Approach to Prompt Optimization15 Jun 2024
- 2024On the Noise Robustness of In-Context Learning for Text Generation27 May 2024
- 2024Learning to Reason via Program Generation, Emulation, and Search25 May 2024
- 2024Prompt Optimization with EASE? Efficient Ordering-aware Automated Selection of Exemplars25 May 2024
- 2024Effective In-Context Example Selection through Data Compression19 May 2024
- 2024In-Context Learning with Long-Context Models: An In-Depth Exploration30 Apr 2024
- 2024Retrieving Examples from Memory for Retrieval Augmented Neural Machine Translation: A Systematic Comparison3 Apr 2024
- 2024ParaICL: Towards Parallel In-Context Learning31 Mar 2024
- 2024Ungrammatical-syntax-based In-context Example Selection for Grammatical Error Correction28 Mar 2024
50 newest of 58 All 58 (JSON)
- 2024In-Context Learning with Long-Context Models: An In-Depth Explorationcited by 126
- 2023Pearl: Personalizing Large Language Model Writing Assistants with Generation-Calibrated Retrieverscited by 91
- 2024Prompt Optimization with EASE? Efficient Ordering-aware Automated Selection of Exemplarscited by 37
- 2024Task Facet Learning: A Structured Approach to Prompt Optimizationcited by 17
- 2024On the Noise Robustness of In-Context Learning for Text Generationcited by 15
- 2024Few-shot clinical entity recognition in English, French and Spanish: masked language models outperform generative model promptingcited by 12
- 2023Leveraging Code to Improve In-context Learning for Semantic Parsingcited by 10
- 2025Assessing the Macro and Micro Effects of Random Seeds on Fine-Tuning Large Language Modelscited by 10
- 2024Effective Demonstration Annotation for In-Context Learning via Language Model-Based Determinantal Point Processcited by 9
- 2024Speechworthy Instruction-tuned Language Modelscited by 7
- 2024Demonstration Selection for In-Context Learning via Reinforcement Learningcited by 7
- 2025Meta-Prompt Optimization for LLM-Based Sequential Decision Makingcited by 7
12 most cited of 42 All 42 (JSON)
- 2026You Only Edit Once: Incentivizing In-Context Capability of LLMs via Local Demonstration Refinement27 Sep 2026
- 2026Towards Reliable, Generalizable, and Specific In-Context Knowledge Editing via Multi-Objective Reinforcement Learning25 Aug 2026
- 2026GRAIN: Group Aggregation via Min-Norm Objective22 Jun 2026
- 2026When Correct Demonstrations Hurt: Rethinking the Role of Exemplars in In-Context Learning25 May 2026
- 2026Dynamic Scaled Gradient Descent for Stable Fine-Tuning for Classifications30 Apr 2026
- 2026UCS: Estimating Unseen Coverage for Improved In-Context Learning13 Apr 2026
- 2026Reason Analogically via Cross-domain Prior Knowledge: An Empirical Study of Cross-domain Knowledge Transfer for In-Context Learning7 Apr 2026
- 2026Meta-Sel: Efficient Demonstration Selection for In-Context Learning via Supervised Meta-Learning12 Feb 2026
- 2025Combining Distantly Supervised Models with In Context Learning for Monolingual and Cross-Lingual Relation Extraction21 Oct 2025
- 2025Retrieval and Augmentation of Domain Knowledge for Text-to-SQL Semantic Parsing1 Oct 2025
- 2025Distilling Many-Shot In-Context Learning into a Cheat Sheet25 Sep 2025
- 2025Topic Coverage-based Demonstration Retrieval for In-Context Learning15 Sep 2025
12 newest of 42 All 42 (JSON)