arXiv Machine Learning By Mahesh Godavarti

Why Do Accumulated Transformations Extrapolate?

Read the original on arXiv Machine Learning →

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.

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

arXiv Machine Learning
Oct 22

Copying Under Repetition: From Prefix Matching to Position Hashing

The paper investigates how large language models can accurately copy long repeated strings, a task that standard transformers struggle with due to overrun or truncation. It proposes a two‑layer transformer using RoPE‑style rotations (VO‑rotations) with small prime periods to encode distances modulo primes, enabling the model to distinguish all necessary positions via the Chinese Remainder Theorem and correctly terminate copying. Experiments show that baseline transformers fail on long repeats, while the VO‑based model generalizes to lengths up to about 5005 with near‑perfect accuracy.

By Anxin Guo, Tianlong Huang, Chenxiao Yang, Zhiyuan Li
arXiv Computation and Language
Nov 9

Query-Guided RoPE Modulation for Lost-in-the-Middle Mitigation in Long-Context LLMs

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.

By Peiyu Zhang, Heng Ping, Shinibali Bhattacharyya, Anwesan Pal, Nikos Kanakaris, Kevin Cheang, Shixuan Li, Wei Yang, Paul Bogdan
arXiv Machine Learning
Jun 24

Selective Rotary Position Embedding

arXiv:2511. 17388v3 Announce Type: replace-cross Abstract: Position information is essential for language modeling.

By Sajad Movahedi, Timur Carstensen, Arshia Afzal, Frank Hutter, Antonio Orvieto, Volkan Cevher
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