arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.01439cs.CV
收藏

大型可分离核注意力:重新思考CNN中的大核注意力设计

Large Separable Kernel Attention: Rethinking the Large Kernel Attention Design in CNN

City University of Hong Kong(香港城市大学);TCL AI Lab(TCL人工智能实验室)

Kin Wai Lau, Lai-Man Po, Yasar Abbas Ur Rehman

AI总结:

提出大型可分离核注意力模块LSKA,通过将深度卷积层的2D卷积核分解为级联的1D卷积核,缓解了VAN中LKA模块计算和内存占用随核尺寸二次增长的问题,在保持性能的同时降低了复杂度并提升了鲁棒性。

摘要:

带有大核注意力(LKA)模块的视觉注意力网络(VAN)已被证明在一系列基于视觉的任务中提供了超越视觉Transformer(ViTs)的卓越性能。然而,这些LKA模块中的深度卷积层随着卷积核尺寸的增加,会导致计算和内存占用呈二次方增长。为了缓解这些问题并使得在VAN的注意力模块中能够使用极大的卷积核,我们提出了一族大型可分离核注意力模块,称为LSKA。LSKA将深度卷积层的2D卷积核分解为级联的水平和垂直1D卷积核。与标准的LKA设计相比,所提出的分解方法使得在注意力模块中能够直接使用带有大核的深度卷积层,而无需任何额外的块。我们证明了在VAN中所提出的LSKA模块能够实现与标准LKA模块相当的性能,并且产生更低的计算复杂度和内存占用。我们还发现,随着核尺寸的增加,所提出的LSKA设计使VAN更偏向于物体的形状而非纹理。此外,我们在ImageNet数据集的五个损坏版本上对VAN、ViTs和最近的ConvNeXt中的LKA和LSKA的鲁棒性进行了基准测试,这在以前的工作中很大程度上未被探索。我们广泛的实验结果表明,随着核尺寸的增加,VAN中所提出的LSKA模块显著降低了计算复杂度和内存占用,同时在物体识别、物体检测、语义分割和鲁棒性测试方面优于ViTs、ConvNeXt,并与VAN中的LKA模块提供相似的性能。

英文摘要:

Visual Attention Networks (VAN) with Large Kernel Attention (LKA) modules have been shown to provide remarkable performance, that surpasses Vision Transformers (ViTs), on a range of vision-based tasks. However, the depth-wise convolutional layer in these LKA modules incurs a quadratic increase in the computational and memory footprints with increasing convolutional kernel size. To mitigate these problems and to enable the use of extremely large convolutional kernels in the attention modules of VAN, we propose a family of Large Separable Kernel Attention modules, termed LSKA. LSKA decomposes the 2D convolutional kernel of the depth-wise convolutional layer into cascaded horizontal and vertical 1-D kernels. In contrast to the standard LKA design, the proposed decomposition enables the direct use of the depth-wise convolutional layer with large kernels in the attention module, without requiring any extra blocks. We demonstrate that the proposed LSKA module in VAN can achieve comparable performance with the standard LKA module and incur lower computational complexity and memory footprints. We also find that the proposed LSKA design biases the VAN more toward the shape of the object than the texture with increasing kernel size. Additionally, we benchmark the robustness of the LKA and LSKA in VAN, ViTs, and the recent ConvNeXt on the five corrupted versions of the ImageNet dataset that are largely unexplored in the previous works. Our extensive experimental results show that the proposed LSKA module in VAN provides a significant reduction in computational complexity and memory footprints with increasing kernel size while outperforming ViTs, ConvNeXt, and providing similar performance compared to the LKA module in VAN on object recognition, object detection, semantic segmentation, and robustness tests.

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

↑