Frayed RoPE and Long Inputs: A Geometric Perspective
Davis Wertheimer, Aozhong Zhang, Derrick Liu, Penghang Yin, Naigang Wang

TL;DR
This paper provides a geometric analysis of Rotary Positional Embedding (RoPE), revealing how long inputs cause performance issues by disrupting key/query clustering, and proposes RoPE-ID to enable better generalization to longer inputs.
Contribution
It introduces a geometric perspective on RoPE behavior, identifying the cause of long input degradation, and proposes RoPE-ID, a simple modification for improved long-input performance.
Findings
RoPE damages key/query clustering on long inputs.
RoPE-ID improves long-input handling in large transformers.
Empirical results show RoPE-ID outperforms standard RoPE on benchmarks.
Abstract
Rotary Positional Embedding (RoPE) is a widely adopted technique for encoding position in language models, which, while effective, causes performance breakdown when input length exceeds training length. Prior analyses assert (rightly) that long inputs cause channels to rotate ``out of distribution,'' but it is not clear how extra rotation relates to or causes pathological behavior. Through empirical and theoretical analysis we advance a unified geometric understanding of attention behavior with RoPE. We find that attention induces tight clustering of separated key and query latent point clouds, allowing for creation of sink tokens: placeholders that allow attention heads to avoid token mixing when not required. RoPE applied to longer inputs damages this key/query cluster separation, producing pathological behavior by inhibiting sink token functionality. From this geometric perspective,…
Peer Reviews
Decision·ICLR 2026 Poster
1. The geometric interpretation of RoPE and attention behavior is original, intuitive, and interesting, linking positional encoding, cluster geometry, and sink token dynamics into a unified framework. 2. The paper validates hypotheses through detailed analyses (PCA projections, singular value decomposition, attention maps) and replicates findings across multiple LLM families (LLaMA, Gemma, Olmo). 3. Figures (e.g., cluster diagrams and singular-value ratios) effectively convey geometric intuiti
1. While the geometric intuition is appealing, the paper lacks a mathematical analysis of how RoPE’s rotation frequencies affect cluster stability. The mechanism by which RoPE transforms i.i.d. token embeddings into clustered structures and subsequently causes cluster dispersion under out-of-distribution (OOD) conditions remains insufficiently explained. 2. Figure 2 analyzes cosine similarities, yet attention operates on dot products. This mismatch raises concerns about whether the reported geo
- Overall, thorough analysis, then simple solution. Awesome! Great Science! - Reveals that attention uses separated key/query clusters (opposite of conventional wisdom), connects RoPE mechanics, attention geometry, and sink tokens into one elegant explanation, slow-rotating channels reach unseen angles beyond training length, destroying cluster separation - Zero-shot method that matches or exceeds YARN. RoPE-ID is basically "use high frequencies on half the channels", trained on 4k, works on 64k
- The last paragraph of the intro is hard to parse, though easy to understand after reading the paper. - The tables could emphasize more that RoPE-ID is zero shot.
Introduces a clear geometric explanation for RoPE’s long-context failures, supported by multiple complementary analyses. Proposes a simple, low-cost remedy (RoPE-ID) that requires no fine-tuning, facilitating rapid deployment. Demonstrates robust empirical evaluation across tasks and baselines and provides reproducibility details.
Theoretical analysis stops short of giving formal bounds that relate rotation frequency to cluster overlap or performance. Experimental scope is limited to 1B/3B models and up to 16k context; applicability to 7B+ models or 100k+ contexts is not shown. Key hyperparameter choices (channel ratio, cycle length, temperature coefficient) lack comprehensive ablation or principled justification. Baseline comparisons are incomplete—direct controlled comparisons to Hope[1], and other recent methods und
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Neurobiology of Language and Bilingualism
