RiRoPE trains sparse attention with native position reindexing
Original title: Native Position Reindexing for Sparse Attention
Matched OLMo-3-7B continued pretraining raises 64K RULER from 74.10 to 80.24 versus sparse RoPE with YaRN.
The paper argues that sparse attention should use positional distances tied to each query’s selected tokens rather than the full sequence. ReIndexing RoPE (RiRoPE) assigns consecutive positions during training and inference, with structure-aware rotation reuse and fused kernels to retain sparse-attention efficiency. On matched OLMo-3-7B continued pretraining, the authors report gains over a RoPE-with-YaRN baseline and strong retention at lengths beyond training.
Unconfirmed: Benchmark deltas are reported by the paper and have not been independently confirmed here.
- Relative distances are limited to the attention budget.
- At 64K, HELMET rises from 42.97 to 47.37.
- At 512K, it retains about 90% of its 64K RULER score.
- Native training beats inference-only switching by 21.24 RULER points at 256K.
From the original article
1 min read at huggingface.coSparse attention typically inherits positional encodings designed for dense attention, despite changing each query's context. Although sparse attention bounds the number of attended keys, these encodings retain large original-sequence distances poorly covered or unseen during training.
By Lei Zhu, Zexuan Qiu, Zhiwei Li · huggingface.co
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.