Lune

CVPR2022顶会

On the Integration of Self-Attention and Convolution

Xuran Pan, Chunjiang Ge, Rui Lu, Shiji Song, Guanfu Chen, Zeyi Huang, Gao Huang

摘要

Convolution and self-attention are two powerful techniques for representation learning, and they are usually considered as two peer approaches that are distinct from each other. In this paper, we show that there exists a strong underlying relation between them, in the sense that the bulk of computations of these two paradigms are in fact done with the same operation. Specifically, we first show that a traditional convolution with kernel size k × k can be decomposed into k <sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">2</sup> individual 1 × 1 convolutions, followed by shift and summation operations. Then, we interpret the projections of queries, keys, and values in self-attention module as multiple 1 × 1 convolutions, followed by the computation of attention weights and aggregation of the values. Therefore, the first stage of both two modules comprises the similar operation. More importantly, the first stage contributes a dominant computation complexity (square of the channel size) comparing to the second stage. This observation naturally leads to an elegant integration of these two seemingly distinct paradigms, i.e., a mixed model that enjoys the benefit of both self-Attention and Convolution (ACmix), while having minimum compu-tational overhead compared to the pure convolution or self-attention counterpart. Extensive experiments show that our model achieves consistently improved results over com-petitive baselines on image recognition and downstream tasks. Code and pre-trained models will be released at https://github.com/LeapLabTHU/ACmix and https://gitee.com/mindspore/models.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 24 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • HorNet: Efficient High-Order Spatial Interactions with Recursive Gated Convolutions 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • HorNet: Efficient High-Order Spatial Interactions with Recursive Gated Convolutions 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • HorNet: Efficient High-Order Spatial Interactions with Recursive Gated Convolutions 引用了 Training data-efficient image transformers & distillation through attention
  • FLatten Transformer: Vision Transformer using Focused Linear Attention 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • FLatten Transformer: Vision Transformer using Focused Linear Attention 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • FLatten Transformer: Vision Transformer using Focused Linear Attention 引用了 Training data-efficient image transformers & distillation through attention
  • FLatten Transformer: Vision Transformer using Focused Linear Attention 引用了 Vision Transformer with Deformable Attention
  • FLatten Transformer: Vision Transformer using Focused Linear Attention 引用了 Deformable DETR: Deformable Transformers for End-to-End Object Detection
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale 引用了 Language Models are Few-Shot Learners
  • Multi-Scale VMamba: Hierarchy in Hierarchy Visual State Space Model 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Multi-Scale VMamba: Hierarchy in Hierarchy Visual State Space Model 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • Multi-Scale VMamba: Hierarchy in Hierarchy Visual State Space Model 引用了 Training data-efficient image transformers & distillation through attention
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 Training data-efficient image transformers & distillation through attention
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 Deformable DETR: Deformable Transformers for End-to-End Object Detection
  • Training data-efficient image transformers & distillation through attention 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Vision Transformer with Deformable Attention 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Vision Transformer with Deformable Attention 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • Vision Transformer with Deformable Attention 引用了 Training data-efficient image transformers & distillation through attention
  • Vision Transformer with Deformable Attention 引用了 Deformable DETR: Deformable Transformers for End-to-End Object Detection
  • SeaFormer: Squeeze-enhanced Axial Transformer for Mobile Semantic Segmentation 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • SeaFormer: Squeeze-enhanced Axial Transformer for Mobile Semantic Segmentation 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper24

  1. Vision Transformer with Deformable AttentionZhuofan Xia, Xuran Pan, Shiji Song, Li Erran Li 等CVPR 2022 · 835 次引用
  2. HorNet: Efficient High-Order Spatial Interactions with Recursive Gated ConvolutionsYongming Rao, Wenliang Zhao, Yansong Tang, Jie Zhou 等NeurIPS 2022 · 422 次引用
  3. FLatten Transformer: Vision Transformer using Focused Linear AttentionDongchen Han, Xuran Pan, Yizeng Han, Shiji Song 等ICCV 2023 · 358 次引用
  4. Multi-Scale VMamba: Hierarchy in Hierarchy Visual State Space ModelYuheng Shi, Minjing Dong, Chang XuNeurIPS 2024 · 129 次引用
  5. SeaFormer: Squeeze-enhanced Axial Transformer for Mobile Semantic SegmentationQiang Wan, Zilong Huang, Jiachen Lu, Gang Yu 等ICLR 2023 · 82 次引用

它引用的 Paper21

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu 等ICCV 2021 · 31,683 次引用
  3. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
  4. Training data-efficient image transformers & distillation through attentionHugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa 等ICML 2021 · 8,974 次引用
  5. Deformable DETR: Deformable Transformers for End-to-End Object DetectionXizhou Zhu, Weijie Su, Lewei Lu, Bin Li 等ICLR 2021 · 7,353 次引用

相关 Paper

  1. Revisiting the Integration of Convolution and Attention for Vision BackboneLei Zhu, Xinjiang Wang, Wayne Zhang, Rynson W. H. LauNeurIPS 2024 · 9 次引用
  2. MOAT: Alternating Mobile Convolution and Attention Brings Strong Vision ModelsChenglin Yang, Siyuan Qiao, Qihang Yu, Xiaoding Yuan 等ICLR 2023 · 22 次引用
  3. On the Relationship between Self-Attention and Convolutional LayersJean-Baptiste Cordonnier, Andreas Loukas, Martin JaggiICLR 2020 · 629 次引用
  4. MixFormer: Mixing Features across Windows and DimensionsQiang Chen, Qiman Wu, Jian Wang, Qinghao Hu 等CVPR 2022 · 142 次引用
  5. Attention Augmented Convolutional NetworksIrwan Bello, Barret Zoph, Quoc Le, Ashish Vaswani 等ICCV 2019 · 1,149 次引用
黄昏的海面,两侧是细线勾勒的悬崖