Exploring the Role of Diversity in Example Selection for In-Context Learning
Not on the map. Why?
Abstract (arXiv)
In-Context Learning (ICL) has gained prominence due to its ability to perform tasks without requiring extensive training data and its robustness to noisy labels. A typical ICL workflow involves selecting localized examples relevant to a given input using sparse or dense embedding-based similarity functions. However, relying solely on similarity-based selection may introduce topical biases in the retrieved contexts, potentially leading to suboptimal downstream performance. We posit that reranking the retrieved context to enhance topical diversity can improve downstream task performance. To achieve this, we leverage maximum marginal relevance (MMR) which balances topical similarity with inter-example diversity. Our experimental results demonstrate that diversifying the selected examples leads to consistent improvements in downstream performance across various context sizes and similarity functions. The implementation of our approach is made available at https://github.com/janak11111/Diverse-ICL.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). First posted on arXiv 3 May 2025.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 4; 2026: 8.
12 papers.
- 2025Catch Me If You Can? Not Yet: LLMs Still Struggle to Imitate the Implicit Writing Styles of Everyday Authorscited by 10
- 2026Many-Shot CoT-ICL: Making In-Context Learning Truly Learncited by 3
- 2025CG-TTRL: Context-Guided Test-Time Reinforcement Learning for On-Device Large Language Modelscited by 2
- 2025CIEGAD: Cluster-Conditioned Interpolative and Extrapolative Framework for Geometry-Aware and Domain-Aligned Data Augmentationcited by 1
- 2026Structured Semantic Information Helps Retrieve Better Examples for In-Context Learning Applied to Few-Shot Relation Extractioncited by 1
- 2025Combining Distantly Supervised Models with In Context Learning for Monolingual and Cross-Lingual Relation Extractioncited by 0
- 2026When Does Context Help? Error Dynamics of Contextual Information in Large Language Modelscited by 0
- 2026Design-Specification Tiling for ICL-based CAD Code Generationcited by 0
- 2026SCOPE: A Lightweight-training LLM Framework for Air Traffic Control Readback Monitoringcited by 0
- 2026Toward Robust In-Context Learning: Leveraging Out-of-distribution Proxies for Target Inaccessible Demonstration Retrievalcited by 0
- 2026In-Context Learning for Wound Classification with Small Multimodal Language Modelscited by 0
- 2026Surprising Effectiveness of Self-Demonstrations in Enhancing Schema-Ontology Mapping with LLMscited by 0
- 2026Surprising Effectiveness of Self-Demonstrations in Enhancing Schema-Ontology Mapping with LLMs12 Sep 2026
- 2026In-Context Learning for Wound Classification with Small Multimodal Language Models21 Jul 2026
- 2026SCOPE: A Lightweight-training LLM Framework for Air Traffic Control Readback Monitoring28 May 2026
- 2026Many-Shot CoT-ICL: Making In-Context Learning Truly Learn13 May 2026
- 2026Toward Robust In-Context Learning: Leveraging Out-of-distribution Proxies for Target Inaccessible Demonstration Retrieval13 Apr 2026
- 2026Design-Specification Tiling for ICL-based CAD Code Generation13 Mar 2026
- 2026When Does Context Help? Error Dynamics of Contextual Information in Large Language Models9 Feb 2026
- 2026Structured Semantic Information Helps Retrieve Better Examples for In-Context Learning Applied to Few-Shot Relation Extraction28 Jan 2026
- 2025CIEGAD: Cluster-Conditioned Interpolative and Extrapolative Framework for Geometry-Aware and Domain-Aligned Data Augmentation11 Dec 2025
- 2025CG-TTRL: Context-Guided Test-Time Reinforcement Learning for On-Device Large Language Models9 Nov 2025
- 2025Combining Distantly Supervised Models with In Context Learning for Monolingual and Cross-Lingual Relation Extraction21 Oct 2025
- 2025Catch Me If You Can? Not Yet: LLMs Still Struggle to Imitate the Implicit Writing Styles of Everyday Authors18 Sep 2025