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

混合回归神经机器翻译

Hybrid-Regressive Neural Machine Translation

Cranberry-Lemon University(蔓越莓柠檬大学);University of the Witwatersrand(威特沃特斯兰德大学)

Qiang Wang, Xinhui Hu, Ming Chen

摘要:

在这项工作中,我们凭经验证实,非自回归翻译与迭代细化机制(IR-NAT)的加速鲁棒性差,因为它是解码批量大小和计算设备设置比自回归翻译(AT)更敏感。受此启发,我们试图探讨如何更好地结合自回归和非自回归翻译范式的优势。为此,我们证明,通过合成实验,促使少量的AT的预测可以促进一次性的非自回归翻译,以实现相当于IR-NAT的性能。按照这条线,我们提出了一个新的两阶段的翻译原型称为混合回归翻译(HRT)。具体地,HRT首先经由自回归(例如,每k个令牌进行预测,k>1),然后以非自回归方式一次填充所有先前跳过的令牌。我们还提出了一个技术包,有效地和高效地训练HRT,而不添加任何模型参数。HRT在WMT En-De任务上达到了最先进的BLEU分数28.49,并且无论批量大小和设备如何,都比AT快至少1.5倍。此外,HRT的另一个好处是,它成功地继承了AT在深编码器浅解码器架构中的良好特性。具体地说,与具有6层编码器和6层解码器的普通HRT相比,具有12层编码器和1层解码器的HRT的推理速度在GPU和CPU上进一步加倍,而没有BLEU损失。

英文摘要:

In this work, we empirically confirm that non-autoregressive translation with an iterative refinement mechanism (IR-NAT) suffers from poor acceleration robustness because it is more sensitive to decoding batch size and computing device setting than autoregressive translation (AT). Inspired by it, we attempt to investigate how to combine the strengths of autoregressive and non-autoregressive translation paradigms better. To this end, we demonstrate through synthetic experiments that prompting a small number of AT's predictions can promote one-shot non-autoregressive translation to achieve the equivalent performance of IR-NAT. Following this line, we propose a new two-stage translation prototype called hybrid-regressive translation (HRT). Specifically, HRT first generates discontinuous sequences via autoregression (e.g., make a prediction every k tokens, k>1) and then fills in all previously skipped tokens at once in a non-autoregressive manner. We also propose a bag of techniques to effectively and efficiently train HRT without adding any model parameters. HRT achieves the state-of-the-art BLEU score of 28.49 on the WMT En-De task and is at least 1.5x faster than AT, regardless of batch size and device. In addition, another bonus of HRT is that it successfully inherits the good characteristics of AT in the deep-encoder-shallow-decoder architecture. Concretely, compared to the vanilla HRT with a 6-layer encoder and 6-layer decoder, the inference speed of HRT with a 12-layer encoder and 1-layer decoder is further doubled on both GPU and CPU without BLEU loss.

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

↑