Tencent Hunyuan's RiRoPE co-designs positions with sparse attention, keeping 90% at 512K
Tencent-Hunyuan · hf · 2026-12-01
Tencent Hunyuan (with CUHK, HKUST-GZ, Nvidia) proposes RiRoPE: making position reindexing native to sparse-attention training rather than an inference-time patch.
- Sparse attention usually inherits dense-attention positional encodings, retaining original-sequence distances unseen in training; RiRoPE gives each query's selected tokens consecutive positions in original order, bounding relative distances to the attention budget
- Unlike StreamingLLM's inference-only reindexing, native training lets the model adapt to query-dependent positions
- Query-dependent rotations break rotated-key reuse; structure-aware rotation reuse and fused kernels preserve tensor-core matmul without materializing per-pair rotated keys
Results (matched OLMo-3-7B continued pretraining): +6.14 RULER at 64K over a RoPE+YaRN sparse baseline (74.10→80.24) and +4.40 HELMET; retains 90% of its 64K RULER score at 512K (8× training length) with no retraining; native training beats inference-only switching by 21.24 RULER points at 256K.
More from Infra
- KAIST's ReSQue Learns Reusable Queries for Streaming Video KV Cache Compression, Best in 25/27 Settings — KAIST · 2026-12-01
- Harness RL LoRA benchmarked: 42% faster in-agent, zero degradation on raw API calls — yb2698 · 2026-12-01
- One-liner via HF Kernels boosts distributed MoE training throughput by 26% on Qwen3-30B — FerdinandMom · 2026-12-01
- h3-ncnn-vulkan runs MiniMax H3 locally on mid-range GPUs with a 128 GB download — mawcopolow · 2026-12-01
- Truffle's 96GB MoE box bets on capacity, but heavy quantization means a 32GB RTX 5090 beats it on precision — tzmartin · 2026-12-01
- tiny-voca: an open-source 4.5M-param TTS model at just 18.2MB, 70x real-time on CPU — solyarisoftware · 2026-12-01