mlsanityData to 14 Oct 2026

LOOPE: Learnable Optimal Patch Order in Positional Embeddings for Vision Transformers

arXiv 2504.14386 ↗First posted 19 Apr 2025cs.CV cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Positional embeddings (PE) play a crucial role in Vision Transformers (ViTs) by providing spatial information otherwise lost due to the permutation invariant nature of self attention. While absolute positional embeddings (APE) have shown theoretical advantages over relative positional embeddings (RPE), particularly due to the ability of sinusoidal functions to preserve spatial inductive biases like monotonicity and shift invariance, a fundamental challenge arises when mapping a 2D grid to a 1D sequence. Existing methods have mostly overlooked or never explored the impact of patch ordering in positional embeddings. To address this, we propose LOOPE, a learnable patch-ordering method that optimizes spatial representation for a given set of frequencies, providing a principled approach to patch order optimization. Empirical results show that our PE significantly improves classification accuracy across various ViT architectures. To rigorously evaluate the effectiveness of positional embeddings, we introduce the "Three Cell Experiment", a novel benchmarking framework that assesses the ability of PEs to retain relative and absolute positional information across different ViT architectures. Unlike standard evaluations, which typically report a performance gap of 4 to 6% between models with and without PE, our method reveals a striking 30 to 35% difference, offering a more sensitive diagnostic tool to measure the efficacy of PEs. Our experimental analysis confirms that the proposed LOOPE demonstrates enhanced effectiveness in retaining both relative and absolute positional information.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 30 of its 36 references that are in the map. First posted on arXiv 19 Apr 2025.

Builds on

30 of 36 references.

References · 30

  1. 2017Attention Is All You Needcited by 60,361
  2. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2023Segment Anythingcited by 8,234
  5. 2015Rethinking the Inception Architecture for Computer Visioncited by 5,475
  6. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  7. 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
  8. 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,444
  9. 2021Masked-attention Mask Transformer for Universal Image Segmentationcited by 2,351
  10. 2020Fourier Features Let Networks Learn High Frequency Functions in Low Dimensional Domainscited by 2,200
  11. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
  12. 2021Vision Transformers for Dense Predictioncited by 1,803
18 more
  1. 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,369
  2. 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,228
  3. 2018Self-Attention with Relative Position Representationscited by 1,120
  4. 2021Segmenter: Transformer for Semantic Segmentationcited by 855
  5. 2021CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classificationcited by 806
  6. 2021Going deeper with Image Transformerscited by 764
  7. 2019Stand-Alone Self-Attention in Vision Modelscited by 542
  8. 2021Conditional Positional Encodings for Vision Transformerscited by 406
  9. 2021Bottleneck Transformers for Visual Recognitioncited by 364
  10. 2020Axial-DeepLab: Stand-Alone Axial-Attention for Panoptic Segmentationcited by 326
  11. 2021When Vision Transformers Outperform ResNets without Pre-training or Strong Data Augmentationscited by 260
  12. 2024Rotary Position Embedding for Vision Transformercited by 236
  13. 2021Rethinking and Improving Relative Position Encoding for Vision Transformercited by 207
  14. 2020Rethinking Positional Encoding in Language Pre-trainingcited by 197
  15. 2021Learnable Fourier Features for Multi-Dimensional Spatial Positional Encodingcited by 93
  16. 2020Positional Encoding as Spatial Inductive Bias in GANscited by 69
  17. 2024VisionLLaMA: A Unified LLaMA Backbone for Vision Taskscited by 28
  18. 2022Neural Space-filling Curvescited by 3

Built on by

Not cited yet.