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

群表示位置编码

Group Representational Position Encoding

Princeton University(普林斯顿大学);University of California, Los Angeles(加州大学洛杉矶分校);IIIS, Tsinghua University(清华大学人工智能研究院)

Yifan Zhang, Zixiang Chen, Yifeng Liu, Zhen Qin, Huizhuo Yuan, Kangping Xu, Yang Yuan, Quanquan Gu, Andrew Chi-Chih Yao

AI总结:

GRAPE提出了一种基于群作用的位置编码框架,结合乘法旋转和加法logit偏置机制,扩展了RoPE和ALiBi的应用范围,适用于长上下文模型的位置几何设计。

摘要:

我们提出了GRAPE(群表示位置编码),一种基于群作用的位置编码统一框架。GRAPE统一了两种机制:(i) 在SO(d)中的乘法旋转(乘法GRAPE)和(ii)来自一般线性群GL中的unipotent作用的加法logit偏置(加法GRAPE)。在乘法GRAPE中,位置n∈Z(或t∈R)作用为G(n)=exp(nωL),其中L是秩2的反对称生成元,产生一个相对、可组合、保持范数的映射,具有闭合形式的矩阵指数。当d/2平面对应于坐标对且具有对数均匀谱时,恢复RoPE。学习的交换子空间和紧致非交换混合严格扩展了这种几何结构,以在O(d)和O(rd)成本内捕捉跨子空间特征耦合。在加法GRAPE中,加法logits源于秩1(或低秩)unipotent作用,恢复ALiBi和遗忘变换器(FoX)作为精确特殊情况,同时保持精确的相对定律和流式缓存能力。总体而言,GRAPE为长上下文模型的位置几何提供了系统的设计空间,涵盖RoPE和ALiBi作为特殊情况。项目页面:https://github.com/model-architectures/GRAPE。

英文摘要:

We present GRAPE (Group Representational Position Encoding), a unified framework for positional encoding based on group actions. GRAPE unifies two families of mechanisms: (i) multiplicative rotations (Multiplicative GRAPE) in $\operatorname{SO}(d)$ and (ii) additive logit biases (Additive GRAPE) arising from unipotent actions in the general linear group $\mathrm{GL}$. In Multiplicative GRAPE, a position $n \in \mathbb{Z}$ (or $t \in \mathbb{R}$) acts as $\mathbf{G}(n) = \exp(n \, ω\, \mathbf{L})$ with a rank-2 skew-symmetric generator $\mathbf{L} \in \mathbb{R}^{d \times d}$, yielding a relative, compositional, norm-preserving map with a closed-form matrix exponential. RoPE is recovered exactly when the $d/2$ planes correspond to canonical coordinate pairs with a log-uniform spectrum. Learned commuting subspaces and compact non-commuting mixtures strictly extend this geometry to capture cross-subspace feature coupling at $O(d)$ and $O(r d)$ cost per head, respectively. In Additive GRAPE, additive logits arise from rank-1 (or low-rank) unipotent actions, recovering ALiBi and the Forgetting Transformer (FoX) as exact special cases while preserving an exact relative law and streaming cacheability. Overall, GRAPE provides a principled design space for positional geometry in long-context models, subsuming RoPE and ALiBi as special cases. Project page: https://github.com/model-architectures/GRAPE.

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

↑