arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2511.11665cs.LGcs.AI
收藏

克利福德代数转子嵌入:或许嵌入应当开始采用CARE

Clifford Algebraic Rotor Embeddings : Maybe embeddings should start to CARE

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

Sameeksha Sriram, Ayush Paliwal, Alexander S. Ecker, Chase van de Geijn

AI总结:

针对现有高维RoPE扩展丧失移位等变性的问题,提出基于四元数的QuatRo并推广为可扩展至任意维度、支持多阶多重向量编码的CARE嵌入方法,开展了不同旋转嵌入的初步对比实验。

摘要:

旋转位置嵌入(Rotary Positional Embeddings, RoPE)作为一种位置编码方法已展现出卓越性能,表现始终优于其基线方法。尽管近期研究尝试将RoPE扩展至更高维输入,但许多此类扩展不具备交换性,因此丧失了RoPE的移位等变性特性。球面RoPE(Spherical RoPE)便是这类非交换变体之一,其设计动机是在球面而非圆上旋转嵌入向量。然而球面旋转本质上是非交换的,这使得旋转序列的选择存在歧义。本研究探索了一种基于四元数的方法——四元数旋转嵌入(Quaternion Rotary Embeddings, QuatRo)来替代欧拉角,利用四元数表示3D旋转的能力对旋转轴进行参数化。我们证明了Mixed RoPE与Spherical RoPE均为QuatRo的特例。此外,我们借助几何代数将QuatRo推广为克利福德代数旋转嵌入(Clifford Algebraic Rotary Embeddings, CARE)。我们将四元数视为Cl(3,0,0)的偶子代数,将旋转嵌入的概念从四元数扩展到作用于多重向量的克利福德转子。该表述实现了两项关键推广:(1)将旋转嵌入扩展至任意维度;(2)可在多个阶次的多重向量而非仅向量中编码位置信息。我们开展了初步实验,对基于球面、四元数与克利福德的旋转嵌入进行了对比。

英文摘要:

Rotary Positional Embeddings (RoPE) have demonstrated exceptional performance as a positional encoding method, consistently outperforming their baselines. While recent work has sought to extend RoPE to higher-dimensional inputs, many such extensions are non-commutative, thereby forfeiting RoPE's shift-equivariance property. Spherical RoPE is one such non-commutative variant, motivated by the idea of rotating embedding vectors on spheres rather than circles. However, spherical rotations are inherently non-commutative, making the choice of rotation sequence ambiguous. In this work, we explore a quaternion-based approach -- Quaternion Rotary Embeddings (QuatRo) -- in place of Euler angles, leveraging quaternions' ability to represent 3D rotations to parameterize the axes of rotation. We show Mixed RoPE and Spherical RoPE to be special cases of QuatRo. Further, we propose a generalization of QuatRo to Clifford Algebraic Rotary Embeddings (CARE) using geometric algebra. Viewing quaternions as the even subalgebra of Cl(3,0,0), we extend the notion of rotary embeddings from quaternions to Clifford rotors acting on multivectors. This formulation enables two key generalizations: (1) extending rotary embeddings to arbitrary dimensions, and (2) encoding positional information in multivectors of multiple grades, not just vectors. We present preliminary experiments comparing spherical, quaternion, and Clifford-based rotary embeddings.

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

↑