DoPE: Denoising Rotary Position Embedding
Not on the map. Why?
Abstract (arXiv)
Positional encoding is essential for large language models (LLMs) to represent sequence order, yet recent studies show that Rotary Position Embedding (RoPE) can induce massive activation. We investigate the source of these instabilities via a spectral analysis of RoPE, and show that its low-frequency components concentrate structured energy, producing low-rank, over-aligned attention patterns. We theoretically reveal that this low-frequency alignment manifests as activation noise, degrading stability during long-context extrapolation. To mitigate this effect, we introduce Denoising Rotary Position Embedding (DoPE), a training-free method that identifies and suppresses noisy attention heads using truncated matrix entropy, then reparameterizes their attention maps with an isotropic Gaussian distribution. Across a range of settings, DoPE improves length extrapolation performance without fine-tuning, increases robustness to perturbations, and boosts both needle-in-a-haystack and many-shot in-context learning tasks. These results suggest that selective positional encoding is key to robust extrapolation. Our project page is Project: https://The-physical-picture-of-LLMs.github.io
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 24 of its 35 references that are in the map. First posted on arXiv 12 Nov 2025.
Builds on
24 of 35 references.
References · 24
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 507
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 487
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 404
- 2019KEPLER: A Unified Model for Knowledge Embedding and Pre-trained Language Representationcited by 356
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 319
12 more
- 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 302
- 2024When Attention Sink Emerges in Language Models: An Empirical Viewcited by 200
- 2022Transformer Language Models without Positional Encodings Still Learn Positional Informationcited by 148
- 2022KERPLE: Kernelized Relative Positional Embedding for Length Extrapolationcited by 84
- 2025On the Emergence of Position Bias in Transformerscited by 57
- 2022Your Transformer May Not be as Powerful as You Expectcited by 55
- 2024Length Generalization of Causal Transformers without Position Encodingcited by 46
- 2024On the Role of Attention Masks and LayerNorm in Transformerscited by 45
- 2025Massive Values in Self-Attention Modules are the Key to Contextual Knowledge Understandingcited by 44
- 2025Towards Economical Inference: Enabling DeepSeek's Multi-Head Latent Attention in Any Transformer-based LLMscited by 27
- 2023Functional Interpolation for Relative Positions Improves Long Context Transformerscited by 18
- 2024Position Information Emerges in Causal Transformers Without Positional Encodings via Similarity of Nearby Embeddingscited by 8
Built on by
Citing papers per year: 2026: 2.
2 papers.