RiRoPE
A positional encoding method that natively integrates position re-indexing into the training process of sparse attention, aligning relative position distances with the attention budget while maintaining efficiency through rotary reuse and fused kernels.
Timeline (last 90 days)
RiRoPE (ReIndexing RoPE) is a sparse attention position encoding method that natively incorporates position reindexing into training, with the rule: for each query, the selected tokens are assigned consecutive position numbers in their original sequence order, and this rule is consistent between training and inference.
Through structure-aware rotation reuse and fused kernels, the research team avoids materializing rotated key tensors for every query-key pair, so matrix multiplication can still execute efficiently on tensor cores.
In matched continued pretraining experiments on the OLMo-3-7B model, at a 64K context length, the RULER score of the sparse attention model using RiRoPE improved from 74.10 to 80.24.
At a 64K context length, the HELMET score of the sparse attention model using RiRoPE improved from 42.97 to 47.37, a gain of 4.40 points (baseline: sparse attention with RoPE plus YaRN).
At a 512K context (equivalent to eight times the training length), the RiRoPE model still retains about 90% of its 64K RULER score without any additional training or positional tuning.
At a 256K context, the natively trained RULER score is 21.24 points higher than inference-time re-indexing alone.
All Facts (6)
RiRoPE (ReIndexing RoPE) is a sparse attention position encoding method that natively incorporates position reindexing into training, with the rule: for each query, the selected tokens are assigned consecutive position numbers in their original sequence order, and this rule is consistent between training and inference.
50%UnverifiedThrough structure-aware rotation reuse and fused kernels, the research team avoids materializing rotated key tensors for every query-key pair, so matrix multiplication can still execute efficiently on tensor cores.
50%UnverifiedIn matched continued pretraining experiments on the OLMo-3-7B model, at a 64K context length, the RULER score of the sparse attention model using RiRoPE improved from 74.10 to 80.24.
50%UnverifiedAt a 64K context length, the HELMET score of the sparse attention model using RiRoPE improved from 42.97 to 47.37, a gain of 4.40 points (baseline: sparse attention with RoPE plus YaRN).
50%UnverifiedAt a 512K context (equivalent to eight times the training length), the RiRoPE model still retains about 90% of its 64K RULER score without any additional training or positional tuning.
50%UnverifiedAt a 256K context, the natively trained RULER score is 21.24 points higher than inference-time re-indexing alone.
50%