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

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

CacheFlux: Peer-to-Peer KV Cache Streaming for Low-Latency Serverless LLM Inference

Yueting Li, Yixiao Wei, Chao Wang, Zhenyu Yang et al.
2 links
Preprints.org
Cloud Computing and Resource Management
preprint

CacheFlux: Peer-to-Peer KV Cache Streaming for Low-Latency Serverless LLM Inference

Yueting Li, Yixiao Wei, Chao Wang, Zhenyu Yang, Heming Sun, Jennifer Ren
preprint en

Abstract

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.

Preprints.org
Cloud Computing and Resource Management
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon