MrRoPE: Mixed-radix Rotary Position Embedding

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Tian, Qingyuan, Zhu, Wenhong, Liu, Xiaoran, Wang, Xiaofeng, Wang, Rui
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866908798940086272
author Tian, Qingyuan
Zhu, Wenhong
Liu, Xiaoran
Wang, Xiaofeng
Wang, Rui
author_facet Tian, Qingyuan
Zhu, Wenhong
Liu, Xiaoran
Wang, Xiaofeng
Wang, Rui
contents Rotary Position Embedding (RoPE)-extension refers to modifying or generalizing the Rotary Position Embedding scheme to handle longer sequences than those encountered during pre-training. However, current extension strategies are highly diverse and lack a unified theoretical foundation. In this paper, we propose MrRoPE (Mixed-radix RoPE), a generalized encoding formulation based on a radix system conversion perspective, which elegantly unifies various RoPE-extension approaches as distinct radix conversion strategies. Based on this theory, we introduce two training-free extensions, MrRoPE-Uni and MrRoPE-Pro, which leverage uniform and progressive radix conversion strategies, respectively, to achieve 'train short, test long' generalization. Without fine-tuning, MrRoPE-Pro sustains over 85% recall in the 128K-context Needle-in-a-Haystack test and achieves more than double YaRN's accuracy on Infinite-Bench retrieval and dialogue subsets. Theoretical analysis confirms that MrRoPE-Pro effectively raises the upper bound of RoPE's attainable encoding length, which further validates the reliability and utility of our theory and methodology.
format Preprint
id arxiv_https___arxiv_org_abs_2601_22181
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle MrRoPE: Mixed-radix Rotary Position Embedding
Tian, Qingyuan
Zhu, Wenhong
Liu, Xiaoran
Wang, Xiaofeng
Wang, Rui
Computation and Language
Rotary Position Embedding (RoPE)-extension refers to modifying or generalizing the Rotary Position Embedding scheme to handle longer sequences than those encountered during pre-training. However, current extension strategies are highly diverse and lack a unified theoretical foundation. In this paper, we propose MrRoPE (Mixed-radix RoPE), a generalized encoding formulation based on a radix system conversion perspective, which elegantly unifies various RoPE-extension approaches as distinct radix conversion strategies. Based on this theory, we introduce two training-free extensions, MrRoPE-Uni and MrRoPE-Pro, which leverage uniform and progressive radix conversion strategies, respectively, to achieve 'train short, test long' generalization. Without fine-tuning, MrRoPE-Pro sustains over 85% recall in the 128K-context Needle-in-a-Haystack test and achieves more than double YaRN's accuracy on Infinite-Bench retrieval and dialogue subsets. Theoretical analysis confirms that MrRoPE-Pro effectively raises the upper bound of RoPE's attainable encoding length, which further validates the reliability and utility of our theory and methodology.
title MrRoPE: Mixed-radix Rotary Position Embedding
topic Computation and Language
url https://arxiv.org/abs/2601.22181