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

SA-Net:深度卷积神经网络的注意力洗牌

SA-Net: Shuffle Attention for Deep Convolutional Neural Networks

Nanjing University(南京大学)

Qing-Long Zhang Yu-Bin Yang

摘要:

注意力机制使神经网络能够准确地关注输入的所有相关元素,已成为提高深度神经网络性能的重要组成部分。在计算机视觉研究中,主要有两种广泛使用的注意力机制,\textit{spatial attention}和\textit{channel attention},它们分别旨在捕获像素级的成对关系和通道依赖性。虽然将它们融合在一起可能会比它们各自的实现获得更好的性能,但这将不可避免地增加计算开销。针对这一问题,本文提出了一种高效的Shuffle Attention(SA)模块,该模块采用Shuffle Units有效地结合了两种注意力机制。具体而言,SA首先将通道尺寸分组为多个子特征,然后并行处理它们。然后,对于每个子特征,SA利用洗牌单元来描述空间和通道维度上的特征依赖性。在此基础上,对所有子特征进行聚合,并采用“通道混洗”算子实现不同子特征之间的信息通信。所提出的SA模块是高效而有效的,例如,SA相对于主干ResNet 50的参数和计算量分别为300 vs. 25.56M和2.76e-3 GFLOP vs. 4.12 GFLOP,在Top-1准确度方面性能提升超过1.34%。在常用的基准测试中,包括用于分类的ImageNet-1 k,用于目标检测的MS COCO和实例分割,广泛的实验结果表明,所提出的SA通过实现更高的准确性,同时具有更低的模型复杂度,显着优于当前的SOTA方法。代码和模型可在https://github.com/wofmanaf/SA-Net上获得。

英文摘要:

Attention mechanisms, which enable a neural network to accurately focus on all the relevant elements of the input, have become an essential component to improve the performance of deep neural networks. There are mainly two attention mechanisms widely used in computer vision studies, \textit{spatial attention} and \textit{channel attention}, which aim to capture the pixel-level pairwise relationship and channel dependency, respectively. Although fusing them together may achieve better performance than their individual implementations, it will inevitably increase the computational overhead. In this paper, we propose an efficient Shuffle Attention (SA) module to address this issue, which adopts Shuffle Units to combine two types of attention mechanisms effectively. Specifically, SA first groups channel dimensions into multiple sub-features before processing them in parallel. Then, for each sub-feature, SA utilizes a Shuffle Unit to depict feature dependencies in both spatial and channel dimensions. After that, all sub-features are aggregated and a "channel shuffle" operator is adopted to enable information communication between different sub-features. The proposed SA module is efficient yet effective, e.g., the parameters and computations of SA against the backbone ResNet50 are 300 vs. 25.56M and 2.76e-3 GFLOPs vs. 4.12 GFLOPs, respectively, and the performance boost is more than 1.34% in terms of Top-1 accuracy. Extensive experimental results on common-used benchmarks, including ImageNet-1k for classification, MS COCO for object detection, and instance segmentation, demonstrate that the proposed SA outperforms the current SOTA methods significantly by achieving higher accuracy while having lower model complexity. The code and models are available at https://github.com/wofmanaf/SA-Net.

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

↑