GroupKV: Hierarchical KV Cache Management for Long-Context Diffusion LLM Inference
Jinhao Wang, Zhexin Hu, Kangjie Zhou, Xin Zhou, Fangfang Liu
Abstract
Diffusion large language models (dLLMs) are emerging as a promising generative paradigm that complements autoregressive decoding. In long-context settings, KV cache bloat and offloading transfer overhead have become primary bottlenecks in inference systems. Meanwhile, the periodic full-sequence recomputation and localized token updates in dLLMs make the KV lifecycle substantially more dynamic, complicating cache management and prefetch scheduling while making heavyweight token-level indexing or clustering schemes harder to amortize effectively during decoding. To address these challenges, we present \textsc{GroupKV}, a lightweight hierarchical KV cache management system for long-context dLLM inference. We observe that under block-wise decoding, tokens within the same generation block tend to access highly overlapping and spatially concentrated context regions, making group-level sparse selection effective. Building on this observation, \textsc{GroupKV} partitions the context into contiguous groups and performs coarse-to-fine sparse selection. \textsc{GroupKV} further exploits cross-layer consistency to enable predictive prefetching, and incorporates a staleness correction mechanism to maintain cache coherence under dynamic KV updates. Additionally, \textsc{GroupKV} adopts streaming prefill to reduce peak memory consumption during prefilling. Experiments show that \textsc{GroupKV} extends the maximum serviceable context length by up to under constrained GPU memory, improves end-to-end inference performance by up to in offload-based long-context settings, and maintains competitive task accuracy.
Create a lesson
Metadata
- Categories
- cs.OS, cs.DC, cs.LG
Related papers
Tutti: Making SSD-Backed KV Cache Practical for Long-Context LLM Serving
Shared title terminologycs.OSShi Qiu, Yifan Hu, Xintao Wang et al.
Who Should Own the Expert Cache? Kernel-Managed Tiering for Trillion-Parameter MoE Inference
Shared title terminologycs.OSYuan Si, Yufeng Lin, Daming Li et al.
Tideway: Phase-Aware Tiered Memory Management for MoE Inference on Consumer Devices
Shared title terminologycs.OSYifei Wang, Tsun-yu Yang, Yechen Xu et al.
MORTIS: Compiler-Guided KV-Cache Management for LLM Agent Programs
Shared title terminologycs.OSXiaoyu Ma, Jayanaka L. Dantanarayana, Savini Kashmira et al.
Visual Cache Reuse for Efficient Multimodal Inference
Shared title terminologycs.OSShuheng Gao, Yuankai Fan, Jiaqiang Ma et al.
Capture the lifecycle: KV Cache management in ReAct Agents with KVTether
Shared title terminologycs.OSKaihua Fu, Yukun Zhou, Chaokun Chang et al.