Disentangling the Expressivity of RoPE
Selim Jerad, Anej Svete, Jiaoda Li, Ryan Cotterell
Key points
From the paper's conclusion- Altogether, our findings shed light on RoPE transformers, bringing theoretical expressivity characterizations closer to models used in practice.
Abstract
Two accounts recur in explanations of the success of rotary position embeddings (RoPE). Expressivity studies associate periodic position information with modular predicates, whereas mechanistic and long-context studies emphasize positional anchors and local offsets. We formalize both accounts for fully uniform, finite-precision soft-attention transformers. We find that, if every rotary component is periodic, RoPE transformers recognize exactly the languages definable in past temporal logic with modular predicates. Conventional RoPE is different: The rotations it computes never repeat. This yields a precision-dependent bounded simulation of fixed-offset look-back operators, rather than an all-length modular characterization. Controlled experiments match this separation: Constructed periodic schedules length-generalize on modular languages, while conventional RoPE behaves more like a bounded locality bias and can impair tasks requiring position-invariant access to distant context. Altogether, our findings shed light on RoPE transformers, bringing theoretical expressivity characterizations closer to models used in practice.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- RoPE at the End of Its Rope? Theory, Diagnosis, and Mitigation of Long-Context FailuresarXiv · 2026
- WavePrune: One period is often enough for RoPEarXiv · 2026
- POD-RoPE: Rotary Position Encoding over Physical Observation Distributions for Embodied AIarXiv · 2026
- Analytic-Walk Rotary Positional Encodings for GraphsarXiv · 2026
- Retrofitting Unbounded Context onto Stock Language ModelsarXiv · 2026
- A Geometric Invariant of Attention Predicts Head Specialization from Weights AlonearXiv · 2026