arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.23751cs.LGcs.AIcs.CV
收藏

重新排序修补程序可改善视觉模型

REOrdering Patches Improves Vision Models

University of Pittsburgh(匹兹堡大学);University of California, Berkeley(加州大学伯克利分校)

Declan Kutscher, David M. Chan, Yutong Bai, Trevor Darrell, Ritwik Gupta

摘要:

诸如Transformers之类的序列模型要求输入被表示为一维序列。在视觉中,这通常涉及使用固定的行为主(光栅扫描)顺序来平整图像。虽然完全的自我注意是置换等变的,但现代长序列Transformers越来越依赖于打破这种不变性并引入对补丁排序敏感性的架构近似。我们表明,补丁顺序显着影响模型的性能,在这样的设置,与简单的替代品,如列主要或希尔伯特曲线产生显着的准确性变化。出于这一动机,我们提出了REOrder,一个两阶段的框架,发现任务最优的补丁排序。首先,我们通过评估各种补丁序列的可压缩性来获得信息理论先验。然后,我们通过使用REINFORCE优化Plackett-Luce策略来学习置换策略。这种方法能够在组合置换空间中进行有效的学习。在ImageNet-1 K上,REOrder将行优先排序的前1精度提高了3.01%,将Functional Map of the World提高了13.35%。

英文摘要:

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%.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑