arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.09305cs.CL
收藏

通过语义多样性增强对比演示选择以提升上下文机器翻译的鲁棒性

Enhancing Contrastive Demonstration Selection with Semantic Diversity for Robust In-Context Machine Translation

Universiti Teknologi Malaysia(马来西亚工艺大学)

Owen Patterson, Chee Ng

AI总结:

针对上下文学习中演示选择忽视多样性的问题,提出DiverseConE方法,在对比选择基础上加入嵌入空间多样性增强步骤,实验证明其在多语言对翻译任务中持续优于多种基线方法,有效提升翻译质量。

摘要:

上下文学习(ICL)使大型语言模型能够通过参考少量输入输出示例执行任务。然而,ICL的性能对这些演示的选择高度敏感。现有方法虽关注相似性或对比选择,但往往忽视所选示例间多样性的重要性。本文提出DiverseConE(多样性增强对比示例选择),一种用于上下文机器翻译演示选择的新方法。该方法在对比选择基础上,加入基于嵌入空间差异性的多样性增强步骤。我们在Llama2-7b模型上针对四组语言对(英中、中英、俄德、德俄),在1-shot和3-shot设置下开展大量实验,使用COMET20和COMET22进行评估。结果表明,DiverseConE持续优于随机选择、BM25、TopK及最先进的对比选择方法等强基线。包括多样性指标和人工评估在内的进一步分析验证了该方法的有效性,并凸显考虑演示多样性对提升翻译质量的益处。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑