arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.04217cs.LGcs.CL
收藏

Jordan-RoPE: 通过复Jordan块实现非半单相对位置编码

Jordan-RoPE: Non-Semisimple Relative Positional Encoding via Complex Jordan Blocks

School of Physics, Ningxia University(宁夏大学物理学院)

Yaobo Zhang

AI总结:

本文提出了一种非半单相对位置编码Jordan-RoPE,通过复旋转特征和Nilpotent响应在同一缺陷Jordan块中实现距离调制的相位基,从而生成振荡-多项式特征,如e^{-γd}cos(ωd)、e^{-γd}sin(ωd)等,并在语言模型中验证了其有效性。

摘要:

相对位置编码决定了查询-键滞后函数能够进入原始注意力logit的哪些功能。RoPE提供旋转相位,而ALiBi提供加性距离偏置。受线性平移不变位置编码的群论观点启发,我们研究了非半单情况,其中复旋转特征和Nilpotent响应共存于同一缺陷Jordan块中。所生成的相对算子产生如e^{-γd}cos(ωd)、e^{-γd}sin(ωd)、d e^{-γd}cos(ωd)和d e^{-γd}sin(ωd)等振荡-多项式特征,其中因果滞后d=i-j≥0。因此,该构造实现了距离调制的相位基d e^{iωd},而非仅仅添加单独的距离通道到RoPE。我们将其精确Jordan-RoPE公式化为非半单一参数表示,给出其实块形式,并指定非正交位置映射所需的共轭查询作用。我们还区分了该精确表示与稳定变体,后者虽然改善了数值行为但破坏了精确群律。核级别诊断和一个Jordan友好的合成语言模型任务表明,当目标包含距离调制的相位交互时,耦合的Jordan基是有用的。在小型WikiText-103字语言模型上,一个缩放精确变体在Jordan家族中优于RoPE和直接求和基线,而RoPE+ALiBi仍然是整体最强的。证据是结构性的,而非广义的性能声明。

英文摘要:

Relative positional encodings determine which functions of query-key lag can enter the primitive attention logit. RoPE supplies a rotary phase, while ALiBi supplies an additive distance bias. Motivated by group-theoretic views of linear translation-invariant positional encodings, we study a non-semisimple case in which a complex rotary eigenvalue and a nilpotent response live in the same defective Jordan block. The resulting relative operator generates oscillatory-polynomial features such as $e^{-γd}\cos(ωd)$, $e^{-γd}\sin(ωd)$, $d e^{-γd}\cos(ωd)$, and $d e^{-γd}\sin(ωd)$, for causal lag $d=i-j\geq 0$. Thus the construction realizes a distance-modulated phase basis $d e^{iωd}$, rather than merely adding a separate distance channel to RoPE. We formulate Exact Jordan-RoPE as a non-semisimple one-parameter representation, give its real block form, and specify the contragredient query action required by non-orthogonal positional maps. We also distinguish this exact representation from stabilized variants whose bounded shear improves numerical behavior but breaks the exact group law. Kernel-level diagnostics and a Jordan-friendly synthetic language-model task show that the coupled Jordan basis is useful when the target contains distance-modulated phase interactions. On a small WikiText-103 byte language model, a scaled-exact variant improves over RoPE and direct-sum baselines within the Jordan family, while RoPE+ALiBi remains strongest overall. The evidence is structural rather than a broad performance claim.

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

↑