Adaptive DHiSparse:支持推测解码的自适应KV层次结构
Adaptive DHiSparse: Speculative Decoding over a Load-Adaptive KV Hierarchy
清华团队推出Adaptive DHiSparse,让长上下文模型在KV内存不足时仍能高效运行,性能提升最高达3.7倍。
Adaptive DHiSparse是一种新的长上下文 serving 技术,支持在分层稀疏KV上进行推测解码。在100K上下文和128并发条件下,GLM-5.3配合DFlash2实现每解码GPU 793个输出token/s,性能是HiSparse的1.45倍。在相同延迟限制下,它能维持高达4倍的并发量和2.3-3.7倍的输出量。在DeepSeek-V4.1-Flash的500K上下文和512并发测试中,使用DSpark的Adaptive DHiSparse输出量是驻留式服务的1.85倍。
Adaptive DHiSparse: Speculative Decoding over a Load-Adaptive KV Hierarchy
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.