News · · Tencent

Tencent Hunyuan open-sources RiRoPE, a position reindexing method for sparse attention

Primary evidence View 1 source record ↓ 1 source · 1 primary
Tencent 腾讯Chinese AIOpen weights

Edited & verified by pxiaoer (@pxiaoer) · Published

FACT STATEMENT

Tencent Hunyuan released the RiRoPE repository on GitHub, introducing native position reindexing for sparse attention. RiRoPE co-designs positional encoding with sparse attention, bounding relative positional distances by the attention budget. The repository includes OLMo-3 training recipes, Hugging Face inference, fused SM90 sparse-attention kernels, and an evaluation harness.

China context

Original name
腾讯混元
Outside China
Open weights · github.com
Claims
Company-reported; not yet independently evaluated
For builders
Builders can use the provided training recipes and fused SM90 kernels to replicate or extend RiRoPE for their own sparse attention models.
For investors
The release signals Tencent Hunyuan's continued investment in open-source long-context research, which may influence the competitive landscape for efficient attention mechanisms.

What happened

RiRoPE (ReIndexing RoPE) is a method that co-designs positional encoding with sparse attention by making position reindexing native to both training and inference. For each query, selected keys are assigned consecutive positions in their original order, skipping gaps left by unselected tokens. This bounds relative positional distances by the attention budget rather than the full sequence length, improving both in-range long-context performance and out-of-range length extrapolation. Under matched OLMo-3-7B continued pretraining (64K training length), sparse attention with RiRoPE outperforms sparse RoPE+YaRN at 64K (80.24 vs. 74.10 on RULER; 47.37 vs. 42.97 on HELMET) and retains ~90% of its 64K RULER score at 512K (72.17 vs. 15.21) without further training or positional retuning. The repository provides OLMo-3 training recipes, standalone Hugging Face inference, fused SM90 sparse-attention kernels, and a frozen OLMES evaluation harness.

Technical significance

RiRoPE assigns consecutive position indices to selected keys in their original order, skipping unselected tokens, so relative distances are bounded by the attention budget. This is applied natively during training, unlike inference-only context-eviction schemes. The method is evaluated on OLMo-3-7B with 64K continued pretraining, showing strong length extrapolation to 512K without retuning.

Industry impact

Developers working with long-context sparse attention can adopt RiRoPE to improve length extrapolation without additional training, potentially reducing compute costs for long-sequence processing. The open-source release includes training recipes and fused kernels, lowering the barrier for replication and integration.

Decision value

The repository provides a complete training and inference stack for sparse attention with improved long-context performance, which could reduce costs for applications requiring very long context windows.

What to watch

Next signals to check: whether RiRoPE is adopted in other model architectures beyond OLMo-3, and whether independent benchmarks confirm the reported RULER and HELMET scores.

Latest in Chinese AI

  1. XiaomiXiaomi releases Xiaomi-Robotics-U1, a unified multi-view generation and editing model for embodied AI Reported
  2. AlibabaAlibaba's Qoder Launches QBot, a 24/7 Cloud AI Team Reported
  3. Zhipu AIZhipu AI releases GLM-5.4 API on its open platform at unchanged pricing Reported
  4. BaiduBaidu open-sources Wenxin Unlimited SVG: photo-to-editable-vector model built on DeepSeek-OCR Reported
  5. BaiduBaidu Open-Sources Unlimited SVG, a Model That Redraws Images as Vectors Reported

All China AI news

AIGC Newsletter

China AI, with sources and context.

Analysis of Chinese AI models, companies and policy, and what you can use outside China.