RiRoPE: native position reindexing for sparse attention improves long context
RiRoPE gives each query's selected tokens consecutive positions during both sparse-attention training and inference, bounding relative distances by the attention budget. In continued pretraining of OLMo-3-7B it raised RULER at 64K from 74.1 to 80.2 versus…
Why it matters
A practical route to long-context extrapolation for sparse-attention models such as DSA-style designs.
What happened
1 min readRiRoPE gives each query's selected tokens consecutive positions during both sparse-attention training and inference, bounding relative distances by the attention budget. In continued pretraining of OLMo-3-7B it raised RULER at 64K from 74.1 to 80.2 versus RoPE+YaRN and kept about 90% of that score at 512K. Fused kernels preserve sparse attention's efficiency.
Our analysis
Unlike StreamingLLM, the model trains with these positions, and a 21-point RULER gap at 256K backs that up. Results come from one 7B continued-pretraining run; behavior at larger scale and on tasks beyond RULER/HELMET remains to be seen.