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

Partial Convolution 遇见视觉注意力

Partial Convolution Meets Visual Attention

Advanced Micro Devices, Inc.(超威半导体公司);Xi’an Jiaotong University(西安交通大学)

Haiduo Huang, Fuwei Yang, Dong Li, Ji Liu, Lu Tian, Jinzhang Peng, Pengju Ren, Emad Barsoum

AI总结:

为解决 PConv 通道利用不足问题,提出结合 PConv 与视觉注意力的 PAT 机制及 PATNet 网络,在降低参数和延迟的同时显著提升了模型准确率与推理速度。

摘要:

设计高效且有效的神经网络一直是计算机视觉研究中的重要课题。Depthwise Convolution (DWConv) 广泛应用于高效的 CNN 或 ViT 中,但其在推理过程中需要频繁访问内存,导致吞吐量较低。FasterNet 试图引入 Partial Convolution (PConv) 作为 DWConv 的替代方案,但由于未充分利用通道而损害了准确率。为了弥补这一缺陷并考虑特征图通道之间的冗余,我们引入了一种新颖的 Partial visual ATtention 机制 (PAT),能够高效地将 PConv 与视觉注意力相结合。我们的探索表明,部分注意力机制可以完全替代全注意力机制,并减少模型参数和 FLOPs。我们的 PAT 可以衍生出三种类型的块:Partial Channel-Attention block (PAT_ch)、Partial Spatial-Attention block (PAT_sp) 和 Partial Self-Attention block (PAT_sf)。首先,PAT_ch 集成了增强的高斯通道注意力机制,将全局分布信息注入 PConv 未触及的通道中。其次,我们在 MLP 层引入空间级注意力以进一步提高模型准确率。最后,我们在最后阶段用自注意力机制替换 PAT_ch,以扩展全局感受野。基于 PAT,我们提出了一种新颖的混合网络家族,命名为 PATNet。在 ImageNet-1K 分类任务上,与 FasterNet 相比,它实现了更优的 top-1 准确率和推理速度,并在 COCO 数据集上的检测和分割任务中表现出色。特别是,我们的 PATNet-T2 比 FasterNet-T2 的准确率高 1.3%,同时 GPU 吞吐量提高 25%,CPU 延迟降低 24%。

英文摘要:

Designing an efficient and effective neural network has remained a prominent topic in computer vision research. Depthwise onvolution (DWConv) is widely used in efficient CNNs or ViTs, but it needs frequent memory access during inference, which leads to low throughput. FasterNet attempts to introduce partial convolution (PConv) as an alternative to DWConv but compromises the accuracy due to underutilized channels. To remedy this shortcoming and consider the redundancy between feature map channels, we introduce a novel Partial visual ATtention mechanism (PAT) that can efficiently combine PConv with visual attention. Our exploration indicates that the partial attention mechanism can completely replace the full attention mechanism and reduce model parameters and FLOPs. Our PAT can derive three types of blocks: Partial Channel-Attention block (PAT_ch), Partial Spatial-Attention block (PAT_sp) and Partial Self-Attention block (PAT_sf). First, PAT_ch integrates the enhanced Gaussian channel attention mechanism to infuse global distribution information into the untouched channels of PConv. Second, we introduce the spatial-wise attention to the MLP layer to further improve model accuracy. Finally, we replace PAT_ch in the last stage with the self-attention mechanism to extend the global receptive field. Building upon PAT, we propose a novel hybrid network family, named PATNet, which achieves superior top-1 accuracy and inference speed compared to FasterNet on ImageNet-1K classification and excel in both detection and segmentation on the COCO dataset. Particularly, our PATNet-T2 achieves 1.3% higher accuracy than FasterNet-T2, while exhibiting 25% higher GPU throughput and 24% lower CPU latency.

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

↑