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

机器翻译中的并行注意力强迫

Parallel Attention Forcing for Machine Translation

University of Cambridge(剑桥大学)

Qingyun Dou, Mark Gales

摘要:

基于注意力的自回归模型已经在各种序列到序列任务(包括文本到语音(TTS)和神经机器翻译(NMT))中实现了最先进的性能,但是可能难以训练。标准的培训方法,教师强迫,指导一个模型与参考回溯历史。在推理过程中,必须使用生成的回溯历史。这种不匹配限制了评估性能。引入了注意力强制来解决不匹配问题,用生成的背景历史和参考注意力来指导模型。虽然在像TTS这样的连续输出任务中取得了成功,但在像NMT这样的离散输出任务中,注意力强迫面临着额外的挑战。本文介绍了两个扩展的注意力强迫来应对这些挑战。(1)预定的注意力强制会自动打开和关闭注意力强制,这对于具有离散输出的任务至关重要。(2)并行注意力强制使训练并行,适用于基于transformer的模型。实验结果表明,该方法提高了基于RNN和Transformers的模型的性能。

英文摘要:

Attention-based autoregressive models have achieved state-of-the-art performance in various sequence-to-sequence tasks, including Text-To-Speech (TTS) and Neural Machine Translation (NMT), but can be difficult to train. The standard training approach, teacher forcing, guides a model with the reference back-history. During inference, the generated back-history must be used. This mismatch limits the evaluation performance. Attention forcing has been introduced to address the mismatch, guiding the model with the generated back-history and reference attention. While successful in tasks with continuous outputs like TTS, attention forcing faces additional challenges in tasks with discrete outputs like NMT. This paper introduces the two extensions of attention forcing to tackle these challenges. (1) Scheduled attention forcing automatically turns attention forcing on and off, which is essential for tasks with discrete outputs. (2) Parallel attention forcing makes training parallel, and is applicable to Transformer-based models. The experiments show that the proposed approaches improve the performance of models based on RNNs and Transformers.

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

↑