mlsanityData to 7 Oct 2026

A Close Look at Spatial Modeling: From Attention to Convolution

arXiv 2212.12552 ↗First posted 23 Dec 2022cs.CV cs.AI cs.LGcited by 3

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  5. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  6. 2017Mask R-CNNcited by 7,259
  7. 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
  8. 2017Squeeze-and-Excitation Networkscited by 4,763
  9. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  10. 2022A ConvNet for the 2020scited by 3,545
  11. 2018CBAM: Convolutional Block Attention Modulecited by 2,463
  12. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
36 more
  1. 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
  2. 2019MMDetection: Open MMLab Detection Toolbox and Benchmarkcited by 1,379
  3. 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
  4. 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
  5. 2019Attention is not Explanationcited by 916
  6. 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 749
  7. 2019Panoptic Feature Pyramid Networkscited by 644
  8. 2021Transformer in Transformercited by 632
  9. 2021CoAtNet: Marrying Convolution and Attention for All Data Sizescited by 566
  10. 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
  11. 2021MetaFormer Is Actually What You Need for Visioncited by 523
  12. 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 411
  13. 2021ResNet strikes back: An improved training procedure in timmcited by 365
  14. 2021ResMLP: Feedforward networks for image classification with data-efficient trainingcited by 338
  15. 2021CMT: Convolutional Neural Networks Meet Vision Transformerscited by 310
  16. 2019On the Relationship between Self-Attention and Convolutional Layerscited by 299
  17. 2021Focal Self-attention for Local-Global Interactions in Vision Transformerscited by 286
  18. 2021Mobile-Former: Bridging MobileNet and Transformercited by 234
  19. 2021LocalViT: Analyzing Locality in Vision Transformerscited by 228
  20. 2022Visual Attention Networkcited by 210
  21. 2013Maxout Networkscited by 186
  22. 2022Focal Modulation Networkscited by 186
  23. 2022Vision GNN: An Image is Worth Graph of Nodescited by 185
  24. 2021Conformer: Local Features Coupling Global Representations for Visual Recognitioncited by 164
  25. 2021Revisiting ResNets: Improved Training and Scaling Strategiescited by 158
  26. 2022Scaling Up Your Kernels to 31x31: Revisiting Large Kernel Design in CNNscited by 155
  27. 2018Gather-Excite: Exploiting Feature Context in Convolutional Neural Networkscited by 138
  28. 2021Benchmarking Detection Transfer Learning with Vision Transformerscited by 130
  29. 2021SOFT: Softmax-free Transformer with Linear Complexitycited by 128
  30. 2021An Attention Free Transformercited by 111
  31. 2021AS-MLP: An Axial Shifted MLP Architecture for Visioncited by 101
  32. 2021S2-MLP: Spatial-Shift MLP Architecture for Visioncited by 83
  33. 2021ResT: An Efficient Transformer for Visual Recognitioncited by 79
  34. 2021On the Connection between Local Attention and Dynamic Depth-wise Convolutioncited by 61
  35. 2021Sparse MLP for Image Recognition: Is Self-Attention Really Necessary?cited by 38
  36. 2021Augmenting Convolutional networks with attention-based aggregationcited by 29

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 1; 2024: 1; 2025: 0; 2026: 1.

3 papers.