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

MUSE:用于序列到序列学习的并行多尺度注意

MUSE: Parallel Multi-Scale Attention for Sequence to Sequence Learning

Peking University(北京大学)

Guangxiang Zhao, Xu Sun, Jingjing Xu, Zhiyuan Zhang, Liangchen Luo

摘要:

在序列到序列学习中,自我注意力机制被证明是非常有效的,并且在许多任务中实现了显著的改进。但是,自我注意力机制也并非没有自身的缺陷。虽然自注意力可以建模极长的依赖关系,但深层的注意力往往过度集中在单个标记上,导致局部信息利用不足,难以表示长序列。在这项工作中,我们探讨了并行多尺度表示学习序列数据,努力捕捉长距离和短距离的语言结构。为此,我们提出了并行多尺度attEntion(MUSE)和MUSE-simple。MUSE-simple包含了并行多尺度序列表示学习的基本思想,它在自注意和逐点变换的帮助下,按照不同的尺度并行编码序列。MUSE建立在MUSE-simple的基础上,并探索将卷积和自我注意力相结合,以从更多不同的尺度学习序列表示。我们专注于机器翻译和所提出的方法实现了显着的性能改进,特别是在Transformer的长序列。更重要的是,我们发现,虽然概念上简单,它的成功在实践中需要复杂的考虑,和多尺度的注意必须建立在统一的语义空间。在常见的设置下,该模型实现了实质性的性能,并优于所有以前的模型上的三个主要机器翻译任务。此外,由于其并行性,MUSE具有加速推理的潜力。代码将在https://github.com/lancopku/MUSE上提供

英文摘要:

In sequence to sequence learning, the self-attention mechanism proves to be highly effective, and achieves significant improvements in many tasks. However, the self-attention mechanism is not without its own flaws. Although self-attention can model extremely long dependencies, the attention in deep layers tends to overconcentrate on a single token, leading to insufficient use of local information and difficultly in representing long sequences. In this work, we explore parallel multi-scale representation learning on sequence data, striving to capture both long-range and short-range language structures. To this end, we propose the Parallel MUlti-Scale attEntion (MUSE) and MUSE-simple. MUSE-simple contains the basic idea of parallel multi-scale sequence representation learning, and it encodes the sequence in parallel, in terms of different scales with the help from self-attention, and pointwise transformation. MUSE builds on MUSE-simple and explores combining convolution and self-attention for learning sequence representations from more different scales. We focus on machine translation and the proposed approach achieves substantial performance improvements over Transformer, especially on long sequences. More importantly, we find that although conceptually simple, its success in practice requires intricate considerations, and the multi-scale attention must build on unified semantic space. Under common setting, the proposed model achieves substantial performance and outperforms all previous models on three main machine translation tasks. In addition, MUSE has potential for accelerating inference due to its parallelism. Code will be available at https://github.com/lancopku/MUSE

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

↑