arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2007.07729cs.CV
收藏

注意力激活

Attention as Activation

University of Copenhagen(哥本哈根大学);University of Münster(明斯特大学);University of Arizona(亚利桑那大学)

Yimian Dai, Stefan Oehmcke, Fabian Gieseke, Yiquan Wu, Kobus Barnard

摘要:

激活函数和注意力机制通常被视为具有不同的目的,并且已经不同地进化。然而,这两个概念都可以用公式表示为非线性门控函数。受它们相似性的启发,我们提出了一种新的激活单元,称为注意激活(ATAC)单元,作为激活函数和注意力机制的统一。特别是,我们提出了一个本地通道注意模块的同时非线性激活和元素的功能细化,局部聚合点的跨通道功能上下文。通过在卷积网络中用这种ATAC单元取代众所周知的整流线性单元,我们可以构建完全注意力网络,这些网络在使用适当数量的额外参数的情况下表现得更好。我们使用不同网络深度的几个主机网络对ATAC单元进行了详细的消融研究,以经验验证单元的有效性和效率。此外,我们在CIFAR-10、CIFAR-100和ImageNet数据集上比较了ATAC单元与现有激活函数以及其他注意力机制的性能。我们的实验结果表明,网络与建议的ATAC单位一般产生性能增益比他们的竞争对手给出了相当数量的参数。

英文摘要:

Activation functions and attention mechanisms are typically treated as having different purposes and have evolved differently. However, both concepts can be formulated as a non-linear gating function. Inspired by their similarity, we propose a novel type of activation units called attentional activation (ATAC) units as a unification of activation functions and attention mechanisms. In particular, we propose a local channel attention module for the simultaneous non-linear activation and element-wise feature refinement, which locally aggregates point-wise cross-channel feature contexts. By replacing the well-known rectified linear units by such ATAC units in convolutional networks, we can construct fully attentional networks that perform significantly better with a modest number of additional parameters. We conducted detailed ablation studies on the ATAC units using several host networks with varying network depths to empirically verify the effectiveness and efficiency of the units. Furthermore, we compared the performance of the ATAC units against existing activation functions as well as other attention mechanisms on the CIFAR-10, CIFAR-100, and ImageNet datasets. Our experimental results show that networks constructed with the proposed ATAC units generally yield performance gains over their competitors given a comparable number of parameters.

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

↑