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

神经机器翻译的混合交叉熵损失

Mixed Cross Entropy Loss for Neural Machine Translation

Singapore University of Technology and Design(新加坡科技设计大学)

Haoran Li, Wei Lu

摘要:

在神经机器翻译中,交叉熵(CE)是自回归模型的两种训练方法中的标准损失函数,即,教师强迫和定时抽样。在本文中,我们提出了混合交叉熵损失(混合CE)作为CE在两种训练方法中的替代品。在教师强迫中,用CE训练的模型将翻译问题视为一对一的映射过程,而在混合CE中,这个过程可以放宽到一对多。在计划抽样中,我们表明,混合CE有可能鼓励训练和测试行为彼此相似,更有效地减轻暴露偏差问题。我们在几个机器翻译数据集上证明了混合CE优于CE,WMT'16 Ro-En,WMT'16 Ru-En和WMT'14 En-De在教师强制和计划采样设置中。此外,在WMT'14 En-De中,我们还发现混合CE在多参考集以及具有挑战性的释义参考集上始终优于CE。我们还发现,使用混合CE训练的模型能够提供在翻译输出空间上定义的更好的概率分布。我们的代码可在https://github.com/haorannlp/mix上获得。

英文摘要:

In neural machine translation, cross entropy (CE) is the standard loss function in two training methods of auto-regressive models, i.e., teacher forcing and scheduled sampling. In this paper, we propose mixed cross entropy loss (mixed CE) as a substitute for CE in both training approaches. In teacher forcing, the model trained with CE regards the translation problem as a one-to-one mapping process, while in mixed CE this process can be relaxed to one-to-many. In scheduled sampling, we show that mixed CE has the potential to encourage the training and testing behaviours to be similar to each other, more effectively mitigating the exposure bias problem. We demonstrate the superiority of mixed CE over CE on several machine translation datasets, WMT'16 Ro-En, WMT'16 Ru-En, and WMT'14 En-De in both teacher forcing and scheduled sampling setups. Furthermore, in WMT'14 En-De, we also find mixed CE consistently outperforms CE on a multi-reference set as well as a challenging paraphrased reference set. We also found the model trained with mixed CE is able to provide a better probability distribution defined over the translation output space. Our code is available at https://github.com/haorannlp/mix.

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

↑