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

自注意网络的局部性建模

Modeling Localness for Self-Attention Networks

University of Macau(澳门大学);Tencent AI Lab(腾讯人工智能实验室)

Baosong Yang, Zhaopeng Tu, Derek F. Wong, Fandong Meng, Lidia S. Chao, Tong Zhang

摘要:

自我注意力网络已经被证明具有深刻的价值,因为它具有捕捉全局依赖性的能力。在这项工作中,我们提出了自注意网络的局部性模型,这增强了捕获有用的局部上下文的能力。我们将局部性建模作为一个可学习的高斯偏置,这表明局部区域的中心和范围需要更多的关注。然后将偏差纳入原始注意力分布中,以形成修订的分布。为了保持捕获长距离依赖的强度并增强捕获短距离依赖的能力,我们只将局部性建模应用于自注意网络的较低层。通过对汉英和英德翻译任务的定量和定性分析,验证了该方法的有效性和普适性。

英文摘要:

Self-attention networks have proven to be of profound value for its strength of capturing global dependencies. In this work, we propose to model localness for self-attention networks, which enhances the ability of capturing useful local context. We cast localness modeling as a learnable Gaussian bias, which indicates the central and scope of the local region to be paid more attention. The bias is then incorporated into the original attention distribution to form a revised distribution. To maintain the strength of capturing long distance dependencies and enhance the ability of capturing short-range dependencies, we only apply localness modeling to lower layers of self-attention networks. Quantitative and qualitative analyses on Chinese-English and English-German translation tasks demonstrate the effectiveness and universality of the proposed approach.

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

↑