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

用于高效深度学习的自注意池化

Self-Attentive Pooling for Efficient Deep Learning

Intel Labs(英特尔实验室)

Fang Chen, Gourav Datta, Souvik Kundu, Peter Beerel

摘要:

高效的自定义池化技术可以积极地修剪特征图的维度,从而减少资源受限的计算机视觉应用的推理计算和存储器占用空间,最近已经获得了显著的吸引力。然而,先前的池化工作仅提取激活图的局部上下文,限制了它们的有效性。相比之下,我们提出了一种新的非局部自注意池化方法,可以用作标准池化层的替代品,例如最大/平均池化或跨步卷积。所提出的自注意模块使用补丁嵌入,多头自注意和空间通道恢复,其次是sigmoid激活和指数soft-max。这种自注意力机制在下采样期间有效地聚集非局部激活补丁之间的依赖性。在各种卷积神经网络(CNN)架构的标准对象分类和检测任务上进行的广泛实验证明了我们提出的机制优于最先进的(SOTA)池化技术。特别是,我们在ImageNet上的MobileNet-V2的不同变体上超过了现有池化技术的测试准确度,平均为1.2%。通过对初始层中的激活图进行积极的下采样(提供高达22倍的内存消耗减少),我们的方法与具有iso-memory足迹的SOTA技术相比,测试准确度高出1.43%。这使得我们的模型能够部署在内存受限的设备中,例如微控制器(而不会损失显着的准确性),因为初始激活图消耗了大量的片上内存,用于复杂视觉任务所需的高分辨率图像。我们提出的池化方法还利用通道修剪的思想来进一步减少内存占用。

英文摘要:

Efficient custom pooling techniques that can aggressively trim the dimensions of a feature map and thereby reduce inference compute and memory footprint for resource-constrained computer vision applications have recently gained significant traction. However, prior pooling works extract only the local context of the activation maps, limiting their effectiveness. In contrast, we propose a novel non-local self-attentive pooling method that can be used as a drop-in replacement to the standard pooling layers, such as max/average pooling or strided convolution. The proposed self-attention module uses patch embedding, multi-head self-attention, and spatial-channel restoration, followed by sigmoid activation and exponential soft-max. This self-attention mechanism efficiently aggregates dependencies between non-local activation patches during down-sampling. Extensive experiments on standard object classification and detection tasks with various convolutional neural network (CNN) architectures demonstrate the superiority of our proposed mechanism over the state-of-the-art (SOTA) pooling techniques. In particular, we surpass the test accuracy of existing pooling techniques on different variants of MobileNet-V2 on ImageNet by an average of 1.2%. With the aggressive down-sampling of the activation maps in the initial layers (providing up to 22x reduction in memory consumption), our approach achieves 1.43% higher test accuracy compared to SOTA techniques with iso-memory footprints. This enables the deployment of our models in memory-constrained devices, such as micro-controllers (without losing significant accuracy), because the initial activation maps consume a significant amount of on-chip memory for high-resolution images required for complex vision tasks. Our proposed pooling method also leverages the idea of channel pruning to further reduce memory footprints.

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

↑