Abstract
GRAPE is a unified positional encoding framework that combines multiplicative rotations and additive logit biases, extending existing methods like RoPE and ALiBi.
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.
Community
Introducing GRAPE: Group Representational Position Encoding.
Embracing General Relative Law of Position Encoding, unifying and improving Multiplicative and Additive Position Encoding, such as RoPE and Alibi!
Better performance with a clear theoretical formulation!
Project Page: https://model-architectures.github.io/GRAPE/
Paper: https://model-architectures.github.io/GRAPE/GRAPE.pdf
Devoted to the frontier of superintelligence, hope you will enjoy it!
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Internalizing Tools as Morphisms in Graded Transformers (2025)
- Equivariant Neural Networks for General Linear Symmetries on Lie Algebras (2025)
- Splittable Lattices in the metabelian solvable Lie group $\mathbb{R}^n\rtimes\mathbb{R}^m$ (2025)
- Equivariance by Contrast: Identifiable Equivariant Embeddings from Unlabeled Finite Group Actions (2025)
- A Unified Geometric Field Theory Framework for Transformers: From Manifold Embeddings to Kernel Modulation (2025)
- A Uniform Rewriting Algorithm for Twisted Tensor Representations of Finite General Linear Groups (2025)
- Linear control systems on a 4D solvable Lie group used to model primary visual cortex $V1$ (2025)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment:
@librarian-bot
recommend
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper