A Close Look at Spatial Modeling: From Attention to Convolution
Not on the map. Why?
Abstract (arXiv)
Vision Transformers have shown great promise recently for many vision tasks due to the insightful architecture design and attention mechanism. By revisiting the self-attention responses in Transformers, we empirically observe two interesting issues. First, Vision Transformers present a queryirrelevant behavior at deep layers, where the attention maps exhibit nearly consistent contexts in global scope, regardless of the query patch position (also head-irrelevant). Second, the attention maps are intrinsically sparse, few tokens dominate the attention weights; introducing the knowledge from ConvNets would largely smooth the attention and enhance the performance. Motivated by above observations, we generalize self-attention formulation to abstract a queryirrelevant global context directly and further integrate the global context into convolutions. The resulting model, a Fully Convolutional Vision Transformer (i.e., FCViT), purely consists of convolutional layers and firmly inherits the merits of both attention mechanism and convolutions, including dynamic property, weight sharing, and short- and long-range feature modeling, etc. Experimental results demonstrate the effectiveness of FCViT. With less than 14M parameters, our FCViT-S12 outperforms related work ResT-Lite by 3.7% top1 accuracy on ImageNet-1K. When scaling FCViT to larger models, we still perform better than previous state-of-the-art ConvNeXt with even fewer parameters. FCViT-based models also demonstrate promising transferability to downstream tasks, like object detection, instance segmentation, and semantic segmentation. Codes and models are made available at: https://github.com/ma-xu/FCViT.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 48 of its 52 references that are in the map. First posted on arXiv 23 Dec 2022.
Builds on
48 of 52 references.
References · 48
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2017Mask R-CNNcited by 7,259
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
- 2017Squeeze-and-Excitation Networkscited by 4,763
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2022A ConvNet for the 2020scited by 3,545
- 2018CBAM: Convolutional Block Attention Modulecited by 2,463
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
36 more
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
- 2019MMDetection: Open MMLab Detection Toolbox and Benchmarkcited by 1,379
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
- 2019Attention is not Explanationcited by 916
- 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 749
- 2019Panoptic Feature Pyramid Networkscited by 644
- 2021Transformer in Transformercited by 632
- 2021CoAtNet: Marrying Convolution and Attention for All Data Sizescited by 566
- 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
- 2021MetaFormer Is Actually What You Need for Visioncited by 523
- 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 411
- 2021ResNet strikes back: An improved training procedure in timmcited by 365
- 2021ResMLP: Feedforward networks for image classification with data-efficient trainingcited by 338
- 2021CMT: Convolutional Neural Networks Meet Vision Transformerscited by 310
- 2019On the Relationship between Self-Attention and Convolutional Layerscited by 299
- 2021Focal Self-attention for Local-Global Interactions in Vision Transformerscited by 286
- 2021Mobile-Former: Bridging MobileNet and Transformercited by 234
- 2021LocalViT: Analyzing Locality in Vision Transformerscited by 228
- 2022Visual Attention Networkcited by 210
- 2013Maxout Networkscited by 186
- 2022Focal Modulation Networkscited by 186
- 2022Vision GNN: An Image is Worth Graph of Nodescited by 185
- 2021Conformer: Local Features Coupling Global Representations for Visual Recognitioncited by 164
- 2021Revisiting ResNets: Improved Training and Scaling Strategiescited by 158
- 2022Scaling Up Your Kernels to 31x31: Revisiting Large Kernel Design in CNNscited by 155
- 2018Gather-Excite: Exploiting Feature Context in Convolutional Neural Networkscited by 138
- 2021Benchmarking Detection Transfer Learning with Vision Transformerscited by 130
- 2021SOFT: Softmax-free Transformer with Linear Complexitycited by 128
- 2021An Attention Free Transformercited by 111
- 2021AS-MLP: An Axial Shifted MLP Architecture for Visioncited by 101
- 2021S2-MLP: Spatial-Shift MLP Architecture for Visioncited by 83
- 2021ResT: An Efficient Transformer for Visual Recognitioncited by 79
- 2021On the Connection between Local Attention and Dynamic Depth-wise Convolutioncited by 61
- 2021Sparse MLP for Image Recognition: Is Self-Attention Really Necessary?cited by 38
- 2021Augmenting Convolutional networks with attention-based aggregationcited by 29
Built on by
Citing papers per year: 2023: 1; 2024: 1; 2025: 0; 2026: 1.
3 papers.
- 2023DAT++: Spatially Dynamic Vision Transformer with Deformable Attentioncited by 21
- 2024FFNet: MetaMixer-based Efficient Convolutional Mixer Designcited by 1
- 2026DnA: Denoising Attention for Visual Taskscited by 0
- 2026DnA: Denoising Attention for Visual Tasks25 Jun 2026
- 2024FFNet: MetaMixer-based Efficient Convolutional Mixer Design4 Jun 2024
- 2023DAT++: Spatially Dynamic Vision Transformer with Deformable Attention4 Sep 2023