mlsanityData to 7 Oct 2026

REOrdering Patches Improves Vision Models

arXiv 2505.23751 ↗First posted 29 May 2025cs.LG cs.AI cs.CVcited by 3

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

  1. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  2. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  3. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  4. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  5. 2024Chameleon: Mixed-Modal Early-Fusion Foundation Modelscited by 904
  6. 2018Image Transformercited by 770
  7. 2017Functional Map of the Worldcited by 338
  8. 2019Stochastic Beams and Where to Find Them: The Gumbel-Top-k Trick for Sampling Sequences Without Replacementcited by 205
  9. 2015Sequence to Sequence -- Video to Textcited by 157
  10. 2021Understanding and Improving Robustness of Vision Transformers through Patch-based Negative Augmentationcited by 40
  11. 2024Autoregressive Pretraining with Mamba in Visioncited by 21
  12. 2023Permutation Equivariance of Transformers and Its Applicationscited by 20
2 more
  1. 2024xT: Nested Tokenization for Larger Context in Large Imagescited by 8
  2. 2024Patch Ranking: Efficient CLIP by Learning to Rank Local Patchescited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 2.

3 papers.