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

通过源对比解码与语言对比解码缓解机器翻译中的幻觉与偏离目标问题

Mitigating Hallucinations and Off-target Machine Translation with Source-Contrastive and Language-Contrastive Decoding

University of Zurich(苏黎世大学);University of Edinburgh(爱丁堡大学);EPFL(洛桑联邦理工学院)

Rico Sennrich, Jannis Vamvas, Alireza Mohammadshahi

AI总结:

针对机器翻译的幻觉与偏离目标问题,提出无需重训的源对比和语言对比解码方法,在多语言模型上显著降低两类问题发生率,且可扩展至大语言模型。

摘要:

幻觉与偏离目标翻译仍是机器翻译领域尚未解决的问题,在低资源语言和大规模多语言模型中尤为突出。本文提出两种相关方法,通过修改解码目标来缓解这类失效情况,无需重新训练模型,也不需要外部模型。在源对比解码中,我们寻找在正确输入下概率高、但在随机输入片段下概率低的译文。在语言对比解码中,我们寻找概率高、但在错误语言指示符标记下概率低的译文。在大规模多语言模型M2M-100(418M参数)和SMaLL-100上的实验表明,这些方法能够抑制幻觉和偏离目标翻译:在57个被测翻译方向上,片段级chrF2低于10的翻译数量平均减少67%-83%,振荡型幻觉的翻译数量平均减少75%-92%。在一项英译外翻译的概念验证实验中,我们还证明该方法可在大语言模型上抑制偏离目标翻译。我们已在https://github.com/ZurichNLP/ContraDecode 发布源代码。

英文摘要:

Hallucinations and off-target translation remain unsolved problems in MT, especially for low-resource languages and massively multilingual models. In this paper, we introduce two related methods to mitigate these failure cases with a modified decoding objective, without either requiring retraining or external models. In source-contrastive decoding, we search for a translation that is probable given the correct input, but improbable given a random input segment. In language-contrastive decoding, we search for a translation that is probable, but improbable given the wrong language indicator token. Experiments on the massively multilingual models M2M-100 (418M) and SMaLL-100 show that these methods suppress hallucinations and off-target translations, reducing the number of translations with segment-level chrF2 below 10 by 67-83% on average, and the number of translations with oscillatory hallucinations by 75-92% on average, across 57 tested translation directions. In a proof of concept on out-of-English translation, we also show that we can suppress off-target translations with large language models. We release our source code at https://github.com/ZurichNLP/ContraDecode.

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

↑