HiSparse Roadmap for Long-Context Sparse Serving
Author: hzh0425Created Jun 22, 2026Updated Sep 30, 2026
Labelsroadmaphisparse
Motivation
HiSparse[Blog] is designed to support long-context sparse attention in SGLang with much lower GPU memory usage during decode. Instead of keeping the full KV history in HBM, HiSparse keeps only a small hot working set on device and backs the full token history in CPU pinned memory, swapping selected tokens back to GPU on demand.
For 1MB-class contexts and PD serving, the main challenges are IO overhead, kernel efficiency, KV transfer cost, and compatibility with HiCache/offloading, MTP, and more sparse model families. The roadmap focuses on improving model coverage, reducing long-context overhead, and making HiSparse decode robust in production PD scenarios.
Slack Channel:kv-cache-store
Roadmap
1. Sparse Model Support
- MiniMax-M3
- DeepSeek-V4
- GLM-5.2 and GLM-5.1
2. Performance Optimization for 1MB Long Context
- For GLM-5.2, implement IO prefetch and compute overlap based on the IndexShared mechanism to reduce IO impact. #28523
- Make HiSparse compatible with MTP. @huangtingwei9988
- Option A: Dynamic balancing: use MTP for small batches and HiSparse for large batches.
- Option B: Direct compatibility based on sglang#26445.
- Optimize HiSparse kernels by reducing the performance impact of heavy shared-memory usage and adopting a more aggressive parallelization strategy. @DarkSharpness
- Support TwoBatch Overlap to hide io latency @SYChen123 @BJWang-ant
3. HiSparse Decode Optimization in PD Serving
- Integrate with the Decode L2 RadixTree stack and make it compatible with HiCache offloading. @hzh0425
- Fix HiSparse host-backed max request length: sglang#28753.
- Prevent startup OOMs caused by over-estimating
max_total_num_tokens: sglang#28752. - Support NIXL DRAM KV destinations for HiSparse: sglang#27563.
- Share CPU memory across TP ranks: sglang#27370.
- Fix HiSparse max token configuration: sglang#25288.
- Fix DSV4 HiSparse PD state page sizes https://github.com/sgl-project/sglang/pull/28879
- HiSparse V2: Unified logical kv space for hisparse https://github.com/sgl-project/sglang/pull/32314
4. Support More Training-Free Sparse Algorithms
- Add extension points for Quest and other training-free sparse attention algorithms. @magicYang1573 @Ronnie-Rui
Related resources
Source: sgl-project/sglang