arXiv Machine Learning

Disentangling the Expressivity of RoPE

arXiv:2608. 11909v1 Announce Type: new Abstract: Two accounts recur in explanations of the success of rotary position embeddings (RoPE).

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
Hugging Face Trending Papers
Jun 1

Rethinking the Role of Positional Encoding: Sliding-Window Transformers without PE Remain Turing Complete

Positional encoding (PE) is widely viewed as necessary for transformers to process ordered sequences: without them, the next-token map appears permutation-invariant in its context tokens. This intuition underlies all prior universality results, which rely on positional information to prove that transformers with chain-of-thought can perform arbitrary computation, i.

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 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
4d ago

Periodic and Harmonic Periodic RoPE for Length Extrapolation in LLMs

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.

By Simin Huo, Ning Li
arXiv Computation and Language
Sep 10

Phase Structure in Rotary Attention: A Spectral Framework for Semantic Continuity and Execution-Boundary Governance

The paper introduces a bounded spectral framework to analyze rotary attention in transformer language models, focusing on phase alignment, hidden‑state continuity, and semantic drift. It identifies ordered hidden‑state sequences as suitable domains for spectral decomposition, derives the Rotary Position Embedding (RoPE) attention score as a sum of magnitude‑weighted cosine terms, and proves a local stability lemma linking bounded phase displacement to pre‑softmax score degradation. By defining complex modal coordinates and a weighted coherence functional, the work distinguishes representational continuity from execution‑boundary admissibility, offering a theoretical program for when spectral structure explains continuity and when external governance is required.

By Abraham Chachamovits
arXiv AI
Nov 14

Goal Encoding in LLMs

The paper explores how large language models (LLMs) encode goals—internal representations that guide action and can be realized via multiple execution paths. By designing a multi‑sub‑task coding setting, the authors locate the next sub‑goal within a sparse set of attention heads and show that these heads also decode future natural‑language actions. They demonstrate that this goal encoding is causal for the next action, plastic across environments, and persists throughout execution, proposing a non‑recurrent goal‑seeking account to explain this behavior.

By Arnab Sen Sharma, Eric Todd, Sheridan Feucht, Andy Arditi, Rohit Gandikota, Natalie Shapira, Gabriele Sarti, Constanza Fierro, Lisa Schut, David Bau