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

学习忽略:重新思考CNN中的注意力

Learning to ignore: rethinking attention in CNNs

Tampere University(坦佩雷大学);Finnish Environment Institute(芬兰环境研究所);Aarhus University(奥胡斯大学)

Firas Laakom, Kateryna Chumachenko, Jenni Raitoharju, Alexandros Iosifidis, Moncef Gabbouj

摘要:

最近,人们越来越关注在卷积神经网络(CNN)中应用注意力机制来解决计算机视觉任务。这些方法中的大多数学习显式地识别和突出显示场景的相关部分,并将参与的图像传递到网络的其他层。在本文中,我们认为这种方法可能不是最佳的。可以说,明确地学习图像的哪些部分是相关的通常比学习图像的哪些部分不太相关更难,因此应该被忽略。事实上,在视觉领域中,存在许多容易识别的无关特征模式。例如,靠近边界的图像区域不太可能包含用于分类任务的有用信息。基于这个想法,我们建议重新制定CNN中的注意力机制,以学习忽略而不是学习注意。具体来说,我们建议明确学习场景中的不相关信息,并在生成的表示中抑制它,只保留重要的属性。这种内隐注意机制可以被结合到任何现有的注意力机制中。在这项工作中,我们使用两个最近的注意力方法挤压和激励(SE)块和卷积块注意力模块(CBAM)来验证这个想法。在不同数据集和模型架构上的实验结果表明,学习忽略,即,与标准方法相比,内隐注意产生更好的性能。

英文摘要:

Recently, there has been an increasing interest in applying attention mechanisms in Convolutional Neural Networks (CNNs) to solve computer vision tasks. Most of these methods learn to explicitly identify and highlight relevant parts of the scene and pass the attended image to further layers of the network. In this paper, we argue that such an approach might not be optimal. Arguably, explicitly learning which parts of the image are relevant is typically harder than learning which parts of the image are less relevant and, thus, should be ignored. In fact, in vision domain, there are many easy-to-identify patterns of irrelevant features. For example, image regions close to the borders are less likely to contain useful information for a classification task. Based on this idea, we propose to reformulate the attention mechanism in CNNs to learn to ignore instead of learning to attend. Specifically, we propose to explicitly learn irrelevant information in the scene and suppress it in the produced representation, keeping only important attributes. This implicit attention scheme can be incorporated into any existing attention mechanism. In this work, we validate this idea using two recent attention methods Squeeze and Excitation (SE) block and Convolutional Block Attention Module (CBAM). Experimental results on different datasets and model architectures show that learning to ignore, i.e., implicit attention, yields superior performance compared to the standard approaches.

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

↑