arXiv Machine Learning By Xinyi Wu, Siyuan Liu, Ali Jadbabaie

How Data Shapes RoPE Frequency Usage: From Positional Scale Matching to Length Generalization

Read the original on arXiv Machine Learning →

arXiv:2607. 07678v1 Announce Type: new Abstract: Rotary Position Embeddings (RoPE) provide transformers with a fixed grid of positional frequencies, yet trained models use these frequencies highly non-uniformly.

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
Sep 10

Content-Based Addressing for Long Context

The paper proposes a content‑based addressing scheme for long‑context models that replaces the growing token counter in Rotary Position Embedding (RoPE) with unit‑level addresses derived from the content of each unit. By dividing the token stream into units, the method preserves local RoPE behavior while allowing new units to be addressed via learned content maps, avoiding positional mismatches when extending context length. Experiments on character‑level Tiny Shakespeare show that a model trained on 256‑character contexts achieves lower perplexity at 4096 characters using this scheme, and a second diagnostic demonstrates retrieval of multiple serialized facts.

By Mahesh Godavarti
arXiv Machine Learning
5d ago

Two Principles for Autoregressive Language Modeling

The paper investigates how RoPE Transformers differentiate functions for autoregressive language modeling, introducing two metrics—RoPE Frequency Importance Score (RFIS) and RoPE Positional Dependence (RPD)—to analyze attention heads. Experiments on Qwen3 and Llama3.1 show that these metrics can separate retrieval from positional modeling, revealing that individual heads may perform both roles. The authors propose two principles: (1) functional organization, assigning retrieval and positional functions separately within layers, and (2) positional dependence, limiting positional modeling to local contexts while using retrieval for global access.

By Runlin Shi, Bojian Yin, Guoqi Li
arXiv Machine Learning
Oct 9

Remember to Forget: Gated Adaptive Positional Encoding

The paper introduces GAPE (Gated Adaptive Positional Encoding), a drop‑in augmentation for rotary positional encodings that adds content‑aware bias to attention logits while preserving rotary geometry. GAPE uses a query‑dependent gate to contract irrelevant context and a key‑dependent gate to keep salient distant tokens, leading to exponential attenuation of weakly protected context. Experiments show that GAPE improves long‑context robustness, extrapolating up to eight times the training length, and can be retrofitted into a pretrained 7B model without losing benchmark performance.

By Riccardo Ali, Alessio Borgi, Mario Severino, Pietro Li\`o, Christopher Irwin