Learning Spatial Decay for Vision Transformers
Not on the map. Why?
Abstract (arXiv)
Vision Transformers (ViTs) have revolutionized computer vision, yet their self-attention mechanism lacks explicit spatial inductive biases, leading to suboptimal performance on spatially-structured tasks. Existing approaches introduce data-independent spatial decay based on fixed distance metrics, applying uniform attention weighting regardless of image content and limiting adaptability to diverse visual scenarios. Inspired by recent advances in large language models where content-aware gating mechanisms (e.g., GLA, HGRN2, FOX) significantly outperform static alternatives, we present the first successful adaptation of data-dependent spatial decay to 2D vision transformers. We introduce Spatial Decay Transformer (SDT), featuring a novel Context-Aware Gating (CAG) mechanism that generates dynamic, data-dependent decay for patch interactions. Our approach learns to modulate spatial attention based on both content relevance and spatial proximity. We address the fundamental challenge of 1D-to-2D adaptation through a unified spatial-content fusion framework that integrates manhattan distance-based spatial priors with learned content representations. Extensive experiments on ImageNet-1K classification and generation tasks demonstrate consistent improvements over strong baselines. Our work establishes data-dependent spatial decay as a new paradigm for enhancing spatial attention in vision transformers.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 45 of its 60 references that are in the map. First posted on arXiv 13 Aug 2025.
Builds on
45 of 60 references.
References · 45
- 2017Attention Is All You Needcited by 60,361
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,255
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,183
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,884
- 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,269
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2020Rethinking Attention with Performerscited by 1,601
33 more
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
- 2017Random Erasing Data Augmentationcited by 1,239
- 2021Cascaded Diffusion Models for High Fidelity Image Generationcited by 1,163
- 2018Self-Attention with Relative Position Representationscited by 1,120
- 2021CoAtNet: Marrying Convolution and Attention for All Data Sizescited by 569
- 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 527
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 514
- 2022InternImage: Exploring Large-Scale Vision Foundation Models with Deformable Convolutionscited by 482
- 2021Conditional Positional Encodings for Vision Transformerscited by 406
- 2021Bottleneck Transformers for Visual Recognitioncited by 364
- 2021CMT: Convolutional Neural Networks Meet Vision Transformerscited by 310
- 2021Focal Self-attention for Local-Global Interactions in Vision Transformerscited by 288
- 2025MiniMax-M1: Scaling Test-Time Compute Efficiently with Lightning Attentioncited by 263
- 2025MiniMax-01: Scaling Foundation Models with Lightning Attentioncited by 166
- 2023BiFormer: Vision Transformer with Bi-Level Routing Attentioncited by 151
- 2021RegionViT: Regional-to-Local Attention for Vision Transformerscited by 127
- 2024HGRN2: Gated Linear RNNs with State Expansioncited by 127
- 2021MPViT: Multi-Path Vision Transformer for Dense Predictioncited by 122
- 2022Global Context Vision Transformerscited by 98
- 2022Conv2Former: A Simple Transformer-Style ConvNet for Visual Recognitioncited by 81
- 2023RMT: Retentive Networks Meet Vision Transformerscited by 68
- 2023FasterViT: Fast Vision Transformers with Hierarchical Attentioncited by 65
- 2022MOAT: Alternating Mobile Convolution and Attention Brings Strong Vision Modelscited by 47
- 2023Multimodal Variational Auto-encoder based Audio-Visual Segmentationcited by 38
- 2022ScalableViT: Rethinking the Context-oriented Generalization of Vision Transformercited by 36
- 2024TAVGBench: Benchmarking Text to Audible-Video Generationcited by 34
- 2024Towards Open-Vocabulary Audio-Visual Event Localizationcited by 26
- 2024Label-anticipated Event Disentanglement for Audio-Visual Video Parsingcited by 25
- 2024Advancing Weakly-Supervised Audio-Visual Video Parsing via Segment-wise Pseudo Labelingcited by 20
- 2025Mettle: Meta-Token Learning for Memory-Efficient Audio-Visual Adaptationcited by 10
- 2024You Only Scan Once: Efficient Multi-dimension Sequential Modeling with LightNetcited by 9
- 2025CLASP: Cross-modal Salient Anchor-based Semantic Propagation for Weakly-supervised Dense Audio-Visual Event Localizationcited by 6
- 2025Autoregressive Image Generation with Linear Complexity: A Spatial-Aware Decay Perspectivecited by 4
Built on by
Citing papers per year: 2025: 1.
1 paper.