Skip to contentDEEKOYA AI CoursesFLAT 20% OFFEnroll Now
Deekoya AI
AI APIs & LLMsDeveloper ToolsProductivityImage GenerationAvatars & CharactersCodingAutomation & AgentsVoice & AudioChatbots & AssistantsVideo GenerationML Ops & InfrastructureTranscriptionDesignTranslationResearch & SearchData & Analytics
ChatGPT logoChatGPTchatgpt.comClaude logoClaudeclaude.aiGemini logoGeminigemini.google.comGrok logoGrokgrok.comOpenClaw logoOpenClawopenclaw.aiCursor logoCursorcursor.comPerplexity logoPerplexityperplexity.aiGitHub Copilot logoGitHub Copilotgithub.comMidjourney logoMidjourneymidjourney.comElevenLabs logoElevenLabselevenlabs.ioSora logoSorasora.comDeepSeek logoDeepSeekchat.deepseek.com

Native Position Reindexing for Sparse Attention

Lei Zhu, Zexuan Qiu, Zhiwei Li, Zhongwei Wan, Tong Che, Huayang Li, Tian Liang, Hao Gu · 28 Nov 2026 · arXiv

Abstract

Sparse 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. We argue that positional distances should instead be co-designed with sparse attention, letting long-range interactions share positional representations with short-range ones. To realize this co-design, we make position reindexing native to sparse-attention training: each query's selected tokens receive consecutive positions in their original order during both training and inference, limiting relative distances to the attention budget rather than the full sequence length. Unlike inference-time reindexing in StreamingLLM, native training lets the model adapt to these query-dependent positions rather than merely tolerate them. Applying this rule to rotary position encoding (RoPE) yields ReIndexing RoPE (RiRoPE). A challenge is that query-dependent rotations hinder reuse of rotated keys, erasing the efficiency gains of sparse attention; we address it with structure-aware rotation reuse and fused kernels

cs.AIcs.CL

Comments

No comments yet. Share your own experience below.

Visitor posts are moderated before they appear and are the opinion of their authors, not DEEKOYA AI. Names are not verified. See our privacy policy.