Scholay

学术搜索 · AI 审稿 · LaTeX 协作

Nonlocal spatial attention module for image classification

作者:Bingling Chen, Yan Huang, Qiaoqiao Xia, Qinglin Zhang · 发表于:International Journal of Advanced Robotic Systems · 年份:2020 · DOI:10.1177/1729881420938927 · 被引用次数:25 · 研究领域:Advanced Neural Network Applications、Domain Adaptation and Few-Shot Learning、Machine Learning and ELM

To enhance the capability of neural networks, research on attention mechanism have been deepened. In this area, attention modules make forward inference along channel dimension and spatial dimension sequentially, parallelly, or simultaneously. However, we have found that spatial attention modules mainly apply convolution layers to generate attention maps, which aggregate feature responses only based on local receptive fields. In this article, we take advantage of this finding to create a nonlocal spatial attention module (NL-SAM), which collects context information from all pixels to adaptively recalibrate spatial responses in a convolutional feature map. NL-SAM overcomes the limitations of repeating local operations and exports a 2D spatial attention map to emphasize or suppress responses in different locations. Experiments on three benchmark datasets show at least 0.58% improvements on variant ResNets. Furthermore, this module is simple and can be easily integrated with existing channel attention modules, such as squeeze-and-excitation and gather-excite, to exceed these significant models at a minimal additional computational cost (0.196%).