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

对负样本进行非似然调优惊人地改善了零样本翻译

Unlikelihood Tuning on Negative Samples Amazingly Improves Zero-Shot Translation

China University of Petroleum (East China)(中国石油大学(华东));Zhejiang University(浙江大学);University of Sydney(悉尼大学);JD Explore Academy at JD.com(京东探索研究院);University of Amsterdam(阿姆斯特丹大学)

Changtong Zan, Liang Ding, Li Shen, Yibin Lei, Yibing Zhan, Weifeng Liu, Dacheng Tao

AI总结:

针对零样本翻译中语言ID易受脱靶token干扰的问题,本文通过对比ON/OFF表示揭示其失效原因,并对负样本进行非似然调优,在40个方向上显著降低脱靶率并提升BLEU。

摘要:

零样本翻译(ZST)通常基于多语言神经机器翻译模型,旨在翻译训练数据中未见过的语言对。在推理过程中引导零样本语言映射的常见做法是刻意插入源语言和目标语言ID,例如英语的<EN>和德语的<DE>。近期研究表明,语言ID有时无法引导ZST任务,导致模型遭遇脱靶问题(生成的译文中存在非目标语言词汇),因此难以将当前的多语言翻译模型应用于广泛的零样本语言场景。为理解语言ID的导航能力何时以及为何被削弱,我们比较了ZST方向上两种极端的解码器输入情况:脱靶(OFF)和命中目标(ON)情况。通过在teacher forcing下对比可视化这些情况的上下文词表示(CWR),我们表明:1)当句子与ID匹配时(ON设置),不同语言的CWR有效地分布在相互分离的区域中;2)如果句子与ID不匹配(OFF设置),不同语言的CWR则呈混乱分布。我们的分析表明,尽管语言ID在理想的ON设置下运行良好,但面对推理过程中普遍存在而训练场景中罕见的脱靶token时,它们会变得脆弱并失去导航能力。作为应对,我们对负(OFF)样本采用非似然调优,以最小化其概率,从而使语言ID能够在训练期间区分命中目标和脱靶token。涵盖40个ZST方向的实验表明,我们的方法平均将脱靶率降低了48.0%,带来9.1 BLEU的提升,而仅产生0.3%的额外调优成本。

英文摘要:

Zero-shot translation (ZST), which is generally based on a multilingual neural machine translation model, aims to translate between unseen language pairs in training data. The common practice to guide the zero-shot language mapping during inference is to deliberately insert the source and target language IDs, e.g., <EN> for English and <DE> for German. Recent studies have shown that language IDs sometimes fail to navigate the ZST task, making them suffer from the off-target problem (non-target language words exist in the generated translation) and, therefore, difficult to apply the current multilingual translation model to a broad range of zero-shot language scenarios. To understand when and why the navigation capabilities of language IDs are weakened, we compare two extreme decoder input cases in the ZST directions: Off-Target (OFF) and On-Target (ON) cases. By contrastively visualizing the contextual word representations (CWRs) of these cases with teacher forcing, we show that 1) the CWRs of different languages are effectively distributed in separate regions when the sentence and ID are matched (ON setting), and 2) if the sentence and ID are unmatched (OFF setting), the CWRs of different languages are chaotically distributed. Our analyses suggest that although they work well in ideal ON settings, language IDs become fragile and lose their navigation ability when faced with off-target tokens, which commonly exist during inference but are rare in training scenarios. In response, we employ unlikelihood tuning on the negative (OFF) samples to minimize their probability such that the language IDs can discriminate between the on- and off-target tokens during training. Experiments spanning 40 ZST directions show that our method reduces the off-target ratio by -48.0% on average, leading to a +9.1 BLEU improvement with only an extra +0.3% tuning cost.

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

↑