Rethinking RoPE: A Mathematical Blueprint for N-dimensional Positional Embedding
Not on the map. Why?
Abstract (arXiv)
Rotary Position Embedding (RoPE) is widely adopted in large language models (LLMs) due to its efficient encoding of relative positions with strong extrapolation capabilities. However, while its application in higher-dimensional input domains, such as 2D images, have been explored in several attempts, a unified theoretical framework is still lacking. To address this, we propose a systematic mathematical framework for RoPE grounded in Lie group and Lie algebra theory. We derive the necessary and sufficient conditions for any valid N-dimensional RoPE based on two core properties of RoPE - relativity and reversibility. We demonstrate that RoPE can be characterized as a basis of a maximal abelian subalgebra (MASA) in the special orthogonal Lie algebra, and that the commonly used axis-aligned block-diagonal RoPE, where each input axis is encoded by an independent 2x2 rotation block, corresponds to the maximal toral subalgebra. Furthermore, we reduce spatial inter-dimensional interactions to a change of basis, resolved by learning an orthogonal transformation. Our experiment results suggest that inter-dimensional interactions should be balanced with local structure preservation. Overall, our framework unifies and explains existing RoPE designs while enabling principled extensions to higher-dimensional modalities and tasks.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 11 of its 20 references that are in the map. First posted on arXiv 7 Apr 2025.
Builds on
11 of 20 references.
References · 11
- 2017Attention Is All You Needcited by 59,932
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2024Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolutioncited by 4,151
- 2018Unified Perceptual Parsing for Scene Understandingcited by 1,265
- 2023Unified-IO 2: Scaling Autoregressive Multimodal Models with Vision, Language, Audio, and Actioncited by 301
- 2024Rotary Position Embedding for Vision Transformercited by 226
- 2024FiT: Flexible Vision Transformer for Diffusion Modelcited by 84
- 2025Learning the RoPEs: Better 2D and 3D Position Encodings with STRINGcited by 19
Built on by
Citing papers per year: 2025: 1; 2026: 2.
3 papers.
Similar, not cited
Close in wording, no citation either way
- 2025Circle-RoPE: Cone-like Decoupled Rotary Positional Embedding for Large Vision-Language Models
- 2026Bifocal Attention: Harmonizing Geometric and Spectral Positional Embeddings for Algorithmic Generalization
- 2025Selective Rotary Position Embedding
- 2025VRoPE: Rotary Position Embedding for Video Large Language Models
- 2026RoPEMover: Depth-Aware Object Relocation via Positional Embeddings
- 2026C^2ROPE: Causal Continuous Rotary Positional Encoding for 3D Large Multimodal-Models Reasoning
- 2025FreeFlux: Understanding and Exploiting Layer-Specific Roles in RoPE-Based MMDiT for Versatile Image Editing
- 2026URoPE: Universal Relative Position Embedding across Geometric Spaces