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

通过强制单调对齐的在线和线性时间注意力

Online and Linear-Time Attention by Enforcing Monotonic Alignments

Google Brain

Colin Raffel, Minh-Thang Luong, Peter J. Liu, Ron J. Weiss, Douglas Eck

摘要:

具有注意力机制的递归神经网络模型已被证明在各种各样的序列到序列问题上非常有效。然而,软注意力机制在产生输出序列中的每个元素时对整个输入序列执行遍历的事实排除了它们在在线设置中的使用,并导致二次时间复杂度。基于在许多感兴趣的问题中输入和输出序列元素之间的对齐是单调的这一认识,我们提出了一种用于学习单调对齐的端到端可微方法,该方法在测试时能够在线和线性时间内计算注意力。我们验证了我们的方法上的句子摘要,机器翻译,和在线语音识别问题,并取得了与现有的序列到序列模型的竞争结果。

英文摘要:

Recurrent neural network models with an attention mechanism have proven to be extremely effective on a wide variety of sequence-to-sequence problems. However, the fact that soft attention mechanisms perform a pass over the entire input sequence when producing each element in the output sequence precludes their use in online settings and results in a quadratic time complexity. Based on the insight that the alignment between input and output sequence elements is monotonic in many problems of interest, we propose an end-to-end differentiable method for learning monotonic alignments which, at test time, enables computing attention online and in linear time. We validate our approach on sentence summarization, machine translation, and online speech recognition problems and achieve results competitive with existing sequence-to-sequence models.

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

↑