arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2106.08122cs.CLcs.LG
收藏

非自回归神经机器翻译的序列级训练

Sequence-Level Training for Non-Autoregressive Neural Machine Translation

WeChat AI, Tencent Inc(腾讯公司微信AI)

Chenze Shao, Yang Feng, Jinchao Zhang, Fandong Meng, Jie Zhou

摘要:

近年来,神经机器翻译(NMT)在各种翻译任务中取得了显著的成绩。然而,由自回归机制决定的逐词生成方式导致了NMT的高翻译延迟,限制了其低延迟应用。非自回归神经机器翻译(NAT)消除了自回归机制,通过同时独立地生成目标词,实现了显著的解码加速。然而,NAT仍然以词级交叉熵损失作为训练目标,这不是最优的,因为NAT的输出由于多模态问题而不能被正确地评估。在这篇文章中,我们提出使用序列级训练目标来训练NAT模型,它从整体上评估NAT输出,并与真实的翻译质量很好地相关。首先,我们提出了训练NAT模型来优化序列级评估指标(例如,BLEU)基于几种新的NAT增强算法,通过减小梯度估计的方差,获得了比传统方法更好的增强效果。其次,我们为NAT模型引入了一个新的训练目标,旨在最大限度地减少模型输出和参考句子之间的Bag-of-Ngrams(BoN)差异。BoN训练目标是可微的,并且可以在不进行任何近似的情况下有效地计算。最后,我们采用一个三阶段的训练策略,将这两种方法结合起来,对NAT模型进行训练。我们验证了我们的方法在四个翻译任务(WMT 14 En $\leftrightarrow$ De,WMT 16 En $\leftrightarrow$ Ro),这表明,我们的方法大大优于NAT基线,并在所有翻译任务上实现了卓越的性能。源代码可在https://github.com/ictnlp/Seq-NAT上获得。

英文摘要:

In recent years, Neural Machine Translation (NMT) has achieved notable results in various translation tasks. However, the word-by-word generation manner determined by the autoregressive mechanism leads to high translation latency of the NMT and restricts its low-latency applications. Non-Autoregressive Neural Machine Translation (NAT) removes the autoregressive mechanism and achieves significant decoding speedup through generating target words independently and simultaneously. Nevertheless, NAT still takes the word-level cross-entropy loss as the training objective, which is not optimal because the output of NAT cannot be properly evaluated due to the multimodality problem. In this article, we propose using sequence-level training objectives to train NAT models, which evaluate the NAT outputs as a whole and correlates well with the real translation quality. Firstly, we propose training NAT models to optimize sequence-level evaluation metrics (e.g., BLEU) based on several novel reinforcement algorithms customized for NAT, which outperforms the conventional method by reducing the variance of gradient estimation. Secondly, we introduce a novel training objective for NAT models, which aims to minimize the Bag-of-Ngrams (BoN) difference between the model output and the reference sentence. The BoN training objective is differentiable and can be calculated efficiently without doing any approximations. Finally, we apply a three-stage training strategy to combine these two methods to train the NAT model. We validate our approach on four translation tasks (WMT14 En$\leftrightarrow$De, WMT16 En$\leftrightarrow$Ro), which shows that our approach largely outperforms NAT baselines and achieves remarkable performance on all translation tasks. The source code is available at https://github.com/ictnlp/Seq-NAT.

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

↑