SP-ViT: Learning 2D Spatial Priors for Vision Transformers
Not on the map. Why?
Abstract (arXiv)
Recently, transformers have shown great potential in image classification and established state-of-the-art results on the ImageNet benchmark. However, compared to CNNs, transformers converge slowly and are prone to overfitting in low-data regimes due to the lack of spatial inductive biases. Such spatial inductive biases can be especially beneficial since the 2D structure of an input image is not well preserved in transformers. In this work, we present Spatial Prior-enhanced Self-Attention (SP-SA), a novel variant of vanilla Self-Attention (SA) tailored for vision transformers. Spatial Priors (SPs) are our proposed family of inductive biases that highlight certain groups of spatial relations. Unlike convolutional inductive biases, which are forced to focus exclusively on hard-coded local regions, our proposed SPs are learned by the model itself and take a variety of spatial relations into account. Specifically, the attention score is calculated with emphasis on certain kinds of spatial relations at each head, and such learned spatial foci can be complementary to each other. Based on SP-SA we propose the SP-ViT family, which consistently outperforms other ViT models with similar GFlops or parameters. Our largest model SP-ViT-L achieves a record-breaking 86.3% Top-1 accuracy with a reduction in the number of parameters by almost 50% compared to previous state-of-the-art model (150M for SP-ViT-L vs 271M for CaiT-M-36) among all ImageNet-1K models trained on 224x224 and fine-tuned on 384x384 resolution w/o extra data.
Key facts. Cited by 12 papers in the map (data through 13 Oct 2026). Builds on 30 of its 32 references that are in the map. First posted on arXiv 15 Jun 2022.
Builds on
30 of 32 references.
References · 30
- 2017Attention Is All You Needcited by 60,106
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,304
- 2020Language Models are Few-Shot Learnerscited by 32,320
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,043
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,223
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,322
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,111
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,426
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,574
- 2022A ConvNet for the 2020scited by 3,563
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,810
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,171
18 more
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,961
- 2018Self-Attention with Relative Position Representationscited by 1,116
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,101
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
- 2021CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classificationcited by 806
- 2021Going deeper with Image Transformerscited by 762
- 2021Transformer in Transformercited by 633
- 2020Transformer Interpretability Beyond Attention Visualizationcited by 623
- 2021CoAtNet: Marrying Convolution and Attention for All Data Sizescited by 569
- 2019Stand-Alone Self-Attention in Vision Modelscited by 542
- 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 527
- 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
- 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
- 2021Conditional Positional Encodings for Vision Transformerscited by 406
- 2021DeepViT: Towards Deeper Vision Transformercited by 288
- 2021Incorporating Convolution Designs into Visual Transformerscited by 248
- 2021Rethinking and Improving Relative Position Encoding for Vision Transformercited by 207
- 2021All Tokens Matter: Token Labeling for Training Better Vision Transformerscited by 144
Built on by
Citing papers per year: 2022: 2; 2023: 3; 2024: 4; 2025: 3.
12 papers.
- 2022Hypergraph Transformer for Skeleton-based Action Recognitioncited by 36
- 2024Accelerating Transformers with Spectrum-Preserving Token Mergingcited by 34
- 2022Toward 3D Spatial Reasoning for Human-like Text-based Visual Question Answeringcited by 24
- 2023Knowledge Distillation in Vision Transformers: A Critical Reviewcited by 13
- 2025ToSA: Token Merging with Spatial Awarenesscited by 11
- 2023Overcoming Topology Agnosticism: Enhancing Skeleton-Based Action Recognition through Redefined Skeletal Topology Awarenesscited by 8
- 2024Pruning One More Token is Enough: Leveraging Latency-Workload Non-Linearities for Vision Transformers on the Edgecited by 8
- 2024MultiMax: Sparse and Multi-Modal Attention Learningcited by 5
- 2023PEAN: A Diffusion-Based Prior-Enhanced Attention Network for Scene Text Image Super-Resolutioncited by 4
- 2025MaxSup: Overcoming Representation Collapse in Label Smoothingcited by 4
- 2025How Many Tokens Do 3D Point Cloud Transformer Architectures Really Need?cited by 4
- 2024Multiple Prior Representation Learning for Self-Supervised Monocular Depth Estimation via Hybrid Transformercited by 0
- 2025How Many Tokens Do 3D Point Cloud Transformer Architectures Really Need?7 Nov 2025
- 2025ToSA: Token Merging with Spatial Awareness24 Jun 2025
- 2025MaxSup: Overcoming Representation Collapse in Label Smoothing18 Feb 2025
- 2024Pruning One More Token is Enough: Leveraging Latency-Workload Non-Linearities for Vision Transformers on the Edge1 Jul 2024
- 2024Multiple Prior Representation Learning for Self-Supervised Monocular Depth Estimation via Hybrid Transformer13 Jun 2024
- 2024MultiMax: Sparse and Multi-Modal Attention Learning3 Jun 2024
- 2024Accelerating Transformers with Spectrum-Preserving Token Merging25 May 2024
- 2023PEAN: A Diffusion-Based Prior-Enhanced Attention Network for Scene Text Image Super-Resolution29 Nov 2023
- 2023Overcoming Topology Agnosticism: Enhancing Skeleton-Based Action Recognition through Redefined Skeletal Topology Awareness19 May 2023
- 2023Knowledge Distillation in Vision Transformers: A Critical Review4 Feb 2023
- 2022Hypergraph Transformer for Skeleton-based Action Recognition17 Nov 2022
- 2022Toward 3D Spatial Reasoning for Human-like Text-based Visual Question Answering21 Sep 2022