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

深度网络空间注意力机制的实证研究

An Empirical Study of Spatial Attention Mechanisms in Deep Networks

University of Science and Technology of China(中国科学技术大学);Beijing Institute of Technology(北京理工大学);Microsoft Research Asia(微软亚洲研究院)

Xizhou Zhu, Dazhi Cheng, Zheng Zhang, Stephen Lin, Jifeng Dai

摘要:

注意力机制已经成为深度神经网络中的一个流行组件,但很少有人研究不同的影响因素和从这些因素计算注意力的方法如何影响性能。为了更好地理解注意力机制,我们提出了一个实证研究,消融各种空间注意力元素内的广义注意力公式,包括占主导地位的Transformer注意力以及流行的变形卷积和动态卷积模块。该研究在各种应用中进行,产生了关于深度网络中空间注意力的重要发现,其中一些与传统理解背道而驰。例如,我们发现Transformer注意中的查询和关键内容比较对于自我注意是可以忽略的,但是对于编码器-解码器注意是至关重要的。可变形卷积与仅关键内容显著性的适当组合在自注意中实现了最佳的准确性-效率权衡。我们的研究结果表明,在注意力机制的设计上还有很大的改进空间。

英文摘要:

Attention mechanisms have become a popular component in deep neural networks, yet there has been little examination of how different influencing factors and methods for computing attention from these factors affect performance. Toward a better general understanding of attention mechanisms, we present an empirical study that ablates various spatial attention elements within a generalized attention formulation, encompassing the dominant Transformer attention as well as the prevalent deformable convolution and dynamic convolution modules. Conducted on a variety of applications, the study yields significant findings about spatial attention in deep networks, some of which run counter to conventional understanding. For example, we find that the query and key content comparison in Transformer attention is negligible for self-attention, but vital for encoder-decoder attention. A proper combination of deformable convolution with key content only saliency achieves the best accuracy-efficiency tradeoff in self-attention. Our results suggest that there exists much room for improvement in the design of attention mechanisms.

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

↑