Reproduce “MrRoPE: Mixed-radix Rotary Position Embedding” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Qingyuan Tian, Wenhong Zhu, Xiaoran Liu, Xiaofeng Wang, Rui Wang
Researchers from Shanghai Jiao Tong University and Fudan University developed MRROPE, a framework unifying Rotary Position Embedding (RoPE) extension methods through radix system conversion. This framework introduces MrRoPE-Pro, a training-free extension strategy that significantly improves long-context generalization for LLMs, demonstrating up to 15x context window extension (e.g., LLaMA3-8B to 96K tokens) while achieving lower perplexity and higher retrieval accuracy compared to existing methods like YaRN.
Key insights
- RoPE implicitly acts as a biased radix encoding, and its generalization failures can be understood as high-digit truncation in a radix system, providing a theoretical lens for extension strategies.
- Existing RoPE extension methods like NTK-aware Interpolation and YaRN can be unified and systematically analyzed within the proposed MrRoPE mixed-radix conversion framework.
- A progressive radix conversion for intermediate dimensions (MrRoPE-Pro) is more effective for extending context windows as it preserves fine-grained high-frequency information and stabilizes attention score distributions over longer ranges.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.