CVPR Findings2026
LOOPE: Learnable Optimal Patch Order for Positional Encoders in Vision Transformers
Md Abtahi Majeed Chowdhury, Md Rifat Ur Rahman, Akil Ahmad Taki
Abstract
Transformers are inherently permutation invariant, making positional encoding (PE) fundamental to their success. While prior work has focused on designing absolute or relative positional encoders, nearly all approaches implicitly assume that the 1D ordering of image patches is fixed. Yet for higher-dimensional data such as images, mapping a 2D grid into a 1D sequence is itself a geometric operation-one that can distort locality, disrupt neighborhood structure, and ultimately limit how effectively PEs capture spatial relations. Surprisingly, the impact of the order of patches on positional representation has received little attention. We revisit this overlooked design dimension and show that patch order is not merely a preprocessing choice but a learnable degree of freedom that fundamentally shapes positional embedding quality. We propose LOOPE, a lightweight framework that learns an image-dependent ordering of patches. Starting from a locality-preserving space-filling curve and applying small context-aware refinements, LOOPE yields an interpretable and content-adaptive coordinate system on which standard sinusoidal encodings operate robustly. Across multiple ViT and ViT-based architectures, LOOPE improves performance and stabilizes PEs under challenging settings such as non-optimal frequency schedules. To complement standard benchmarks, we introduce a simple diagnostic task revealing that effective PEs can preserve far more positional information than previously reported. Our findings highlight learnable patch ordering as a powerful and largely untapped tool for improving positional encoding in vision Transformers.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
Lineage
- Segment Anything cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Segment Anything cites Fourier Features Let Networks Learn High Frequency Functions in Low Dimensional Domains
- Vision Transformers for Dense Prediction cites Training data-efficient image transformers & distillation through attention
- Training data-efficient image transformers & distillation through attention cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
Builds on18
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- Segment AnythingAlexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao et al.ICCV 2023 · 13,211 citations
- Training data-efficient image transformers & distillation through attentionHugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa et al.ICML 2021 · 8,974 citations
- Fourier Features Let Networks Learn High Frequency Functions in Low Dimensional DomainsMatthew Tancik, Pratul P. Srinivasan, Ben Mildenhall, Sara Fridovich-Keil et al.NeurIPS 2020 · 4,036 citations
- Vision Transformers for Dense PredictionRené Ranftl, Alexey Bochkovskiy, Vladlen KoltunICCV 2021 · 2,647 citations
Related papers
- LaPE: Layer-adaptive Position Embedding for Vision Transformers with Independent Layer NormalizationRunyi Yu, Zhennan Wang, Yinhuai Wang, Kehan Li et al.ICCV 2023 · 13 citations
- Scale-space Tokenization for Improving the Robustness of Vision TransformersLei Xu, Rei Kawakami, Nakamasa InoueACM MM 2023 · 1 citation
- Rethinking and Improving Relative Position Encoding for Vision TransformerKan Wu, Houwen Peng, Minghao Chen, Jianlong Fu et al.ICCV 2021 · 427 citations
- DropPos: Pre-Training Vision Transformers by Reconstructing Dropped PositionsHaochen Wang, Junsong Fan, Yuxi Wang, Kaiyou Song et al.NeurIPS 2023 · 32 citations
- REOrdering Patches Improves Vision ModelsDeclan Kutscher, David M. Chan, Yutong Bai, Trevor Darrell et al.NeurIPS 2025 · 3 citations
