Beyond Real: Imaginary Extension of Rotary Position Embeddings for Long-Context LLMs
Not on the map. Why?
Abstract (arXiv)
Rotary Position Embeddings (RoPE) have become a standard for encoding sequence order in Large Language Models (LLMs) by applying rotations to query and key vectors in the complex plane. Standard implementations, however, utilize only the real component of the complex-valued dot product for attention score calculation. This simplification discards the imaginary component, which contains valuable phase information, leading to a potential loss of relational details crucial for modeling long-context dependencies. In this paper, we propose an extension that re-incorporates this discarded imaginary component. Our method leverages the full complex-valued representation to create a dual-component attention score. We theoretically and empirically demonstrate that this approach enhances the modeling of long-context dependencies by preserving more positional information. Furthermore, evaluations on a suite of long-context language modeling benchmarks show that our method consistently improves performance over the standard RoPE, with the benefits becoming more significant as context length increases. The code is available at https://github.com/OpenMOSS/rope_pp.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 53 of its 71 references that are in the map. First posted on arXiv 8 Dec 2025.
Builds on
53 of 71 references.
References · 53
- 2017Attention Is All You Needcited by 60,361
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2025Qwen3 Technical Reportcited by 8,820
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2024Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolutioncited by 4,234
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,975
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,879
38 more
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,164
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
- 2017Decoupled Weight Decay Regularizationcited by 1,831
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
- 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,729
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,135
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 992
- 2025Large Language Diffusion Modelscited by 912
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
- 2024Yi: Open Foundation Models by 01.AIcited by 719
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 601
- 2025Dream 7B: Diffusion Large Language Modelscited by 544
- 2024DataComp-LM: In search of the next generation of training sets for language modelscited by 398
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 383
- 2023Effective Long-Context Scaling of Foundation Modelscited by 303
- 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Headscited by 288
- 2024BABILong: Testing the Limits of LLMs with Long Context Reasoning-in-a-Haystackcited by 215
- 2024InfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context Memorycited by 197
- 2024LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuningcited by 136
- 2023Scaling Laws of RoPE-based Extrapolationcited by 125
- 2024Round and Round We Go! What makes Rotary Positional Encodings useful?cited by 115
- 2019TENER: Adapting Transformer Encoder for Named Entity Recognitioncited by 69
- 2025VideoRoPE: What Makes for Good Video Rotary Position Embedding?cited by 65
- 2024Contextual Position Encoding: Learning to Count What's Importantcited by 54
- 2025Forgetting Transformer: Softmax Attention with a Forget Gatecited by 53
- 2024Base of RoPE Bounds Context Lengthcited by 52
- 2025LongLLaDA: Unlocking Long Context Capabilities in Diffusion LLMscited by 40
- 2024Fourier Position Embedding: Enhancing Attention's Periodic Extension for Length Generalizationcited by 39
- 2025PaTH Attention: Position Encoding via Accumulating Householder Transformationscited by 34
- 2024DAPE: Data-Adaptive Positional Encoding for Length Extrapolationcited by 31
- 2024LongHeads: Multi-Head Attention is Secretly a Long Context Processorcited by 16
- 2024ReAttention: Training-Free Infinite Context with Finite Attention Scopecited by 13
- 2024LongWanjuan: Towards Systematic Measurement for Long Text Qualitycited by 11
- 2024DAPE V2: Process Attention Score as Feature Map for Length Extrapolationcited by 10
50 most cited of 53 All 53 (JSON)
Built on by
Citing papers per year: 2026: 2.
2 papers.