mlsanityData to 14 Oct 2026

How Vision Transformers Represent Position: A Mechanistic Comparison of Absolute and Rotary Positional Encodings

arXiv 2610.13992 ↗First posted 26 Sep 2026cs.CV cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Positional embeddings encode the spatial position of each image patch in a Vision Transformer (ViT), allowing the model to distinguish different spatial arrangements of visual content. However, we know little about how the choice of embedding shapes a vision transformer's internal representation. In this work, we show that Absolute Positional Embeddings (APE) and Rotary Positional Embeddings (RoPE) encode spatial position through different internal mechanisms: APE stores position in explicit features, while RoPE builds it inside attention and rebuilds it when it is withheld. Specifically, in APE models, sparse autoencoders recover causal row- and column-specific features, whereas interventions on RoPE reveal distinct rotary components that separately encode row and column information. Additionally, causal interventions selectively disabling RoPE's row or column rotations show that decodable row and column information can be independently removed and, once rotations are restored, partly reconstructed, in part by axis-specialized attention heads. Both mechanisms are causally important for classification: permuting APE's positional features across patches reduces top-1 accuracy by 24--31 points, and ablating the rotations of RoPE's primary rebuilding head reduces it more than ablating those of any other head. Our findings show that the choice of positional encoding fundamentally changes how spatial information is organized and processed inside Vision Transformers. More broadly, our work demonstrates how mechanistic analysis can reveal how models construct, reconstruct, and maintain structured representations, providing a basis for targeted interventions in vision models.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 32 of its 38 references that are in the map. First posted on arXiv 26 Sep 2026.

Builds on

32 of 38 references.

References · 32

  1. 2017Attention Is All You Needcited by 60,361
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2023Segment Anythingcited by 8,234
  5. 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,974
  6. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
  7. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  8. 2024Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolutioncited by 4,234
  9. 2022Locating and Editing Factual Associations in GPTcited by 2,691
  10. 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,420
  11. 2025DINOv3cited by 1,414
  12. 2016Understanding intermediate layers using linear classifier probescited by 1,353
20 more
  1. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
  2. 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 876
  3. 2023Vision Transformers Need Registerscited by 871
  4. 2021How to train your ViT? Data, Augmentation, and Regularization in Vision Transformerscited by 569
  5. 2024Scaling and evaluating sparse autoencoderscited by 553
  6. 2022DeiT III: Revenge of the ViTcited by 419
  7. 2023EVA-02: A Visual Representation for Neon Genesiscited by 381
  8. 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 327
  9. 2021When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentationscited by 260
  10. 2024Rotary Position Embedding for Vision Transformercited by 236
  11. 2026Scaling Monosemanticity: Extracting Interpretable Features from Claude 3 Sonnetcited by 191
  12. 2022Transformer Language Models without Positional Encodings Still Learn Positional Informationcited by 150
  13. 2024Round and Round We Go! What makes Rotary Positional Encodings useful?cited by 115
  14. 2025Archetypal SAE: Adaptive and Stable Dictionary Learning for Concept Extraction in Large Vision Modelscited by 73
  15. 2024Sparse autoencoders reveal selective remapping of visual concepts during adaptationcited by 68
  16. 2022Dissecting Transformer Length Extrapolation via the Lens of Receptive Field Analysiscited by 42
  17. 2025Beyond Semantics: Rediscovering Spatial Awareness in Vision-Language Modelscited by 37
  18. 2024LookHere: Vision Transformers with Directed Attention Generalize and Extrapolatecited by 10
  19. 2026The Spatial Blindspot of Vision-Language Modelscited by 8
  20. 2026Positional Encodings Anchor Spatial Structure in Vision Transformers: A Geometric Perspective on Robustnesscited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Geometry without Position? When Positional Embeddings Help and Hurt Spatial Reasoning
  2. 2025Learning to Adapt to Position Bias in Vision Transformer Classifiers
  3. 2025Revisiting Multimodal Positional Encoding in Vision-Language Models
  4. 2026From Edges to Depth: Probing the Spatial Hierarchy in Vision Transformers
  5. 2026C^2ROPE: Causal Continuous Rotary Positional Encoding for 3D Large Multimodal-Models Reasoning
  6. 2025Advancing General Multimodal Capability of Vision-language Models with Pyramid-descent Visual Position Encoding
  7. 2024Grid-augmented vision: A simple yet effective approach for enhanced spatial understanding in multi-modal agents
  8. 2025Unified Camera Positional Encoding for Controlled Video Generation