REOrdering Patches Improves Vision Models
Not on the map. Why?
Abstract (arXiv)
Sequence models such as transformers require inputs to be represented as one-dimensional sequences. In vision, this typically involves flattening images using a fixed row-major (raster-scan) order. While full self-attention is permutation-equivariant, modern long-sequence transformers increasingly rely on architectural approximations that break this invariance and introduce sensitivity to patch ordering. We show that patch order significantly affects model performance in such settings, with simple alternatives like column-major or Hilbert curves yielding notable accuracy shifts. Motivated by this, we propose REOrder, a two-stage framework for discovering task-optimal patch orderings. First, we derive an information-theoretic prior by evaluating the compressibility of various patch sequences. Then, we learn a policy over permutations by optimizing a Plackett-Luce policy using REINFORCE. This approach enables efficient learning in a combinatorial permutation space. REOrder improves top-1 accuracy over row-major ordering on ImageNet-1K by up to 3.01% and Functional Map of the World by 13.35%.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 14 of its 26 references that are in the map. First posted on arXiv 29 May 2025.
Builds on
14 of 26 references.
References · 14
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2024Chameleon: Mixed-Modal Early-Fusion Foundation Modelscited by 904
- 2018Image Transformercited by 770
- 2017Functional Map of the Worldcited by 338
- 2019Stochastic Beams and Where to Find Them: The Gumbel-Top-k Trick for Sampling Sequences Without Replacementcited by 205
- 2015Sequence to Sequence -- Video to Textcited by 157
- 2021Understanding and Improving Robustness of Vision Transformers through Patch-based Negative Augmentationcited by 40
- 2024Autoregressive Pretraining with Mamba in Visioncited by 21
- 2023Permutation Equivariance of Transformers and Its Applicationscited by 20
2 more
Built on by
Citing papers per year: 2025: 1; 2026: 2.
3 papers.