Enhancing Contrastive Demonstration Selection with Semantic Diversity for Robust In-Context Machine Translation
Not on the map. Why?
Abstract (arXiv)
In-Context Learning (ICL) empowers large language models to perform tasks by conditioning on a few input-output examples. However, the performance of ICL is highly sensitive to the selection of these demonstrations. While existing methods focus on similarity or contrastive selection, they often overlook the importance of diversity among the chosen examples. In this paper, we propose DiverseConE (Diversity-Enhanced Contrastive Example Selection), a novel approach for demonstration selection in in-context learning for machine translation. Our method builds upon contrastive selection by incorporating a diversity enhancement step based on embedding space dissimilarity. We conduct extensive experiments on the Llama2-7b model across four language pairs (English-Chinese, Chinese-English, Russian-German, German-Russian) in 1-shot and 3-shot settings, using COMET20 and COMET22 for evaluation. Our results demonstrate that DiverseConE consistently outperforms strong baseline methods, including random selection, BM25, TopK, and a state-of-the-art contrastive selection method. Further analysis, including diversity metrics and human evaluation, validates the effectiveness of our approach and highlights the benefits of considering demonstration diversity for improved translation quality.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 21 of its 27 references that are in the map. First posted on arXiv 12 Apr 2025.
Builds on
21 of 27 references.
References · 21
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,474
- 2021MetaICL: Learning to Learn In Contextcited by 454
- 2023CMMLU: Measuring massive multitask language understanding in Chinesecited by 449
- 2024The Era of 1-bit LLMs: All Large Language Models are in 1.58 Bitscited by 308
- 2022Diverse Demonstrations Improve In-context Compositional Generalizationcited by 139
- 2024Visual In-Context Learning for Large Vision-Language Modelscited by 128
- 2022Language Models with Image Descriptors are Strong Few-Shot Video-Language Learnerscited by 117
- 2024Revisiting Demonstration Selection Strategies in In-Context Learningcited by 58
- 2023Steering Large Language Models for Machine Translation with Finetuning and In-Context Learningcited by 49
- 2024Rethinking Visual Dependency in Long-Context Reasoning for Large Vision-Language Modelscited by 42
9 more
- 2022Towards Robust Ranker for Text Retrievalcited by 37
- 2022In-context Learning Distillation: Transferring Few-shot Learning Ability of Pre-trained Language Modelscited by 37
- 2025EmoBench-M: Benchmarking Emotional Intelligence for Multimodal Large Language Modelscited by 32
- 2022Fine-Grained Distillation for Long Document Retrievalcited by 29
- 2023The Shaky Foundations of Clinical Foundation Models: A Survey of Large Language Models and Foundation Models for EMRscited by 29
- 2024C-ICL: Contrastive In-context Learning for Information Extractioncited by 23
- 2023Multimodal Event Transformer for Image-guided Story Ending Generationcited by 21
- 2024InstructPatentGPT: Training patent language models to follow instructions with human feedbackcited by 19
- 2024Large Vision-Language Models as Emotion Recognizers in Context Awarenesscited by 12
Built on by
Not cited yet.