Preserving Provenance in Shared KV Caches for LLM Serving
Abstract
Production LLM serving stacks combine an inference engine's local prefix cache with a shared KV-cache tier for fleet-wide reuse. The local cache distinguishes requests by adapter, weight configuration and sharing domain, but the shared tier may key entries only by token content and coarse model metadata. This boundary erases provenance and lets identical tokens under incompatible computational or sharing contexts collide. We call this composition gap provenance-blind reuse and present its first systematic study. A source audit of three vLLM connectors confirms the structural omission, while runtime experiments reproduce it across vLLM and two SGLang releases, 12 models from 7 families (0.5 B-32 B), and over 160 configurations. Cross-adapter collisions reduce accuracy from 0.94 to 0.64, incompatible KV representations reduce reasoning accuracy to zero, and salt omission enables 93% prompt identification from timing. We formalize the missing guarantee as the KV provenance contract: for a declared dimension registry, shared keys must be injective over computational and sharing provenance, with identities stable across workers. Any dimension with a stable identity can therefore be added without connector-specific key logic. A canonical descriptor binds per-request and per-worker provenance into lookup and store keys, while a differential checker detects dimensions that change KV state without changing the key. Implemented in vLLM and SGLang 0.5.20 across three cache paths, provenance binding eliminates unsafe reuse while preserving legitimate sharing. Hit-path latency changes remain within 0.34 ms and below run-to-run variation; retention grows with provenance diversity.
Create a lesson
Metadata
- Comments
- 14 pages, 3 figures
Related papers
KVSeal: Serving Long-Context LLMs with Losslessly Compressed KV Caches
Shared title terminologycs.DCHangyu Liang, Zeyu Mi
Native Dual Pools or Shared Paging? Memory Organization for Concurrent Hybrid LLM Serving
Shared title terminologycs.DCDongwook Kang
MOLT: A Fine-Grained GPU Memory Sharing System for LLM Serving with Opportunistic Fine-Tuning
Shared title terminologycs.DCJaehoon Yang, Yongbeom Kim, Hojoon Kim et al.
Tessera: Demand-Driven KV Cache Management for Retrieval-Augmented LLM Serving
Shared title terminologycs.DCFei Fang, Chung-Hsiang Lo, Yi Liu et al.
RR-Evict: Fine-Grained Prefix Cache Eviction beyond LRU for Agentic LLM Serving
Shared title terminologycs.DCZaifeng Pan, Chris Wu, Zhengding Hu et al.
Cross-Model Autoscaling for Shared LLM Serving
Shared title terminologycs.DCXin Zhang, Xianyan Xie, Zhen He et al.