自适应DHiSparse:基于负载自适应KV层级的推测解码
Adaptive DHiSparse: Speculative Decoding over a Load-Adaptive KV Hierarchy
AI总结:
针对长上下文服务KV内存不足问题,提出自适应DHiSparse,支持层级稀疏KV上的推测解码,在多模型测试中显著提升输出吞吐量与并发度,减少主机内存获取开销。
摘要:
长上下文服务在硬件达到有效吞吐量前就会耗尽KV内存。HiSparse将历史数据存储在主机内存中,仅获取选中的条目,但它每次加载都会占用一个缓存预算,且无法处理如DSpark和DFlash2这类 draft模型的推测解码。我们提出自适应DHiSparse,它支持在层级稀疏KV上进行推测解码,并根据负载调整驻留数据:保护所需工作集,在GPU内存空闲时保留额外历史数据,通过精确融合检索恢复其余数据。DSpark和DFlash2保留其提案与接受规则:查询共享缺失行检索,draft KV使用窗口受限的环形结构,验证暂存区在层组间复用。在100K上下文、并发度128的条件下,搭载DFlash2的GLM-5.3每颗解码GPU可输出793个token/秒,是HiSparse的1.45倍、非推测自适应服务的1.27倍;在与HiSparse相同的延迟约束下,它可维持最高4倍的并发度,输出量为2.3至3.7倍(取决于每token的约束)。在DeepSeek-V4.1-Flash于500K上下文、并发度512的条件下,搭载DSpark的自适应DHiSparse输出量是搭载DSpark的驻留服务的1.85倍。在负载步长中,可选驻留将低负载下选中行的主机获取占比从14.2%降至1.4%,并在压力下释放内存。
英文摘要:
Long-context serving runs out of KV memory before the hardware reaches its useful throughput. HiSparse stores history in host memory and fetches only the selected entries, but it uses one cache budget at every load and does not handle draft-model speculative decoding such as DSpark and DFlash2. We present Adaptive DHiSparse, which supports speculative decoding over hierarchical sparse KV and adapts residency to load. It protects the required working set, retains additional history while GPU memory is spare, and recovers the rest through exact fused retrieval. DSpark and DFlash2 keep their proposal and acceptance rules: queries share missing-row retrieval, draft KV uses a window-bounded ring, and verification staging is reused across layer groups. At 100K context and concurrency 128, GLM-5.3 with DFlash2 delivers 793 output tokens/s per decode GPU, 1.45$\times$ HiSparse and 1.27$\times$ non-speculative adaptive serving. Held to the same latency bounds as HiSparse, it sustains up to 4$\times$ the concurrency and 2.3 to 3.7$\times$ the output, depending on the per-token bound. On DeepSeek-V4.1-Flash at 500K context and concurrency 512, Adaptive DHiSparse with DSpark delivers 1.85$\times$ the output of resident serving with DSpark. In a load step, optional residency reduces host fetches from 14.2% to 1.4% of selected rows at low load and releases memory under pressure.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。