arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.08368cs.CVcs.AI
收藏

循环论证:视觉任务需要旋转位置编码(RoPE)具备等变性吗?

A Circular Argument : Does RoPE need to be Equivariant for Vision?

Institute of Computer Science and Campus Institute Data Science, University of Göttingen(计算机科学研究所和校园数据科学学院,哥廷根大学);Max Planck Institute for Dynamics and Self-Organization, Göttingen, Germany(动态与自组织马克斯·普朗克研究所,哥廷根,德国)

Chase van de Geijn, Timo Lüddecke, Polina Turishcheva, Alexander S. Ecker

AI总结:

本文通过数学证明RoPE是一维等变位置嵌入的通用方案,提出非交换生成元的球面RoPE,实证其性能与等变方法相当或更优,挑战了相对位置嵌入必要性的传统认知,为视觉位置编码研究提供新方向。

摘要:

旋转位置编码(RoPE)已成为自然语言处理中一维序列的高效技术,推动了其向图像和视频等高维数据的泛化研究。RoPE的成功被认为源于其位置等变性,即作为相对位置编码的特性。本文通过数学证明,RoPE是一维数据中等变位置嵌入的最通用解决方案之一。此外,若要求交换生成元(RoPE等变性的必要属性),混合RoPE(Mixed RoPE)是M维数据的类似通用解决方案。然而,我们质疑严格等变性是否对RoPE的性能起重要作用。我们提出球面RoPE(Spherical RoPE),这是一种类似于混合RoPE的方法,但假设非交换生成元。实证结果显示,球面RoPE与等变类似方法相比,学习行为相当或更优。这表明相对位置嵌入并不像通常认为的那样重要,至少在计算机视觉领域是如此。我们期望这一发现能消除位置编码必须是相对的 preconception,促进未来视觉位置编码研究更快速且泛化性更好。

英文摘要:

Rotary Positional Encodings (RoPE) have emerged as a highly effective technique for one-dimensional sequences in Natural Language Processing spurring recent progress towards generalizing RoPE to higher-dimensional data such as images and videos. The success of RoPE has been thought to be due to its positional equivariance, i.e. its status as a relative positional encoding. In this paper, we mathematically show RoPE to be one of the most general solutions for equivariant positional embedding in one-dimensional data. Moreover, we show Mixed RoPE to be the analogously general solution for M-dimensional data, if we require commutative generators -- a property necessary for RoPE's equivariance. However, we question whether strict equivariance plays a large role in RoPE's performance. We propose Spherical RoPE, a method analogous to Mixed RoPE, but assumes non-commutative generators. Empirically, we find Spherical RoPE to have the equivalent or better learning behavior compared to its equivariant analogues. This suggests that relative positional embeddings are not as important as is commonly believed, at least within computer vision. We expect this discovery to facilitate future work in positional encodings for vision that can be faster and generalize better by removing the preconception that they must be relative.

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

↑