Spatial Priors via Space Filling Curves for Small and Limited Data Vision Transformers
Not on the map. Why?
Abstract (arXiv)
Though Vision Transformers (ViTs) have become the dominant backbone in many computer vision tasks, due to permutation equivariance, their attention mechanism lacks explicit spatial inductive biases. This become particularly important in two settings: when model capacity is small or training data is limited. Inspired by the attention masking strategies in Linear Transformers and the scanning patterns of Vision SSMs, we introduce VIOLIN, a lightweight masked attention mechanism that encodes spatial structure within attention via Space Filling Curves (SFCs) with less than 0.0015% extra parameters and negligible computational overhead. VIOLIN scans the image using multiple SFCs to construct curve-specific decay masks, which are then combined and multiplied with the attention matrix. Across a wide range of evaluations, VIOLIN consistently improves performance. In limited data regimes such as fine-tuning on VTAB-1K, it boosts accuracy across all task groups and by up to 8.7% on the tasks where spatial information is essential. It can be combined with parameter-efficient fine-tuning methods such as LoRA to further increase the performance. Beyond fine-tuning, VIOLIN improves various small scale ViT architectures (e.g., DeiT, DINO) during pretraining on ImageNet-1K. Additionally, on pixel-level CIFAR-100 training, a task that is highly dependent on location information, VIOLIN increases accuracy by up to 7.2%. Overall, VIOLIN provides a computationally efficient yet effective way to inject spatial inductive bias into ViTs, especially benefiting small models and limited data settings.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 58 of its 81 references that are in the map. First posted on arXiv 8 Jun 2026.
Builds on
58 of 81 references.
References · 58
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2014Microsoft COCO: Common Objects in Contextcited by 17,608
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,403
- 2017Mask R-CNNcited by 7,277
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,962
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
38 more
- 2020Rethinking Attention with Performerscited by 1,601
- 2019MMDetection: Open MMLab Detection Toolbox and Benchmarkcited by 1,385
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
- 2018Unified Perceptual Parsing for Scene Understandingcited by 1,271
- 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,228
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,101
- 2016Semantic Understanding of Scenes through the ADE20K Datasetcited by 1,069
- 2024Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Modelcited by 1,056
- 2024VMamba: Visual State Space Modelcited by 969
- 2017Revisiting Unreasonable Effectiveness of Data in Deep Learning Eracited by 919
- 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 751
- 2021ImageNet-21K Pretraining for the Massescited by 613
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 613
- 2013Network In Networkcited by 605
- 2023VideoMAE V2: Scaling Video Masked Autoencoders with Dual Maskingcited by 528
- 2015An Introduction to Convolutional Neural Networkscited by 514
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 514
- 2021Linear Transformers Are Secretly Fast Weight Programmerscited by 502
- 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
- 2019A Large-scale Study of Representation Learning with the Visual Task Adaptation Benchmarkcited by 425
- 2022DeiT III: Revenge of the ViTcited by 419
- 2023Resurrecting Recurrent Neural Networks for Long Sequencescited by 408
- 2021Conditional Positional Encodings for Vision Transformerscited by 406
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 396
- 2021Random Feature Attentioncited by 354
- 2024VideoMamba: State Space Model for Efficient Video Understandingcited by 328
- 2021CMT: Convolutional Neural Networks Meet Vision Transformerscited by 310
- 2024Rotary Position Embedding for Vision Transformercited by 236
- 2021Rethinking and Improving Relative Position Encoding for Vision Transformercited by 207
- 2021Shuffle Transformer: Rethinking Spatial Shuffle for Vision Transformercited by 115
- 2024ZigMa: A DiT-style Zigzag Mamba Diffusion Modelcited by 84
- 2023RMT: Retentive Networks Meet Vision Transformerscited by 68
- 2025Forgetting Transformer: Softmax Attention with a Forget Gatecited by 53
- 2024Vision-LSTM: xLSTM as Generic Vision Backbonecited by 51
- 2024Hydra: Bidirectional State Space Models Through Generalized Matrix Mixerscited by 44
- 2023Toeplitz Neural Network for Sequence Modelingcited by 43
- 2024An Image is Worth More Than 16x16 Patches: Exploring Transformers on Individual Pixelscited by 33
- 2022Bridging the Gap Between Vision Transformers and Convolutional Neural Networks on Small Datasetscited by 29
50 most cited of 58 All 58 (JSON)
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025HEART-VIT: Hessian-Guided Efficient Dynamic Attention and Token Pruning in Vision Transformer
- 2025Learning Object Focused Attention
- 2026ASAP: Attention Sink Anchored Pruning
- 2026Parameterized Stripe Attention for Efficient Video Generation
- 2024CLEAR: Conv-Like Linearization Revs Pre-Trained Diffusion Transformers Up
- 20232-D SSM: A General Spatial Layer for Visual Transformers
- 2026How Vision Transformers Represent Position: A Mechanistic Comparison of Absolute and Rotary Positional Encodings
- 2025Compact Attention: Exploiting Structured Spatio-Temporal Sparsity for Fast Video Generation