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

组合式翻译:一种基于LLM的低资源机器翻译新方法

Compositional Translation: A Novel LLM-based Approach for Low-resource Machine Translation

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

Armel Zebaze, Benoît Sagot, Rachel Bawden

AI总结:

针对低资源机器翻译,提出组合式翻译范式:利用LLM将句子分解为短语并检索示例翻译,再借助自生成短语对辅助初始句子翻译,在多个主流基准上显著提升性能。

摘要:

生成式大型语言模型(LLMs)进行上下文学习的能力催生了大量关于如何最好地为各种自然语言处理任务提示模型的研究。机器翻译(MT)已被证明能从上下文示例中获益,特别是当这些示例与待翻译句子在语义上相似时。在本文中,我们提出了一种新的基于LLM的翻译范式——组合式翻译,用基于相似性的示例来替代简单的少样本MT。利用LLM将句子分解为更简单的短语,然后借助检索到的示例翻译每个短语。最后,提示LLM借助这些自生成的短语-翻译对来翻译初始句子。我们的直觉是,这种方法应该能改善翻译,因为这些较短的短语本质上更容易翻译,也更容易与相关示例匹配。这在低资源场景中尤其有益,并且更广泛地适用于选择池较小或域外的情况。我们表明,组合式翻译在包括FLORES 200、NTREX 128和TICO-19在内的广泛流行MT基准上提升了LLM的翻译性能。代码和输出可在https://github.com/ArmelRandy/compositional-translation获取

英文摘要:

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. Machine Translation (MT) has been shown to benefit from in-context examples, in particular when they are semantically similar to the sentence to translate. In this paper, we propose a new LLM-based translation paradigm, compositional translation, to replace naive few-shot MT with similarity-based demonstrations. An LLM is used to decompose a sentence into simpler phrases, and then to translate each phrase with the help of retrieved demonstrations. Finally, the LLM is prompted to translate the initial sentence with the help of the self-generated phrase-translation pairs. Our intuition is that this approach should improve translation because these shorter phrases should be intrinsically easier to translate and easier to match with relevant examples. This is especially beneficial in low-resource scenarios, and more generally whenever the selection pool is small or out of domain. We show that compositional translation boosts LLM translation performance on a wide range of popular MT benchmarks, including FLORES 200, NTREX 128 and TICO-19. Code and outputs are available at https://github.com/ArmelRandy/compositional-translation

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

↑