LeRoPE: Learnable RoPE Frequencies Improve Language Modeling
arXiv:2607. 10134v1 Announce Type: new Abstract: Rotary Positional Encodings (RoPE) are currently the most popular positional encodings used in modern language models.
The paper introduces Periodic RoPE (P‑RoPE) and Harmonic Periodic RoPE (HP‑RoPE) as positional encoding methods that repeat a limited set of rotation angles to enable large language models to handle long contexts without position exhaustion. P‑RoPE repeats the first sliding‑window‑size angles, while HP‑RoPE selects frequencies that complete full turns within the window to eliminate wrap errors. Experiments show that both P‑RoPE and HP‑RoPE maintain near‑constant perplexity from 768 to 16k tokens and achieve 99–100% accuracy on a format‑free Passkey test at 16k, outperforming standard RoPE and other interpolation methods.
arXiv:2607. 10134v1 Announce Type: new Abstract: Rotary Positional Encodings (RoPE) are currently the most popular positional encodings used in modern language models.
arXiv:2606. 24975v1 Announce Type: new Abstract: PaTH Attention showed that replacing RoPE's position-indexed rotations with accumulated data-dependent Householder reflections yields strong length extrapolation, though performance degrades at extreme context lengths.
The attention score with rotary position embeddings (RoPE) decomposes exactly into a sum over its 2D-rotation frequency pairs, and each pair's wavelength limits how far it can discriminate position. Aligned with this structure, we propose the per-RoPE-wavelength distance window: it prunes the query--key inner-product terms beyond a wavelength-proportional distance.
arXiv:2608. 02947v1 Announce Type: new Abstract: The attention score with rotary position embeddings (RoPE) decomposes exactly into a sum over its 2D-rotation frequency pairs, and each pair's wavelength limits how far it can discriminate position.
The paper investigates the use of partial Rotary Positional Embedding (RoPE) in transformer models, showing that applying RoPE to only about 10% of hidden dimensions can save up to ten times the memory of full RoPE while achieving comparable final loss. The authors systematically analyze training dynamics and convergence across various architectures, model sizes, sequence lengths, and datasets, finding consistent performance trends. They also note that completely omitting positional encoding (NoPE) can cause loss spikes, which are mitigated by minimal RoPE usage or QK‑Norm application.
arXiv:2610.06963v1 Announce Type: new Abstract: Rotary Position Embedding (RoPE) encodes token positions by rotating each two-dimensional channel of the query and key vectors at a channel-specific fr...
HySPE introduces a hyperbolic symplectic positional encoding that uses dual shears to create a conformally symplectic contraction with two spectral decay rates per channel pair. It eliminates exponential drift by diagonalizing the operator and applying blockwise coordinate rebasing, ensuring length‑independent numerical bounds while matching the forward latency of RoPE. Experiments on TinyShakespeare and a 51M‑parameter Transformer show HySPE maintains stable perplexity at long sequence lengths, outperforming RoPE in extrapolation scenarios.
The paper introduces Query‑Guided Positional Modulation (QGPM), a training‑free technique that reshapes rotary position embeddings (RoPE) based on query relevance derived from a model’s attention heads. By adjusting the positional mapping differently for low‑relevance and high‑relevance tokens across layers, QGPM mitigates the lost‑in‑the‑middle problem in long‑context language models. Experiments on NoLiMa and RULER datasets show that QGPM outperforms baseline models, especially on retrieval tasks, and works across multiple backbones.
arXiv:2606. 24650v1 Announce Type: cross Abstract: We present Harmonic, a hierarchical state space model (SSM) for language modeling.
arXiv:2608. 11909v1 Announce Type: new Abstract: Two accounts recur in explanations of the success of rotary position embeddings (RoPE).
arXiv:2604. 00004v2 Announce Type: replace-cross Abstract: The extension of context windows in Large Language Models is typically facilitated by scaling positional encodings followed by lightweight Continual Pre-Training (CPT).
arXiv:2602. 02599v4 Announce Type: replace Abstract: Long-context inference in large language models (LLMs) is bottlenecked by the memory and compute of the key-value (KV) cache.