#28874·sglang

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

4. Support More Training-Free Sparse Algorithms

  • Add extension points for Quest and other training-free sparse attention algorithms. @magicYang1573 @Ronnie-Rui

Related resources