arXiv Computation and Language By Simin Huo, Ning Li

Periodic and Harmonic Periodic RoPE for Length Extrapolation in LLMs

Read the original on arXiv Computation and Language →

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.

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at arXiv Computation and Language.

arXiv Machine Learning
Jun 25

Why Do Accumulated Transformations Extrapolate?

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.

By Mahesh Godavarti
Hugging Face Trending Papers
Aug 3

ATFlash: Per-RoPE-Wavelength Attention Windows for Compute/Memory-Efficient LLM Inference

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 Machine Learning
Oct 16

Fractional Rotation, Full Potential? Investigating Performance and Convergence of Partial RoPE

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.

By Mohammad Aflah Khan, Krishna P. Gummadi, Manish Gupta, Abhilasha Ravichander
arXiv Computation and Language
Oct 7

WavePrune: One period is often enough for RoPE

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...

By Guancheng Du, Luotian Huang, Shaowen Wang, Si Li, Kaifeng Lyu