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

单调多头注意力

Monotonic Multihead Attention

Facebook;Johns Hopkins University(约翰斯·霍普金斯大学)

Xutai Ma, Juan Pino, James Cross, Liezl Puzon, Jiatao Gu

摘要:

同步机器翻译模型在编码或读取源序列之前就开始生成目标序列。最近的方法,这项任务要么应用一个固定的政策,一个国家的最先进的Transformer模型,或学习单调关注一个较弱的递归神经网络为基础的结构。本文提出了一种新的注意力机制--单调多头注意(MMA),它将单调注意力机制推广到多头注意。我们还介绍了两种新颖的和可解释的方法,专门为多个注意力头的延迟控制。我们将MMA应用于同步机器翻译任务,并与MILK(以前的最先进方法)相比,表现出更好的延迟质量权衡。我们还分析了延迟控制如何影响注意广度,并通过分析解码器层和头的数量对质量和延迟的影响来激励我们的模型的引入。

英文摘要:

Simultaneous machine translation models start generating a target sequence before they have encoded or read the source sequence. Recent approaches for this task either apply a fixed policy on a state-of-the art Transformer model, or a learnable monotonic attention on a weaker recurrent neural network-based structure. In this paper, we propose a new attention mechanism, Monotonic Multihead Attention (MMA), which extends the monotonic attention mechanism to multihead attention. We also introduce two novel and interpretable approaches for latency control that are specifically designed for multiple attentions heads. We apply MMA to the simultaneous machine translation task and demonstrate better latency-quality tradeoffs compared to MILk, the previous state-of-the-art approach. We also analyze how the latency controls affect the attention span and we motivate the introduction of our model by analyzing the effect of the number of decoder layers and heads on quality and latency.

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

↑