Researchers propose a systematic mathematical framework for Rotary Position Embedding (RoPE), a technique widely adopted in Transformers for encoding relative positions.
The framework is grounded in Lie group and Lie algebra theory and provides a unified theoretical foundation for RoPE in higher dimensions.
The study identifies the core properties of RoPE as relativity and reversibility and derives general constraints and constructions for valid RoPE in different dimensions.
The proposed framework unifies and explains existing RoPE designs and allows for extensions to new modalities and tasks.