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

对注意力机制有效性的认识

Towards Understanding the Effectiveness of Attention Mechanism

Beijing University of Posts and Telecommunications(北京邮电大学)

Xiang Ye, Zihang He, Heng Wang, Yong Li

摘要:

注意力机制是一种广泛用于提高卷积神经网络(CNN)在计算机视觉任务上的性能的方法。尽管它无处不在,但我们对其效力的来源却知之甚少。人们普遍认为,其有效性源于视觉注意解释,主张关注输入数据的重要部分,而不是整个输入。在本文中,我们发现,只有一个弱的一致性之间的注意力权重的功能和它们的重要性。相反,我们验证了特征映射乘法在注意力机制中的关键作用,并揭示了特征映射乘法对CNN学习的景观的根本影响:由于特征映射乘法带来的高阶非线性,它在CNN上发挥了正则化作用,这使得它们在真实样本附近学习更平滑,更稳定的景观。这种平滑性和稳定性在真实样本之间产生了更具预测性和稳定性的行为,并使CNN产生更好的结果。此外,受特征图乘法的有效性的启发,我们设计了特征图乘法网络(FMMNet),只需将ResNet中的特征图加法替换为特征图乘法。FMMNet在各种数据集上的性能优于ResNet,这表明即使在现有方法中没有精心设计的注意力机制,特征映射乘法也在提高性能方面发挥着至关重要的作用。

英文摘要:

Attention Mechanism is a widely used method for improving the performance of convolutional neural networks (CNNs) on computer vision tasks. Despite its pervasiveness, we have a poor understanding of what its effectiveness stems from. It is popularly believed that its effectiveness stems from the visual attention explanation, advocating focusing on the important part of input data rather than ingesting the entire input. In this paper, we find that there is only a weak consistency between the attention weights of features and their importance. Instead, we verify the crucial role of feature map multiplication in attention mechanism and uncover a fundamental impact of feature map multiplication on the learned landscapes of CNNs: with the high order non-linearity brought by the feature map multiplication, it played a regularization role on CNNs, which made them learn smoother and more stable landscapes near real samples compared to vanilla CNNs. This smoothness and stability induce a more predictive and stable behavior in-between real samples, and make CNNs generate better. Moreover, motivated by the proposed effectiveness of feature map multiplication, we design feature map multiplication network (FMMNet) by simply replacing the feature map addition in ResNet with feature map multiplication. FMMNet outperforms ResNet on various datasets, and this indicates that feature map multiplication plays a vital role in improving the performance even without finely designed attention mechanism in existing methods.

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

↑