Active Spatial Guidance: Eliminating Injected Positional Mechanisms in Vision Transformers
Not on the map. Why?
Abstract (arXiv)
Vision Transformers (ViTs) commonly rely on injected positional mechanisms to address self-attention's permutation invariance. Motivated by the spatial regularities of natural images, we ask whether spatial organization can be induced from data rather than explicitly injected. Under controlled, matched from-scratch training, we propose Active Spatial Guidance (Guidance), a training-only objective that disables positional injection and applies an auxiliary 2D coordinate-regression loss to the final-layer patch tokens. The guidance head is used only during training and removed for inference; the deployed model consists of a positional-injection-free ViT encoder and the task-specific prediction module. Using DINOv3 ViT backbones, Guidance consistently improves performance on ImageNet-100 classification, ADE20K semantic segmentation, and Hypersim monocular depth estimation, outperforming strong injected baselines such as learned absolute positional embeddings and rotary positional embeddings under identical training protocols. On ImageNet-100, broader comparisons against representative injected positional designs further support Guidance's effectiveness. Guidance also improves robustness under resolution transfer, and multi-resolution training further strengthens accuracy across input sizes. Overall, our results suggest that spatial inductive bias in ViTs need not be architecturally injected, but can be shaped through training-time supervision. The code used for training and evaluation is publicly available in https://github.com/cloudlc/asg.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 23 of its 35 references that are in the map. First posted on arXiv 1 Jul 2026.
Builds on
23 of 35 references.
References · 23
- 2017Attention Is All You Needcited by 59,932
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,923
- 2016Unsupervised Learning of Visual Representations by Solving Jigsaw Puzzlescited by 1,379
- 2018Unified Perceptual Parsing for Scene Understandingcited by 1,265
- 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,215
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
- 2015Unsupervised Visual Representation Learning by Context Predictioncited by 1,062
- 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 671
- 2020Hypersim: A Photorealistic Synthetic Dataset for Holistic Indoor Scene Understandingcited by 593
11 more
- 2021Intriguing Properties of Vision Transformerscited by 446
- 2021Conditional Positional Encodings for Vision Transformerscited by 402
- 2021Early Convolutions Help Transformers See Bettercited by 395
- 2024Rotary Position Embedding for Vision Transformercited by 226
- 2021Rethinking and Improving Relative Position Encoding for Vision Transformercited by 206
- 2022Transformer Language Models without Positional Encodings Still Learn Positional Informationcited by 148
- 2019Language Modeling with Deep Transformerscited by 96
- 2022Masked Jigsaw Puzzle: A Versatile Position Embedding for Vision Transformerscited by 33
- 2024ViTAR: Vision Transformer with Any Resolutioncited by 25
- 2022Jigsaw-ViT: Learning Jigsaw Puzzles in Vision Transformercited by 21
- 2025A 2D Semantic-Aware Position Encoding for Vision Transformerscited by 3
Built on by
Not cited yet.