arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2401.05738cs.CV
收藏

从大核卷积视角解释并改进注意力机制

Interpreting and Improving Attention From the Perspective of Large Kernel Convolution

School of Computing, Kyung Hee University(庆熙大学计算机学院);Capital Normal University(首都师范大学);Chongqing University of Technology(重庆理工大学)

Chenghao Li, Chaoning Zhang, Boheng Zeng, Yi Lu, Pengbo Shi, Qingzi Chen, Jirui Liu, Lingyun Zhu, Yang Yang, Heng Tao Shen

AI总结:

本文提出大核卷积注意力LKCA,将注意力重构为单个大核卷积以融合卷积归纳偏置与全局建模能力,在多个图像分类基准的紧凑模型设置中优于传统注意力和视觉Transformer。

摘要:

注意力机制通过有效捕捉全局上下文,显著推动了视觉模型的发展。然而,它们对大规模数据集和大量计算资源的依赖,在数据稀缺和资源受限场景中带来了挑战。此外,传统自注意力机制缺乏固有的空间归纳偏置,使其在建模对较小数据集任务至关重要的局部特征时表现欠佳。本文提出大核卷积注意力(Large Kernel Convolutional Attention,LKCA),这是一种将注意力操作重新解释为单个大核卷积的新颖形式。该设计将卷积架构的局部性和平移不变性优势,与自注意力的全局上下文建模能力统一起来。通过将这些特性嵌入计算高效的框架,LKCA解决了传统注意力机制的关键局限。所提出的LKCA在多种视觉任务上取得了具有竞争力的性能,尤其是在数据受限的环境中。在CIFAR-10、CIFAR-100、SVHN和Tiny-ImageNet上的实验结果证明了其在图像分类方面的卓越能力,在紧凑模型设置下优于传统注意力机制和视觉Transformer。这些发现凸显了LKCA在连接局部与全局特征建模方面的有效性,为数据和资源有限的现实应用提供了实用且稳健的解决方案。

英文摘要:

Attention mechanisms have significantly advanced visual models by capturing global context effectively. However, their reliance on large-scale datasets and substantial computational resources poses challenges in data-scarce and resource-constrained scenarios. Moreover, traditional self-attention mechanisms lack inherent spatial inductive biases, making them suboptimal for modeling local features critical to tasks involving smaller datasets. In this work, we introduce Large Kernel Convolutional Attention (LKCA), a novel formulation that reinterprets attention operations as a single large-kernel convolution. This design unifies the strengths of convolutional architectures locality and translation invariance with the global context modeling capabilities of self-attention. By embedding these properties into a computationally efficient framework, LKCA addresses key limitations of traditional attention mechanisms. The proposed LKCA achieves competitive performance across various visual tasks, particularly in data-constrained settings. Experimental results on CIFAR-10, CIFAR-100, SVHN, and Tiny-ImageNet demonstrate its ability to excel in image classification, outperforming conventional attention mechanisms and vision transformers in compact model settings. These findings highlight the effectiveness of LKCA in bridging local and global feature modeling, offering a practical and robust solution for real-world applications with limited data and resources.

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

↑