CacheFlux: Peer-to-Peer KV Cache Streaming for Low-Latency Serverless LLM Inference
Deploying Large Language Models (LLMs) in serverless environments faces a critical bottleneck: the cold start latency caused by recomputing Key-Value (KV) caches during the prefill phase. Existing approaches either accept this computational overhead or require centralized cache storage, limiting scalability. We present CacheFlux, a peer-to-peer collaborative KV cache transfer mechanism designed for serverless LLM inference. CacheFlux introduces two key innovations: (1) a P2P cache borrowing mechanism that enables newly started serverless instances to stream KV caches directly from nearby "hot" instances via high-bandwidth interconnects (RDMA/NVLink), eliminating redundant prefill computation; and (2) a prefix-aware routing algorithm that uses token-sequence hashing to route requests with identical prefixes to the same instance cluster, maximizing cache hit rates. Experiments on the ShareGPT dataset with LLaMA-2-70B show that CacheFlux reduces Time-To-First-Token (TTFT) by up to 62% compared to vLLM and achieves 3.4× higher throughput than state-of-the-art disaggregated serving systems under long-context workloads.
Authors
- Yueting Li (ORCID: https://orcid.org/0009-0002-8371-6858)
- Yixiao Wei
- Chao Wang
- Zhenyu Yang
- Heming Sun
- Jennifer Ren
Publication Details
- Journal
- Preprints.org
- Published
- 2026-11-24
- DOI
- https://doi.org/10.20944/preprints202611.2377.v1
- Primary Topic
- Cloud Computing and Resource Management
- Type
- preprint