# HiState: Hierarchical Prefix Cache Management for Hybrid LLM Serving in Agentic Workloads

DevFeed: [HiState: Hierarchical Prefix Cache Management for Hybrid LLM Serving in Agentic Workloads](<https://devfeed.tech/articles/histate-hierarchical-prefix-cache-management-for-hybrid-llm-serving-in-agentic-workloads-111755.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.41508>)

Author: Zaifeng Pan, Lucas Wang, Xinwei Qiang, Yanbo Zhou, Chang Chen, Zhengding Hu, Yue Guan, Yufei Ding

Published: 2026-11-02T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Distributed Computing](<https://devfeed.tech/sources/arxiv-distributed-computing.md>)

Topics: [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [LLM Techniques](<https://devfeed.tech/topics/llm-techniques.md>), [Memory Heirarchy](<https://devfeed.tech/topics/memory-heirarchy.md>), [vllm](<https://devfeed.tech/topics/vllm.md>), [sglang](<https://devfeed.tech/topics/sglang.md>)

Tags: [adaptive](<https://devfeed.tech/tags/adaptive.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [cache](<https://devfeed.tech/tags/cache.md>), [checkpoint](<https://devfeed.tech/tags/checkpoint.md>), [coding-agent](<https://devfeed.tech/tags/coding-agent.md>), [context](<https://devfeed.tech/tags/context.md>), [control](<https://devfeed.tech/tags/control.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [datasets](<https://devfeed.tech/tags/datasets.md>), [hierarchy](<https://devfeed.tech/tags/hierarchy.md>), [hybrid](<https://devfeed.tech/tags/hybrid.md>), [implement](<https://devfeed.tech/tags/implement.md>), [inference](<https://devfeed.tech/tags/inference.md>), [inference-costs](<https://devfeed.tech/tags/inference-costs.md>), [language](<https://devfeed.tech/tags/language.md>), [language-models](<https://devfeed.tech/tags/language-models.md>), [llm](<https://devfeed.tech/tags/llm.md>), [llm-serving](<https://devfeed.tech/tags/llm-serving.md>), [management](<https://devfeed.tech/tags/management.md>), [serving](<https://devfeed.tech/tags/serving.md>)

## AI overview

HiState targets hybrid LLM serving workloads where agents revise and revisit earlier context, making previously unsaved or evicted recurrent checkpoints necessary for prefix reuse. Retaining many checkpoints in fast memory can crowd out reusable KV entries. HiState instead stores historical checkpoints on SSD and prioritizes fast memory for KV entries, retrieving one checkpoint per cache hit regardless of how many are retained. Adaptive interval control balances checkpoint storage against recomputation, while unified eviction coordinates checkpoint sparsification with removal of stale trajectories. Implemented on vLLM and evaluated on two public coding-agent trace datasets and controlled microbenchmarks, it achieved up to 5.73x and 5.44x p99 TTFT speedups on real agent traces over vLLM-Marconi and SGLang-HiCache, respectively.

## Source excerpt

arXiv:2610.41508v1 Announce Type: new 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.