PrefixChain: Compact Prefix Caching for Hybrid LLMs
Genglin Wang, Wangsong Yin, Liekang Zeng, Yeerzhati Abudunuer, Haoxuan Xu, Zhenyu Yan, Guoliang Xing
Abstract
Hybrid LLMs combine linear attention with full attention to bound memory growth during long-context inference. Each linear-attention layer summarizes token history in a fixed-size recurrent state instead of a growing KV cache. However, this design creates a severe capacity bottleneck for prefix caching. Because recurrent states are overwritten in place, rolling back to prefixes requires saving bulky state checkpoints repeatedly. We introduce PrefixChain, a compact prefix caching system for hybrid LLMs. Our key insight is that recurrent states evolve across tokens with strong inter-state redundancy, as each linear-attention step decays the prior state before applying an incremental update. Inspired by inter-frame video coding, PrefixChain organizes checkpoints into closed-loop chains of anchor I-states and low-rank residual P-states, allocating per-head ranks via offline readout-error profiling. To serve chains efficiently online, PrefixChain pipelines layer-grouped encoding asynchronously off the forward path, reconstructs multi-step chains in a single fused GPU kernel, and coordinates dependency-aware eviction with the KV cache. Across three hybrid LLMs and four workloads, PrefixChain shrinks checkpoints by to with negligible quality loss and reduces mean TTFT by up to over state-of-the-art serving systems, such as SGLang, vLLM, and Marconi, while incurring low online encoding overhead.
Create a lesson
Metadata
- Categories
- cs.DC, cs.LG
- Comments
- 16 pages, including references
Related papers
KVSeal: Serving Long-Context LLMs with Losslessly Compressed KV Caches
Shared title terminologycs.DCHangyu Liang, Zeyu Mi
TideCache: Efficient Hybrid LLM Serving with Transparent Cache Management and Layer-Wise Streaming
Shared title terminologycs.DCJinbin Luo, Xiaozhe Yao, Shang Yang et al.
SmartIntent: A Serverless Edge Intelligence Architecture with Local LLMs for Building Automation
Shared title terminologycs.DCZhenghao Wu, Shaoshu Zhu, Shuyi Sun et al.
EviCastKV: Query-Conditioned Multimodal KV Cache Compression
Shared title terminologycs.DCArup Kumar Sarker, Mills Staylor, Aymen Alsaadi et al.
Estimating GPU Roofline Arithmetic Intensity with Off-the-Shelf LLMs and Compiler Artifacts
Shared title terminologycs.DCGregory Bolet, Giorgis Georgakoudis, Konstantinos Parasyris et al.
Norn: Context-Length-Aware Optimization of Weight and KV Cache Placement for Offloaded LLM Inference
Shared title terminologycs.DCNaoto Sugiura, Hiroki Matsutani