On the Relationship between Self-Attention and Convolutional Layers
Not on the map. Why?
Abstract (arXiv)
Recent trends of incorporating attention mechanisms in vision have led researchers to reconsider the supremacy of convolutional layers as a primary building block. Beyond helping CNNs to handle long-range dependencies, Ramachandran et al. (2019) showed that attention can completely replace convolution and achieve state-of-the-art performance on vision tasks. This raises the question: do learned attention layers operate similarly to convolutional layers? This work provides evidence that attention layers can perform convolution and, indeed, they often learn to do so in practice. Specifically, we prove that a multi-head self-attention layer with sufficient number of heads is at least as expressive as any convolutional layer. Our numerical experiments then show that self-attention layers attend to pixel-grid patterns similarly to CNN layers, corroborating our analysis. Our code is publicly available.
Key facts. Cited by 299 papers in the map (data through 7 Oct 2026). First posted on arXiv 8 Nov 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 81; 2022: 75; 2023: 55; 2024: 37; 2025: 32; 2026: 19.
299 papers.
Sort:
By area:
- 2021SwinIR: Image Restoration Using Swin Transformercited by 1,869
- 2021Is Space-Time Attention All You Need for Video Understanding?cited by 1,609
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
- 2021Frozen in Time: A Joint Video and Image Encoder for End-to-End Retrievalcited by 1,175
- 2021Perceiver: General Perception with Iterative Attentioncited by 1,089
- 2021Transformers in Vision: A Surveycited by 1,009
- 2021Scaling Vision Transformerscited by 993
- 2023Scaling Vision Transformers to 22 Billion Parameterscited by 690
- 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 671
- 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
- 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
- 2022DeiT III: Revenge of the ViTcited by 417
38 more
- 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 411
- 2021Conditional Positional Encodings for Vision Transformerscited by 402
- 2021Early Convolutions Help Transformers See Bettercited by 395
- 2021Deep ViT Features as Dense Visual Descriptorscited by 327
- 2022How Do Vision Transformers Work?cited by 305
- 2021Understanding Robustness of Transformers for Image Classificationcited by 250
- 2021Localizing Objects with Self-Supervised Transformers and no Labelscited by 227
- 2021Scaling Local Self-Attention for Parameter Efficient Visual Backbonescited by 220
- 2022UniFormer: Unifying Convolution and Self-attention for Visual Recognitioncited by 206
- 2022Patches Are All You Need?cited by 201
- 2021UniT: Multimodal Multitask Learning with a Unified Transformercited by 195
- 2022Representing Long-Range Context for Graph Neural Networks with Global Attentioncited by 193
- 2022Towards Multi-spatiotemporal-scale Generalized PDE Modelingcited by 190
- 2022Pure Transformers are Powerful Graph Learnerscited by 188
- 2022UniFormer: Unified Transformer for Efficient Spatiotemporal Representation Learningcited by 182
- 2021Chasing Sparsity in Vision Transformers: An End-to-End Explorationcited by 181
- 2021On the Robustness of Vision Transformers to Adversarial Examplescited by 167
- 2021ASFormer: Transformer for Action Segmentationcited by 166
- 2022Scaling Up Your Kernels to 31x31: Revisiting Large Kernel Design in CNNscited by 155
- 2021StyleSwin: Transformer-based GAN for High-resolution Image Generationcited by 152
- 2021TokenLearner: What Can 8 Learned Tokens Do for Images and Videos?cited by 127
- 2021CycleMLP: A MLP-like Architecture for Dense Predictioncited by 126
- 2021Generative Adversarial Transformerscited by 120
- 2021A Survey of Visual Transformerscited by 117
- 2022What to Hide from Your Students: Attention-Guided Masked Image Modelingcited by 117
- 2021Relaxed Transformer Decoders for Direct Action Proposal Generationcited by 116
- 2021Global Self-Attention as a Replacement for Graph Convolutioncited by 113
- 2021Are Convolutional Neural Networks or Transformers more like human vision?cited by 109
- 2021LambdaNetworks: Modeling Long-Range Interactions Without Attentioncited by 107
- 2022Unveiling Transformers with LEGO: a synthetic reasoning taskcited by 105
- 2023OctFormer: Octree-based Transformers for 3D Point Cloudscited by 105
- 2021Involution: Inverting the Inherence of Convolution for Visual Recognitioncited by 99
- 2021Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understandingcited by 97
- 2022Vision Transformers provably learn spatial structurecited by 92
- 2021An Image is Worth 16x16 Words, What is a Video Worth?cited by 87
- 2021Scalable Vision Transformers with Hierarchical Poolingcited by 84
- 2022Fast Vision Transformers with HiLo Attentioncited by 78
- 2023A Theoretical Understanding of Shallow Vision Transformers: Learning, Generalization, and Sample Complexitycited by 77
50 most cited of 299 All 299 (JSON)
- 2026RIS-Kernel: A Model-Agnostic Architecture for Long-Context LLM Inference via Sparse Attention24 Jul 2026
- 2026LDFE: Laplacian Decoupled Feature Enhancement Block for Dual-Stream CNN-based RGB-IR Object Detection9 Jul 2026
- 2026RoVE: Rotary Value Embeddings Attention for Relative Position-dependent Value Pathways9 Jun 2026
- 2026SWARD: Stochastic Window-Attention-Based Relational Distillation for Cross-Architectural Semantic Segmentation31 May 2026
- 2026Anti Mode-Collapse in Mean-Field Transformer via Auxiliary Variables28 May 2026
- 2026Accelerating Vision Foundation Models with Drop-in Depthwise Convolution21 May 2026
- 2026Weierstrass Positional Encoding for Vision Transformers20 May 2026
- 2026From Sparsity to Simplicity: Enabling Simpler Sequential Replacements via Sparse Attention Distillation15 May 2026
- 2026From Local to Global to Mechanistic: An iERF-Centered Unified Framework for Interpreting Vision Models1 May 2026
- 2026Long-Term Visual Localization in Dynamic Benthic Environments: A Dataset, Footprint-Based Ground Truth, and Visual Place Recognition Benchmark4 Mar 2026
- 2026On the Expressive Power of Transformers for Maxout Networks and Continuous Piecewise Linear Functions3 Mar 2026
- 2026EyeLayer: Integrating Human Attention Patterns into LLM-Based Code Summarization25 Feb 2026
38 more
- 2026Krause Synchronization Transformers12 Feb 2026
- 2026Rotary Positional Embeddings as Phase Modulation: Theoretical Bounds on the RoPE Base for Long-Context Transformers11 Feb 2026
- 2026HopFormer: Sparse Graph Transformers with Explicit Receptive Field Control2 Feb 2026
- 2026LINA: Linear Autoregressive Image Generative Models with Continuous Tokens30 Jan 2026
- 2026Architecture Before the Formula: Individuating Neural Architecture Beyond the Composite Map10 Jan 2026
- 2026Bi-Orthogonal Factor Decomposition for Vision Transformers8 Jan 2026
- 2026TAP-ViTs: Task-Adaptive Pruning for On-Device Deployment of Vision Transformers5 Jan 2026
- 2025Do We Need Reformer for Vision? An Experimental Comparison with Vision Transformers12 Dec 2025
- 2025CHEM: Estimating and Understanding Hallucinations in Deep Learning for Image Processing10 Dec 2025
- 2025Intriguing Properties of Dynamic Sampling Networks25 Nov 2025
- 2025Unifying Convolution and Attention via Convolutional Nearest Neighbors18 Nov 2025
- 2025Modality Alignment across Trees on Heterogeneous Hyperbolic Manifolds31 Oct 2025
- 2025Alias-Free ViT: Fractional Shift Invariance via Linear Attention26 Oct 2025
- 2025α-LoRA: Effective Fine-Tuning via Base Model Rescaling24 Oct 2025
- 2025Decorrelation Speeds Up Vision Transformers16 Oct 2025
- 2025IBiT: Utilizing Inductive Biases to Create a More Data Efficient Attention Mechanism24 Sep 2025
- 2025What do language models model? Transformers, automata, and the format of thought26 Aug 2025
- 2025Evaluation and Analysis of Deep Neural Transformers and Convolutional Neural Networks on Modern Remote Sensing Datasets4 Aug 2025
- 2025GASPnet: Global Agreement to Synchronize Phases22 Jul 2025
- 2025Knowledge Fusion via Bidirectional Information Aggregation11 Jul 2025
- 2025Graph Collaborative Attention Network for Link Prediction in Knowledge Graphs5 Jul 2025
- 2025Mettle: Meta-Token Learning for Memory-Efficient Audio-Visual Adaptation29 Jun 2025
- 2025Enhanced Hybrid Transducer and Attention Encoder Decoder with Text Data23 Jun 2025
- 2025Efficient Feedback Gate Network for Hyperspectral Image Super-Resolution20 Jun 2025
- 2025Numerical Investigation of Sequence Modeling Theory using Controllable Memory Functions6 Jun 2025
- 2025ViTNF: Leveraging Neural Fields to Boost Vision Transformers in Generalized Category Discovery3 Jun 2025
- 2025Learning MMSE Filters for OFDM Channel Estimation: Attention Transformer Gains at Linear Inference31 May 2025
- 2025Vision Transformers with Self-Distilled Registers27 May 2025
- 2025Transformers in Protein: A Survey26 May 2025
- 2025Structured Initialization for Vision Transformers26 May 2025
- 2025FAR: Function-preserving Attention Replacement for IMC-friendly Inference24 May 2025
- 2025This Time is Different: An Observability Perspective on Time Series Foundation Models20 May 2025
- 2025Computer Vision Models Show Human-Like Sensitivity to Geometric and Topological Concepts19 May 2025
- 2025Learning to Adapt to Position Bias in Vision Transformer Classifiers19 May 2025
- 2025Function Fitting Based on Kolmogorov-Arnold Theorem and Kernel Functions29 Mar 2025
- 2025Pruning the Paradox: How CLIP's Most Informative Heads Enhance Performance While Amplifying Bias14 Mar 2025
- 2025Enhancing Video Understanding: Deep Neural Networks for Spatiotemporal Analysis11 Feb 2025
- 2025Unified CNNs and transformers underlying learning mechanism reveals multi-head attention modus vivendi22 Jan 2025
50 newest of 299 All 299 (JSON)
- 2023Real-World Denoising via Diffusion Modelcited by 10
- 2023From paintbrush to pixel: A review of deep neural networks in AI-generated artcited by 5
- 2023DiT-Head: High-Resolution Talking Head Synthesis using Diffusion Transformerscited by 4
- 2024Efficient Training with Denoised Neural Weightscited by 2
- 2022Implementing and Experimenting with Diffusion Models for Text-to-Image Generationcited by 0
- 2024Efficient Training with Denoised Neural Weights16 Jul 2024
- 2023DiT-Head: High-Resolution Talking Head Synthesis using Diffusion Transformers11 Dec 2023
- 2023Real-World Denoising via Diffusion Model8 May 2023
- 2023From paintbrush to pixel: A review of deep neural networks in AI-generated art14 Feb 2023
- 2022Implementing and Experimenting with Diffusion Models for Text-to-Image Generation22 Sep 2022
- 2022Multi-Viewpoint and Multi-Evaluation with Felicitous Inductive Bias Boost Machine Abstract Reasoning Abilitycited by 7
- 2023Infusing Lattice Symmetry Priors in Attention Mechanisms for Sample-Efficient Abstract Geometric Reasoningcited by 4
- 2025What do language models model? Transformers, automata, and the format of thoughtcited by 0
- 2025What do language models model? Transformers, automata, and the format of thought26 Aug 2025
- 2023Infusing Lattice Symmetry Priors in Attention Mechanisms for Sample-Efficient Abstract Geometric Reasoning5 Jun 2023
- 2022Multi-Viewpoint and Multi-Evaluation with Felicitous Inductive Bias Boost Machine Abstract Reasoning Ability26 Oct 2022
- 2021SwinIR: Image Restoration Using Swin Transformercited by 1,869
- 2021Is Space-Time Attention All You Need for Video Understanding?cited by 1,609
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
- 2021Frozen in Time: A Joint Video and Image Encoder for End-to-End Retrievalcited by 1,175
- 2021Perceiver: General Perception with Iterative Attentioncited by 1,089
- 2021Transformers in Vision: A Surveycited by 1,009
- 2021Scaling Vision Transformerscited by 993
- 2023Scaling Vision Transformers to 22 Billion Parameterscited by 690
- 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 671
- 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
- 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
- 2022DeiT III: Revenge of the ViTcited by 417
12 most cited of 286 All 286 (JSON)
- 2026RIS-Kernel: A Model-Agnostic Architecture for Long-Context LLM Inference via Sparse Attention24 Jul 2026
- 2026LDFE: Laplacian Decoupled Feature Enhancement Block for Dual-Stream CNN-based RGB-IR Object Detection9 Jul 2026
- 2026RoVE: Rotary Value Embeddings Attention for Relative Position-dependent Value Pathways9 Jun 2026
- 2026SWARD: Stochastic Window-Attention-Based Relational Distillation for Cross-Architectural Semantic Segmentation31 May 2026
- 2026Anti Mode-Collapse in Mean-Field Transformer via Auxiliary Variables28 May 2026
- 2026Accelerating Vision Foundation Models with Drop-in Depthwise Convolution21 May 2026
- 2026Weierstrass Positional Encoding for Vision Transformers20 May 2026
- 2026From Sparsity to Simplicity: Enabling Simpler Sequential Replacements via Sparse Attention Distillation15 May 2026
- 2026From Local to Global to Mechanistic: An iERF-Centered Unified Framework for Interpreting Vision Models1 May 2026
- 2026Long-Term Visual Localization in Dynamic Benthic Environments: A Dataset, Footprint-Based Ground Truth, and Visual Place Recognition Benchmark4 Mar 2026
- 2026On the Expressive Power of Transformers for Maxout Networks and Continuous Piecewise Linear Functions3 Mar 2026
- 2026EyeLayer: Integrating Human Attention Patterns into LLM-Based Code Summarization25 Feb 2026
12 newest of 286 All 286 (JSON)