Toward Robust In-Context Learning: Leveraging Out-of-distribution Proxies for Target Inaccessible Demonstration Retrieval
Not on the map. Why?
Abstract (arXiv)
Although studies have demonstrated that Large Language Models (LLMs) can perform well on Out-of-Distribution (OOD) tasks, their advantage tends to diminish as the distribution shift becomes more severe. Consequently, researchers aim to retrieve distributionally similar and informative demonstrations from the available source domain to boost the inference capabilities of LLMs. However, in practical scenarios where the target domain is inaccessible, evaluating the unknown distribution is challenging, which indirectly impacts the quality of the selected demonstrations. To address this problem, we propose DOPA, a demonstration search framework that incorporates an OOD proxy to approximate the inaccessible target domain and guide the retrieval process. Building on proxy-based evaluation, DOPA further introduces a Mahalanobis distance-based global diversity constraint to ensure sufficient diversity among the retrieved demonstrations. Experimental results on multiple LLMs and tasks demonstrate that DOPA effectively enhances robustness in OOD settingsfootnotehttps://github.com/bort64/oodcode.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 27 of its 38 references that are in the map. First posted on arXiv 13 Apr 2026.
Builds on
27 of 38 references.
References · 27
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,173
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
- 2020Energy-based Out-of-distribution Detectioncited by 1,299
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
- 2019Likelihood Ratios for Out-of-Distribution Detectioncited by 453
- 2018Do Deep Generative Models Know What They Don't Know?cited by 443
- 2022In-context Examples Selection for Machine Translationcited by 172
- 2023Compositional Exemplars for In-context Learningcited by 144
- 2023Unified Demonstration Retriever for In-Context Learningcited by 142
- 2023Revisiting Out-of-distribution Robustness in NLP: Benchmark, Analysis, and LLMs Evaluationscited by 97
- 2023UPRISE: Universal Prompt Retrieval for Improving Zero-Shot Evaluationcited by 75
15 more
- 2023Dr.ICL: Demonstration-Retrieved In-context Learningcited by 72
- 2023RewriteLM: An Instruction-Tuned Large Language Model for Text Rewritingcited by 67
- 2024Revisiting Demonstration Selection Strategies in In-Context Learningcited by 58
- 2023Is Fine-tuning Needed? Pre-trained Language Models Are Near Perfect for Out-of-Domain Detectioncited by 29
- 2024Can In-context Learning Really Generalize to Out-of-distribution Tasks?cited by 23
- 2023Prompt Tuning Pushes Farther, Contrastive Learning Pulls Closer: A Two-Stage Approach to Mitigate Social Biasescited by 21
- 2024Misconfidence-based Demonstration Selection for LLM In-Context Learningcited by 14
- 2025Exploring the Role of Diversity in Example Selection for In-Context Learningcited by 12
- 2024In-Context Learning Demonstration Selection via Influence Analysiscited by 11
- 2024Your Finetuned Large Language Model is Already a Powerful Out-of-distribution Detectorcited by 11
- 2022Falsehoods that ML researchers believe about OOD detectioncited by 8
- 2024Improving Black-box Robustness with In-Context Rewritingcited by 8
- 2024Shortcut Learning in In-Context Learning: A Surveycited by 8
- 2024Out-of-Distribution Learning with Human Feedbackcited by 6
- 2023TACIT: A Target-Agnostic Feature Disentanglement Framework for Cross-Domain Text Classificationcited by 2
Built on by
Not cited yet.