HiState: Hierarchical Prefix Cache Management for Hybrid LLM Serving in Agentic Workloads
Zaifeng Pan, Lucas Wang, Xinwei Qiang, Yanbo Zhou, Chang Chen, Zhengding Hu, Yue Guan, Yufei Ding
Abstract
Hybrid large language models combine full-attention and recurrent linear layers to reduce inference costs. Prefix caching can further reduce redundant computation across requests, but a recurrent checkpoint cannot recover an earlier state corresponding to a shorter prefix. Existing hybrid prefix caching systems retain checkpoints at selected boundaries to support common reuse patterns in conventional conversations. However, agent workloads modify and revisit earlier contexts, exposing reusable prefixes whose checkpoints were never saved or have already been evicted. A straightforward approach is to retain more checkpoints to reduce recomputation, but their cumulative footprint can displace reusable prefixes from other sessions and cause additional cache misses. To address these problems, we present HiState, a prefix cache management system for hybrid models serving agent workloads. Our key observation is that prefix reuse accesses all matching key-value (KV) entries but only one recurrent checkpoint, regardless of how many checkpoints are retained. This asymmetry allows HiState to retain historical checkpoints on SSD while prioritizing fast memory for KV entries: each hit retrieves only one checkpoint whose size is independent of context length. Within this hierarchy, we propose adaptive interval control to balance checkpoint storage against recomputation, and unified eviction to coordinate checkpoint sparsification with reclamation of stale trajectories. We implement HiState on top of vLLM and evaluate it on two public coding-agent trace datasets and controlled microbenchmarks. On real agent traces, HiState achieves up to 5.73x and 5.44x speedups in p99 TTFT over vLLM-Marconi and SGLang-HiCache, respectively.
Create a lesson
Related papers
TideCache: Efficient Hybrid LLM Serving with Transparent Cache Management and Layer-Wise Streaming
Shared title terminology · Jinbin Luo, Xiaozhe Yao, Shang Yang et al.
Bursts That Outlast Themselves: Persistent Degradation in Prefix-Cached Agent Serving
Shared title terminology · Wen Huang, Jack Liu
Inside the Trap: A Renewal Law for Prefix-Cache Collapse in LLM Agent Serving
Shared title terminology · Akshat Valse, Ali Jannesari
TripleKV: Predict, Prefetch, Protect -- KV Cache Management for AI Agents
Shared title terminology · Shashwat Jaiswal, Chloe Alverti, Mengmei Ye et al.
Chiron: Cache Management Empowered by LLM Intelligence for AI Workloads
Shared title terminology · Bohan Zhang, Renshu Ge, Tianze Wang et al.
When Cache Pressure Becomes a Trap: Metastability in Agent Serving
Shared title terminology · Chengzhi Lu, Boxi Zhou, Yanying Lin et al.