PapersMulti-source

IndexerStage:把 DeepSeek 稀疏注意力的 Indexer-K 状态分层外置,提升长上下文服务吞吐

IndexerStage: Staging Indexer-K across Memory Tiers for Sparse-Attention LLM Serving

Why we picked it

做长上下文推理部署的可以看看这篇:它把 DeepSeek 稀疏注意力的 Indexer-K 状态搬到外部存储,在 SGLang 上跑出了比 HiSparse 高 12%–23% 的批次规模和 1.31x 解析吞吐,显存占用每卡不到 0.7 GiB。自己搭推理集群的团队值得评估这套方案。

论文提出 IndexerStage,一个面向长上下文稀疏注意力推理的服务运行时。它针对 DeepSeek Sparse Attention 中 Indexer-K 状态逐层增长、导致 GPU 显存吃紧的问题,把已完成页外置到后端存储层,同时保留原生 GPU 的 score、top-k 与 attention kernel。

Body

技术机制上,IndexerStage 通过共享执行缓冲区分级暂存页数据,新条目留在本地;在接纳新批次前执行显存与传输联合检查,由模型服务 GPU 掌控传输时机和字节预算。由于每次解码只需当前层的 Indexer-K 状态,无需所有层同时驻留,外置不会破坏注意力计算。

实验在 SGLang 上用 16 张模型服务 H800 和 16 张后端 H800 完成。16K–64K 输入下,本地流式存储每张服务 GPU 仅占 0.65–0.70 GiB;相比基于主机内存的 HiSparse,批次规模提升 12.28–23.08%,解码吞吐达 1.08–1.14x,混合长度动态服务场景解码 TPS 达 1.31x。

Original · arXiv: DeepSeek

IndexerStage: Staging Indexer-K across Memory Tiers for Sparse-Attention LLM Serving

Long-context sparse-attention serving can remain limited by graphics processing unit (GPU) memory after attention data is offloaded. DeepSeek Sparse Attention retains Indexer-K state to select the tokens that attention will read. Its indexer scans this growing state in full at every layer and decode step. A full scan requires the current layer's state, however, not simultaneous residency of every layer. We present IndexerStage, a serving runtime that externalizes Indexer-K state while preserving native GPU score, top-k, and attention kernels. It stages completed pages through shared execution buffers and preserves new entries locally. Joint memory-and-transfer admission checks storage and each layer's transfer demand before accepting a growing batch. The backing tier gathers pages; the model-serving GPU controls transfer timing and byte budgets. We implement IndexerStage in SGLang on 16 model-serving and 16 backing H800 GPUs. Across 16K--64K inputs, local streaming storage occupies 0.65--0.70 GiB per model-serving GPU. Relative to host-memory-backed HiSparse, batch size increases by 12.28--23.08% and decode throughput in tokens per second (TPS) reaches 1.08--1.14x. At 64K with the latent-KV backing path fixed, the larger batch achieves 1.10x decode TPS; enabling streaming at batch size 24 adds 2.42% to time per output token. Mixed-length dynamic serving increases mean generating batch size by 12.07% and delivers 1.31x decode TPS.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk, focusing on China's AI industry and domestic foundation model ecosystem. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include DeepSeek, SGLang, sparse attention, inference optimization.

Primary source verification: published directly by arXiv: DeepSeek with first-party authority. Cross-source corroboration: 4 independent sources have covered this development (including Gorden Sun, AIGCLINK, elvis), confirming industry-wide signal strength.