On the Integration of Self-Attention and Convolution
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
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2015Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networkscited by 9,617
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2017Mask R-CNNcited by 7,259
- 2016Densely Connected Convolutional Networkscited by 6,691
- 2017Squeeze-and-Excitation Networkscited by 4,763
38 more
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,410
- 2016DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFscited by 3,239
- 2018CBAM: Convolutional Block Attention Modulecited by 2,463
- 2017Non-local Neural Networkscited by 2,290
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,368
- 2017Cascade R-CNN: Delving into High Quality Object Detectioncited by 1,275
- 2018Unified Perceptual Parsing for Scene Understandingcited by 1,265
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
- 2020Pre-Trained Image Processing Transformercited by 891
- 2018Image Transformercited by 770
- 2017Focal Loss for Dense Object Detectioncited by 749
- 2020PCT: Point cloud transformercited by 730
- 2019Panoptic Feature Pyramid Networkscited by 644
- 2019Stand-Alone Self-Attention in Vision Modelscited by 542
- 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 526
- 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
- 2020End-to-End Video Instance Segmentation with Transformerscited by 443
- 2019Selective Kernel Networkscited by 401
- 2021Early Convolutions Help Transformers See Bettercited by 395
- 2021Bottleneck Transformers for Visual Recognitioncited by 364
- 2019Attention Augmented Convolutional Networkscited by 363
- 2019GCNet: Non-local Networks Meet Squeeze-Excitation Networks and Beyondcited by 331
- 2020Exploring Self-attention for Image Recognitioncited by 313
- 2019On the Relationship between Self-Attention and Convolutional Layerscited by 299
- 2019Local Relation Networks for Image Recognitioncited by 210
- 20203D Object Detection with Pointformercited by 194
- 2018BAM: Bottleneck Attention Modulecited by 171
- 2021Conformer: Local Features Coupling Global Representations for Visual Recognitioncited by 164
- 2018Gather-Excite: Exploiting Feature Context in Convolutional Neural Networkscited by 138
- 2020Convolutional Networks with Dense Connectivitycited by 98
- 2020Feature Pyramid Transformercited by 94
- 2020Toward Transformer-Based Object Detectioncited by 84
- 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
Citing papers per year: 2022: 19; 2023: 25; 2024: 12; 2025: 14; 2026: 4.
74 papers.
Sort:
By area:
- 2022Vision Transformer with Deformable Attentioncited by 293
- 2023FLatten Transformer: Vision Transformer using Focused Linear Attentioncited by 170
- 2023GSVA: Generalized Segmentation via Multimodal Large Language Modelscited by 153
- 2022HorNet: Efficient High-Order Spatial Interactions with Recursive Gated Convolutionscited by 103
- 2023CompletionFormer: Depth Completion with Convolutions and Vision Transformerscited by 92
- 2022E-Branchformer: Branchformer with Enhanced merging for speech recognitioncited by 90
- 2024Multi-Scale VMamba: Hierarchy in Hierarchy Visual State Space Modelcited by 62
- 2023Slide-Transformer: Hierarchical Vision Transformer with Local Self-Attentioncited by 38
- 2023Xformer: Hybrid X-Shaped Transformer for Image Denoisingcited by 37
- 2022Contrastive Language-Image Pre-Training with Knowledge Graphscited by 34
- 2024SegMAN: Omni-scale Context Modeling with State Space Models and Local Attention for Semantic Segmentationcited by 31
- 2023LGViT: Dynamic Early Exiting for Accelerating Vision Transformercited by 30
38 more
- 2024CAMixerSR: Only Details Need More "Attention"cited by 30
- 2022EATFormer: Improving Vision Transformer Inspired by Evolutionary Algorithmcited by 27
- 2023DAT++: Spatially Dynamic Vision Transformer with Deformable Attentioncited by 21
- 2023TransXNet: Learning Both Global and Local Dynamics with a Dual Dynamic Token Mixer for Visual Recognitioncited by 21
- 2022Weakly Supervised Object Localization via Transformer with Implicit Spatial Calibrationcited by 20
- 2023SeaFormer++: Squeeze-enhanced Axial Transformer for Mobile Visual Recognitioncited by 18
- 2022Robust RGB-D Fusion for Saliency Detectioncited by 12
- 2023Open-Set Domain Adaptation with Visual-Language Foundation Modelscited by 10
- 2022ResT V2: Simpler, Faster and Strongercited by 9
- 2022Noise-reducing attention cross fusion learning transformer for histological image classification of osteosarcomacited by 9
- 2023Class-level Structural Relation Modelling and Smoothing for Visual Representation Learningcited by 9
- 2023Chest X-ray Image Classification: A Causal Perspectivecited by 8
- 2024LoG-VMamba: Local-Global Vision Mamba for Medical Image Segmentationcited by 8
- 2022Depth-Adapted CNNs for RGB-D Semantic Segmentationcited by 6
- 2022ClusTR: Exploring Efficient Self-attention via Clustering for Vision Transformerscited by 6
- 2023FASTER: A Font-Agnostic Scene Text Editing and Rendering Frameworkcited by 6
- 2024HSViT: Horizontally Scalable Vision Transformercited by 6
- 2025Structured Initialization for Vision Transformerscited by 6
- 2022Rethinking Attention Mechanism in Time Series Classificationcited by 5
- 2022Switchable Self-attention Modulecited by 4
- 2024Convolutional Initialization for Data-Efficient Vision Transformerscited by 4
- 2024ShiftwiseConv: Small Convolutional Kernel with Large Kernel Effectcited by 4
- 2024Structured Initialization for Attention in Vision Transformerscited by 4
- 2022Adaptive Split-Fusion Transformercited by 3
- 2022UGformer for Robust Left Atrium and Scar Segmentation Across Scannerscited by 3
- 2023Modularizing while Training: A New Paradigm for Modularizing DNN Modelscited by 3
- 2025HGFormer: Topology-Aware Vision Transformer with HyperGraph Learningcited by 3
- 2023Interpret Vision Transformers as ConvNets with Dynamic Convolutionscited by 2
- 2023Enhancing Representations through Heterogeneous Self-Supervised Learningcited by 2
- 2024CROCODILE: Causality aids RObustness via COntrastive DIsentangled LEarningcited by 2
- 2025SCHNet: SAM Marries CLIP for Human Parsingcited by 2
- 2022Dunhuang murals contour generation network based on convolution and self-attention fusioncited by 1
- 2022EIT: Enhanced Interactive Transformercited by 1
- 2023Underwater target detection based on improved YOLOv7cited by 1
- 2023Dual Path Transformer with Partition Attentioncited by 1
- 2023Reinforcement Learning-based Mixture of Vision Transformers for Video Violence Recognitioncited by 1
- 2023OrthoNets: Orthogonal Channel Attention Networkscited by 1
- 2023Improved Dense Nested Attention Network Based on Transformer for Infrared Small Target Detectioncited by 1
50 most cited of 74 All 74 (JSON)
- 2026APRIL-MedSeg: A Modular Medical Image Segmentation Toolbox Embracing Modern Paradigms29 Jun 2026
- 2026Multi-view feature High-order Fusion for Space Weak Object Detection and Segmentation13 Jun 2026
- 2026EmambaIR: Efficient Visual State Space Model for Event-guided Image Reconstruction8 May 2026
- 2026SCG With Your Phone: Diagnosis of Rhythmic Spectrum Disorders in Field Conditions20 Jan 2026
- 2025Unifying Convolution and Attention via Convolutional Nearest Neighbors18 Nov 2025
- 2025Cross-Layer Feature Self-Attention Module for Multi-Scale Object Detection16 Oct 2025
- 2025Automated Neural Architecture Design for Industrial Defect Detection8 Oct 2025
- 2025A Segmentation-driven Editing Method for Bolt Defect Augmentation and Detection14 Aug 2025
- 2025DSConv: Dynamic Splitting Convolution for Pansharpening8 Aug 2025
- 2025MyGO: Make your Goals Obvious, Avoiding Semantic Confusion in Prostate Cancer Lesion Region Segmentation23 Jul 2025
- 2025A2Mamba: Attention-augmented State Space Models for Visual Recognition22 Jul 2025
- 2025Robust Video-Based Pothole Detection and Area Estimation for Intelligent Vehicles with Depth Map and Kalman Smoothing27 May 2025
38 more
- 2025VisAlgae 2023: A Dataset and Challenge for Algae Detection in Microscopy Images27 May 2025
- 2025Structured Initialization for Vision Transformers26 May 2025
- 2025YOLO-RS: Remote Sensing Enhanced Crop Detection Methods15 Apr 2025
- 2025HGFormer: Topology-Aware Vision Transformer with HyperGraph Learning3 Apr 2025
- 2025SCHNet: SAM Marries CLIP for Human Parsing28 Mar 2025
- 2025Improved YOLOv7x-Based Defect Detection Algorithm for Power Equipment25 Feb 2025
- 2024SegMAN: Omni-scale Context Modeling with State Space Models and Local Attention for Semantic Segmentation16 Dec 2024
- 2024HorGait: A Hybrid Model for Accurate Gait Recognition in LiDAR Point Cloud Planar Projections11 Oct 2024
- 2024Studying the Effects of Self-Attention on SAR Automatic Target Recognition31 Aug 2024
- 2024LoG-VMamba: Local-Global Vision Mamba for Medical Image Segmentation26 Aug 2024
- 2024CROCODILE: Causality aids RObustness via COntrastive DIsentangled LEarning9 Aug 2024
- 2024Multi-Scale VMamba: Hierarchy in Hierarchy Visual State Space Model23 May 2024
- 2024HSViT: Horizontally Scalable Vision Transformer8 Apr 2024
- 2024Structured Initialization for Attention in Vision Transformers1 Apr 2024
- 2024CAMixerSR: Only Details Need More "Attention"29 Feb 2024
- 2024YOLO-Ant: A Lightweight Detector via Depthwise Separable Convolutional and Large Kernel Design for Antenna Interference Source Detection20 Feb 2024
- 2024ShiftwiseConv: Small Convolutional Kernel with Large Kernel Effect23 Jan 2024
- 2024Convolutional Initialization for Data-Efficient Vision Transformers23 Jan 2024
- 2023Deformable Audio Transformer for Audio Event Detection24 Dec 2023
- 2023GSVA: Generalized Segmentation via Multimodal Large Language Models15 Dec 2023
- 2023Transferring Modality-Aware Pedestrian Attentive Learning for Visible-Infrared Person Re-identification12 Dec 2023
- 2023Improved Dense Nested Attention Network Based on Transformer for Infrared Small Target Detection15 Nov 2023
- 2023OrthoNets: Orthogonal Channel Attention Networks6 Nov 2023
- 2023TransXNet: Learning Both Global and Local Dynamics with a Dual Dynamic Token Mixer for Visual Recognition30 Oct 2023
- 2023Enhancing Representations through Heterogeneous Self-Supervised Learning8 Oct 2023
- 2023Reinforcement Learning-based Mixture of Vision Transformers for Video Violence Recognition4 Oct 2023
- 2023Logical Bias Learning for Object Relation Prediction1 Oct 2023
- 2023Interpret Vision Transformers as ConvNets with Dynamic Convolutions19 Sep 2023
- 2023DAT++: Spatially Dynamic Vision Transformer with Deformable Attention4 Sep 2023
- 2023Class-level Structural Relation Modelling and Smoothing for Visual Representation Learning8 Aug 2023
- 2023FASTER: A Font-Agnostic Scene Text Editing and Rendering Framework5 Aug 2023
- 2023FLatten Transformer: Vision Transformer using Focused Linear Attention1 Aug 2023
- 2023LGViT: Dynamic Early Exiting for Accelerating Vision Transformer1 Aug 2023
- 2023Open-Set Domain Adaptation with Visual-Language Foundation Models30 Jul 2023
- 2023Modularizing while Training: A New Paradigm for Modularizing DNN Models15 Jun 2023
- 2023Dual Path Transformer with Partition Attention24 May 2023
- 2023Chest X-ray Image Classification: A Causal Perspective20 May 2023
- 2023MetaMorphosis: Task-oriented Privacy Cognizant Feature Generation for Multi-task Learning13 May 2023
50 newest of 74 All 74 (JSON)
- 2022Vision Transformer with Deformable Attentioncited by 293
- 2023FLatten Transformer: Vision Transformer using Focused Linear Attentioncited by 170
- 2022HorNet: Efficient High-Order Spatial Interactions with Recursive Gated Convolutionscited by 103
- 2023CompletionFormer: Depth Completion with Convolutions and Vision Transformerscited by 92
- 2022E-Branchformer: Branchformer with Enhanced merging for speech recognitioncited by 90
- 2024Multi-Scale VMamba: Hierarchy in Hierarchy Visual State Space Modelcited by 62
- 2023Slide-Transformer: Hierarchical Vision Transformer with Local Self-Attentioncited by 38
- 2023Xformer: Hybrid X-Shaped Transformer for Image Denoisingcited by 37
- 2022Contrastive Language-Image Pre-Training with Knowledge Graphscited by 34
- 2024SegMAN: Omni-scale Context Modeling with State Space Models and Local Attention for Semantic Segmentationcited by 31
- 2024CAMixerSR: Only Details Need More "Attention"cited by 30
- 2022EATFormer: Improving Vision Transformer Inspired by Evolutionary Algorithmcited by 27
12 most cited of 69 All 69 (JSON)
- 2026APRIL-MedSeg: A Modular Medical Image Segmentation Toolbox Embracing Modern Paradigms29 Jun 2026
- 2026Multi-view feature High-order Fusion for Space Weak Object Detection and Segmentation13 Jun 2026
- 2026EmambaIR: Efficient Visual State Space Model for Event-guided Image Reconstruction8 May 2026
- 2026SCG With Your Phone: Diagnosis of Rhythmic Spectrum Disorders in Field Conditions20 Jan 2026
- 2025Unifying Convolution and Attention via Convolutional Nearest Neighbors18 Nov 2025
- 2025Cross-Layer Feature Self-Attention Module for Multi-Scale Object Detection16 Oct 2025
- 2025Automated Neural Architecture Design for Industrial Defect Detection8 Oct 2025
- 2025A Segmentation-driven Editing Method for Bolt Defect Augmentation and Detection14 Aug 2025
- 2025DSConv: Dynamic Splitting Convolution for Pansharpening8 Aug 2025
- 2025MyGO: Make your Goals Obvious, Avoiding Semantic Confusion in Prostate Cancer Lesion Region Segmentation23 Jul 2025
- 2025Robust Video-Based Pothole Detection and Area Estimation for Intelligent Vehicles with Depth Map and Kalman Smoothing27 May 2025
- 2025VisAlgae 2023: A Dataset and Challenge for Algae Detection in Microscopy Images27 May 2025
12 newest of 69 All 69 (JSON)