ULSAM:紧凑型卷积神经网络的超轻量子空间注意力模块
ULSAM: Ultra-Lightweight Subspace Attention Module for Compact Convolutional Neural Networks
摘要:
自我注意力机制对远程依赖关系建模的能力已经在视觉模型中得到了迅速的部署。与卷积算子不同,自注意力提供了无限的接收域,并实现了全局依赖关系的计算高效建模。然而,现有的最先进的注意力机制招致高的计算和/或参数开销,因此不适合紧凑的卷积神经网络(CNN)。在这项工作中,我们提出了一个简单而有效的“超轻量子空间注意力机制“(ULSAM),它推断不同的注意力地图的每个特征地图子空间。我们认为,学习单独的注意力地图的每个特征子空间,使多尺度和多频率的特征表示,这是更可取的细粒度的图像分类。我们的子空间注意力的方法是正交的,并补充现有的国家的最先进的注意力机制中使用的视觉模型。ULSAM是端到端可训练的,可以作为即插即用模块部署在现有的紧凑型CNN中。值得注意的是,我们的工作是第一次尝试使用子空间注意力机制来提高紧凑CNN的效率。为了展示ULSAM的有效性,我们使用MobileNet-V1和MobileNet-V2作为ImageNet-1 K和三个细粒度图像分类数据集的骨干架构进行实验。我们在MobileNet-V2的FLOP和参数计数方面实现了$\approx$ 13%和$\approx$ 25%的减少,在ImageNet-1 K和细粒度图像分类数据集上的top-1准确性分别提高了0.27%和1%以上。代码和训练模型可在https://github.com/Nandan91/ULSAM上获得。
英文摘要:
The capability of the self-attention mechanism to model the long-range dependencies has catapulted its deployment in vision models. Unlike convolution operators, self-attention offers infinite receptive field and enables compute-efficient modeling of global dependencies. However, the existing state-of-the-art attention mechanisms incur high compute and/or parameter overheads, and hence unfit for compact convolutional neural networks (CNNs). In this work, we propose a simple yet effective "Ultra-Lightweight Subspace Attention Mechanism" (ULSAM), which infers different attention maps for each feature map subspace. We argue that leaning separate attention maps for each feature subspace enables multi-scale and multi-frequency feature representation, which is more desirable for fine-grained image classification. Our method of subspace attention is orthogonal and complementary to the existing state-of-the-arts attention mechanisms used in vision models. ULSAM is end-to-end trainable and can be deployed as a plug-and-play module in the pre-existing compact CNNs. Notably, our work is the first attempt that uses a subspace attention mechanism to increase the efficiency of compact CNNs. To show the efficacy of ULSAM, we perform experiments with MobileNet-V1 and MobileNet-V2 as backbone architectures on ImageNet-1K and three fine-grained image classification datasets. We achieve $\approx$13% and $\approx$25% reduction in both the FLOPs and parameter counts of MobileNet-V2 with a 0.27% and more than 1% improvement in top-1 accuracy on the ImageNet-1K and fine-grained image classification datasets (respectively). Code and trained models are available at https://github.com/Nandan91/ULSAM.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。