mlsanityData to 7 Oct 2026

On the Integration of Self-Attention and Convolution

arXiv 2111.14556 ↗First posted 29 Nov 2021cs.CVcited by 74

Not on the map. Why?

Abstract (arXiv)

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 x k can be decomposed into k^2 individual 1x1 convolutions, followed by shift and summation operations. Then, we interpret the projections of queries, keys, and values in self-attention module as multiple 1x1 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 computational overhead compared to the pure convolution or self-attention counterpart. Extensive experiments show that our model achieves consistently improved results over competitive 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.

Key facts. Cited by 74 papers in the map (data through 7 Oct 2026). Builds on 51 of its 59 references that are in the map. First posted on arXiv 29 Nov 2021.

Builds on

51 of 59 references.

References · 51

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  4. 2020Language Models are Few-Shot Learnerscited by 32,199
  5. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  6. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
  7. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  8. 2015Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networkscited by 9,617
  9. 2020End-to-End Object Detection with Transformerscited by 7,384
  10. 2017Mask R-CNNcited by 7,259
  11. 2016Densely Connected Convolutional Networkscited by 6,691
  12. 2017Squeeze-and-Excitation Networkscited by 4,763
38 more
  1. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  2. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  3. 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,410
  4. 2016DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFscited by 3,239
  5. 2018CBAM: Convolutional Block Attention Modulecited by 2,463
  6. 2017Non-local Neural Networkscited by 2,290
  7. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
  8. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  9. 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,368
  10. 2017Cascade R-CNN: Delving into High Quality Object Detectioncited by 1,275
  11. 2018Unified Perceptual Parsing for Scene Understandingcited by 1,265
  12. 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
  13. 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
  14. 2020Pre-Trained Image Processing Transformercited by 891
  15. 2018Image Transformercited by 770
  16. 2017Focal Loss for Dense Object Detectioncited by 749
  17. 2020PCT: Point cloud transformercited by 730
  18. 2019Panoptic Feature Pyramid Networkscited by 644
  19. 2019Stand-Alone Self-Attention in Vision Modelscited by 542
  20. 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 526
  21. 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
  22. 2020End-to-End Video Instance Segmentation with Transformerscited by 443
  23. 2019Selective Kernel Networkscited by 401
  24. 2021Early Convolutions Help Transformers See Bettercited by 395
  25. 2021Bottleneck Transformers for Visual Recognitioncited by 364
  26. 2019Attention Augmented Convolutional Networkscited by 363
  27. 2019GCNet: Non-local Networks Meet Squeeze-Excitation Networks and Beyondcited by 331
  28. 2020Exploring Self-attention for Image Recognitioncited by 313
  29. 2019On the Relationship between Self-Attention and Convolutional Layerscited by 299
  30. 2019Local Relation Networks for Image Recognitioncited by 210
  31. 20203D Object Detection with Pointformercited by 194
  32. 2018BAM: Bottleneck Attention Modulecited by 171
  33. 2021Conformer: Local Features Coupling Global Representations for Visual Recognitioncited by 164
  34. 2018Gather-Excite: Exploiting Feature Context in Convolutional Neural Networkscited by 138
  35. 2020Convolutional Networks with Dense Connectivitycited by 98
  36. 2020Feature Pyramid Transformercited by 94
  37. 2020Toward Transformer-Based Object Detectioncited by 84
  38. 2021ConTNet: Why not use convolution and transformer at the same time?cited by 38

50 most cited of 51 All 51 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 19; 2023: 25; 2024: 12; 2025: 14; 2026: 4.

74 papers.

Sort:

By area:

  1. 2022Vision Transformer with Deformable Attentioncited by 293
  2. 2023FLatten Transformer: Vision Transformer using Focused Linear Attentioncited by 170
  3. 2023GSVA: Generalized Segmentation via Multimodal Large Language Modelscited by 153
  4. 2022HorNet: Efficient High-Order Spatial Interactions with Recursive Gated Convolutionscited by 103
  5. 2023CompletionFormer: Depth Completion with Convolutions and Vision Transformerscited by 92
  6. 2022E-Branchformer: Branchformer with Enhanced merging for speech recognitioncited by 90
  7. 2024Multi-Scale VMamba: Hierarchy in Hierarchy Visual State Space Modelcited by 62
  8. 2023Slide-Transformer: Hierarchical Vision Transformer with Local Self-Attentioncited by 38
  9. 2023Xformer: Hybrid X-Shaped Transformer for Image Denoisingcited by 37
  10. 2022Contrastive Language-Image Pre-Training with Knowledge Graphscited by 34
  11. 2024SegMAN: Omni-scale Context Modeling with State Space Models and Local Attention for Semantic Segmentationcited by 31
  12. 2023LGViT: Dynamic Early Exiting for Accelerating Vision Transformercited by 30
38 more
  1. 2024CAMixerSR: Only Details Need More "Attention"cited by 30
  2. 2022EATFormer: Improving Vision Transformer Inspired by Evolutionary Algorithmcited by 27
  3. 2023DAT++: Spatially Dynamic Vision Transformer with Deformable Attentioncited by 21
  4. 2023TransXNet: Learning Both Global and Local Dynamics with a Dual Dynamic Token Mixer for Visual Recognitioncited by 21
  5. 2022Weakly Supervised Object Localization via Transformer with Implicit Spatial Calibrationcited by 20
  6. 2023SeaFormer++: Squeeze-enhanced Axial Transformer for Mobile Visual Recognitioncited by 18
  7. 2022Robust RGB-D Fusion for Saliency Detectioncited by 12
  8. 2023Open-Set Domain Adaptation with Visual-Language Foundation Modelscited by 10
  9. 2022ResT V2: Simpler, Faster and Strongercited by 9
  10. 2022Noise-reducing attention cross fusion learning transformer for histological image classification of osteosarcomacited by 9
  11. 2023Class-level Structural Relation Modelling and Smoothing for Visual Representation Learningcited by 9
  12. 2023Chest X-ray Image Classification: A Causal Perspectivecited by 8
  13. 2024LoG-VMamba: Local-Global Vision Mamba for Medical Image Segmentationcited by 8
  14. 2022Depth-Adapted CNNs for RGB-D Semantic Segmentationcited by 6
  15. 2022ClusTR: Exploring Efficient Self-attention via Clustering for Vision Transformerscited by 6
  16. 2023FASTER: A Font-Agnostic Scene Text Editing and Rendering Frameworkcited by 6
  17. 2024HSViT: Horizontally Scalable Vision Transformercited by 6
  18. 2025Structured Initialization for Vision Transformerscited by 6
  19. 2022Rethinking Attention Mechanism in Time Series Classificationcited by 5
  20. 2022Switchable Self-attention Modulecited by 4
  21. 2024Convolutional Initialization for Data-Efficient Vision Transformerscited by 4
  22. 2024ShiftwiseConv: Small Convolutional Kernel with Large Kernel Effectcited by 4
  23. 2024Structured Initialization for Attention in Vision Transformerscited by 4
  24. 2022Adaptive Split-Fusion Transformercited by 3
  25. 2022UGformer for Robust Left Atrium and Scar Segmentation Across Scannerscited by 3
  26. 2023Modularizing while Training: A New Paradigm for Modularizing DNN Modelscited by 3
  27. 2025HGFormer: Topology-Aware Vision Transformer with HyperGraph Learningcited by 3
  28. 2023Interpret Vision Transformers as ConvNets with Dynamic Convolutionscited by 2
  29. 2023Enhancing Representations through Heterogeneous Self-Supervised Learningcited by 2
  30. 2024CROCODILE: Causality aids RObustness via COntrastive DIsentangled LEarningcited by 2
  31. 2025SCHNet: SAM Marries CLIP for Human Parsingcited by 2
  32. 2022Dunhuang murals contour generation network based on convolution and self-attention fusioncited by 1
  33. 2022EIT: Enhanced Interactive Transformercited by 1
  34. 2023Underwater target detection based on improved YOLOv7cited by 1
  35. 2023Dual Path Transformer with Partition Attentioncited by 1
  36. 2023Reinforcement Learning-based Mixture of Vision Transformers for Video Violence Recognitioncited by 1
  37. 2023OrthoNets: Orthogonal Channel Attention Networkscited by 1
  38. 2023Improved Dense Nested Attention Network Based on Transformer for Infrared Small Target Detectioncited by 1

50 most cited of 74 All 74 (JSON)