Full Attention Strikes Back: Transferring Full Attention into Sparse within Hundred Training Steps

Yanke Zhou, Yiduo Li, Hanlin Tang, Maohua Li, Kan Liu, Lan Tao, Lin Qu, Yuan Yao, Xiaoxing Ma

arXiv:2605.16928 · 2026-05-19 공개 · arXiv · PDF

long-context kv-cache sparse-attention full-attention prefill-speedup decode-speedup token-indexer rtpurbo

Abstract

Long-context inference in large language models is bottlenecked by the quadratic cost of full attention. Existing efficient alternatives often rely either on native sparse training or on heuristic token eviction, creating an undesirable trade-off among efficiency, training cost, and accuracy. In this work, we show that full-attention LLMs are already intrinsically sparse and can be transformed into highly sparse models with only minimal adaptation. Our approach is built on three observations: (1) only a small subset of attention heads truly requires full long-context processing; (2) long-range retrieval is governed primarily by a low-dimensional subspace, allowing relevant tokens to be retrieved efficiently with a 16-dimensional indexer; and (3) the useful token budget is strongly query-dependent, making dynamic top-$p$ selection more suitable than fixed top-$k$ sparsification. Based on these insights, we propose RTPurbo, which retains the full KV cache only for retrieval heads and introduces a lightweight token indexer for sparse attention. By exploiting the model's intrinsic sparsity, RTPurbo achieves sparsification with only a few hundred training steps. Experiments on long-context benchmarks and reasoning tasks show that RTPurbo preserves near-lossless accuracy while delivering substantial efficiency gains, including up to a 9.36$\times$ prefill speedup at 1M context and about a 2.01$\times$ decode speedup. These results suggest that strong sparse inference can be obtained from standard full-attention training without expensive native sparse pretraining.

한국어 요약

📋 한 줄 요약

**[Sparse Attention / Full→Sparse Transfer]** RTPurbo가 full-attention LLM의 intrinsic sparsity 활용 — retrieval head만 full KV cache·16D indexer로 token retrieval·동적 top-p 선택, 수백 step으로 1M 컨텍스트에서 9.36× prefill·2.01× decode speedup·near-lossless.

🎯 핵심 기여도

💡 핵심 아이디어

Long-context LLM의 효율은 native sparse pretraining이나 heuristic eviction 없이도, full-attention 모델의 intrinsic sparsity(소수 retrieval head·16D subspace·query-dependent budget)를 활용해 수백 step의 minimal adaptation만으로 near-lossless·9× 수준 prefill speedup을 달성할 수 있다.

🔬 기술적 접근법

📊 주요 결과

💭 의의 및 한계

**의의**: Full-attention LLM의 intrinsic sparsity를 명시적 활용하는 새 관점, 표준 full-attention 학습 후 sparsification으로 학습 비용·정확도 trade-off 해소, 1M 컨텍스트의 9.36× prefill speedup의 실용적 임팩트. **한계**: 16D subspace·retrieval head 식별의 모델·task별 검증 필요, dynamic top-p hyperparameter 튜닝, abstract에서 정확도 손실 정량은 "near-lossless"로만 표현.

🚀 실용적 활용