WavePrune: One period is often enough for RoPE
Not on the map. Why?
Abstract (arXiv)
Rotary Position Embedding (RoPE) encodes token positions by rotating each two-dimensional channel of the query and key vectors at a channel-specific frequency, making the attention logits invariant to a common shift of positions. However, this rotation is periodic, and it leads to position aliasing where relative positions separated by a full rotation period become hard to tell apart. To address this, we propose WavePrune, which restricts each channel to its first rotation period. We show that it removes the distractions in attention maps created by position aliasing and improves overall long-context performance. Specifically, WavePrune raises the HELMET score on four of five models we test without any extra tuning (e.g., 35.7 -> 40.0 on Qwen3-8B). When pretraining models from scratch, WavePrune also achieves lower validation loss at extrapolated lengths than pretraining without it. Because WavePrune restricts each channel to a sliding window, it induces a fine-grained sparsity that our hardware-aligned CUDA kernels exploit for 1.15x prefill and 1.24x decoding speedups over FlashAttention-2 at 32K context. Together, these results show that RoPE's periodic structure, widely regarded as essential, is largely redundant beyond the first rotation period.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 48 of its 56 references that are in the map. First posted on arXiv 3 Oct 2026.
Builds on
48 of 56 references.
References · 48
- 2017Attention Is All You Needcited by 60,361
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,807
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
36 more
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
- 2019DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphscited by 903
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 832
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 601
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 407
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 383
- 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 313
- 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 232
- 2023LongNet: Scaling Transformers to 1,000,000,000 Tokenscited by 204
- 2024InfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context Memorycited by 197
- 2024How to Train Long-Context Language Models (Effectively)cited by 146
- 2024LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuningcited by 136
- 2022A Length-Extrapolatable Transformercited by 127
- 2023LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Modelscited by 124
- 2024Round and Round We Go! What makes Rotary Positional Encodings useful?cited by 115
- 2024ThinK: Thinner Key Cache by Query-Driven Pruningcited by 68
- 2025Forgetting Transformer: Softmax Attention with a Forget Gatecited by 53
- 2024Base of RoPE Bounds Context Lengthcited by 52
- 2025Massive Values in Self-Attention Modules are the Key to Contextual Knowledge Understandingcited by 47
- 2024Fourier Position Embedding: Enhancing Attention's Periodic Extension for Length Generalizationcited by 39
- 2024Resonance RoPE: Improving Context Length Generalization of Large Language Modelscited by 27
- 2026FASA: Frequency-aware Sparse Attentioncited by 8
- 2026RoPE Distinguishes Neither Positions Nor Tokens in Long Contexts, Provablycited by 8
- 2025LeanK: Learnable K Cache Channel Pruning for Efficient Decodingcited by 7
- 2025SSA: Sparse Sparse Attention by Aligning Full and Sparse Attention Outputs in Feature Spacecited by 6
- 2025The Rotary Position Embedding May Cause Dimension Inefficiency in Attention Heads for Long-Distance Retrievalcited by 5
- 2026Why Attention Patterns Exist: A Unifying Temporal Perspective Analysiscited by 5
- 2026Demystifying the Slash Pattern in Attention: The Role of RoPEcited by 4
- 2026MrRoPE: Mixed-radix Rotary Position Embeddingcited by 4
- 2026CoPE: Clipped RoPE as A Scalable Free Lunch for Long Context LLMscited by 2
- 2026AdaRoPE: Not All Attention Heads Should Rotate and Scale Equallycited by 1
- 2026ATFlash: Per-RoPE-Wavelength Attention Windows for Compute/Memory-Efficient LLM Inferencecited by 1
Built on by
Not cited yet.