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

通过相似性搜索进行上下文示例选择可改善低资源机器翻译

In-Context Example Selection via Similarity Search Improves Low-Resource Machine Translation

Inria(法国国家信息与自动化研究所)

Armel Zebaze, Benoît Sagot, Rachel Bawden

AI总结:

本文系统研究了基于句子嵌入相似性的上下文示例选择对机器翻译的影响,发现该方法尤其能改善低资源语言方向的翻译效果,并提出适配LLM的COMET评估协议。

摘要:

生成式大语言模型(LLMs)执行上下文学习的能力引发了大量关于如何为各种自然语言处理任务最佳提示模型的研究。本文聚焦于机器翻译(MT),该任务已被证明能从上下文翻译示例中受益。然而,关于如何最佳选择示例的系统性研究尚未发表,并且关于基于相似性的选择相对于随机选择是否有用,已有研究报告了不一致的结果。我们提供了一项覆盖多个LLMs和多种上下文示例检索策略的研究,比较了多语言句子嵌入。我们覆盖了多个语言方向,代表不同水平的语言资源丰富程度(英语到法语、德语、斯瓦希里语和沃洛夫语)。与先前发表的结果相反,我们发现句子嵌入相似性可以改善MT,尤其是对于低资源语言方向,并讨论了选择池多样性与质量之间的平衡。我们还强调了基于LLM的MT评估中潜在的问题,并提出了一种更合适的评估协议,将COMET指标适配于LLMs的评估。代码和输出可在 https://github.com/ArmelRandy/ICL-MT 免费获取。

英文摘要:

The ability of generative large language models (LLMs) to perform in-context learning has given rise to a large body of research into how best to prompt models for various natural language processing tasks. In this paper, we focus on machine translation (MT), a task that has been shown to benefit from in-context translation examples. However no systematic studies have been published on how best to select examples, and mixed results have been reported on the usefulness of similarity-based selection over random selection. We provide a study covering multiple LLMs and multiple in-context example retrieval strategies, comparing multilingual sentence embeddings. We cover several language directions, representing different levels of language resourcedness (English into French, German, Swahili and Wolof). Contrarily to previously published results, we find that sentence embedding similarity can improve MT, especially for low-resource language directions, and discuss the balance between selection pool diversity and quality. We also highlight potential problems with the evaluation of LLM-based MT and suggest a more appropriate evaluation protocol, adapting the COMET metric to the evaluation of LLMs. Code and outputs are freely available at https://github.com/ArmelRandy/ICL-MT.

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

↑