2025-12-09 · 专家 · 自然语言处理 · 机器学习

Group Representational Position Encoding

提出GRAPE(Group Representational Position Encoding),一种基于群操作的统一位置编码框架,通过乘法和加法机制扩展了位置编码的几何表示,同时保持了RoPE和ALiBi等现有方法。

更新于 2026-11-30。作者:Yifan Zhang、Zixiang Chen、Yifeng Liu、Zhen Qin、Huizhuo Yuan、Kangping Xu、Yang Yuan、Quanquan Gu、Andrew Chi-Chih Yao。

中文摘要

我们提出了一种名为 GRAPE(Group RepresentAtional Position Encoding)的统一框架,该框架基于群动作进行位置编码。GRAPE 结合了两类机制:(i)在 SO(d) 中的乘法旋转(乘法 GRAPE)和(ii)来自一般线性群 GL 中幂零动作的加法 logit 偏置(加法 GRAPE)。在乘法 GRAPE 中,整数集 Z(或实数集 R)中的位置 n 作用为 G(n)=exp(n,ω,L),其中 L 是 R^{d times d} 中的秩为 2 的斜对称生成元,从而得到一个相对的、组合的、保持范数的映射,具有封闭形式的矩阵指数。当 d/2 个平面是具有对数均匀谱的典型坐标对时,RoPE 被精确恢复。通过学习共轭子空间和紧凑的非共轭混合,严格扩展了这种几何形状,以捕获跨子空间特征耦合,每个头部的成本分别为 O(d) 和 O(r d)。在加法 GRAPE 中,加法 logits 作为秩为 1(或低秩)的幂零动作出现,精确恢复了 ALiBi 和 Forgetting Transformer(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 brings together two families of mechanisms: (i) multiplicative rotations (Multiplicative GRAPE) in SO(d) and (ii) additive logit biases (Additive GRAPE) arising from unipotent actions in the general linear group GL. In Multiplicative GRAPE, a position n in Z (or t in R) acts as G(n)=exp(n,ω,L) with a rank-2 skew generator L in 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 are the canonical coordinate pairs with 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 as 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. Altogether, GRAPE supplies 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.

解读

一句话总结

提出GRAPE(Group Representational Position Encoding),一种基于群操作的统一位置编码框架,通过乘法和加法机制扩展了位置编码的几何表示,同时保持了RoPE和ALiBi等现有方法。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt