atlas

Research map / Large language models / Reasoning and chain of thought

DéjàVu: KV-cache Streaming for Fast, Fault-tolerant Generative LLM Serving

ICML 2024 · Large language models › Reasoning and chain of thought · approach: KV cache compression · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes DéjàVu, a pipeline-parallel LLM serving system built on a KV-cache streaming library (DéjàVuLib) that disaggregates prompt and token processing, swaps KV cache per microbatch between GPU and CPU, and replicates KV cache for fast fault recovery.

Problem

Distributed LLM serving in pipeline-parallel settings wastes GPU time due to bimodal prompt vs. token-generation latency (pipeline bubbles), overprovisioned KV cache memory, and long recovery/recomputation after failures.

Approach

Treat the KV cache as streamable state: disaggregate prompt and token machines with a resource planner, swap KV cache at microbatch granularity between GPU and CPU, and asynchronously replicate per-token KV cache to a peer worker so generation resumes from the last replicated step after a failure.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Disaggregate prompt processing from token generationDéjàVu pipeline serving · LMSys, OPT-66Bthroughput vs. FasterTransformer: 1.88$\times$ higher throughputHelped
Disaggregate prompt processing from token generationDéjàVu pipeline serving · LMSys, BLOOM-176Bthroughput vs. FasterTransformer: 2$\times$ higher throughputHelped
Swap KV cache at the microbatch level to accommodate batch size 2 · B rather than BDéjàVu microbatch swapping · Microbatch swapping evaluationthroughput: up to 1.8$\times$Helped
Replicate KV cache and resume from the latest replicated step instead of restarting active microbatches from scratchOPT-66B pipeline serving · Failure at token generation step 1200latency increase after failure: 1.91$\times$ -> 1.24$\times$Helped
Resume token generation from the latest replicated stepDéjàVu fault-tolerant serving · OPT-66B failure scenariosruntime: 1.16$\times$ shorter runtimeHelped
Disaggregate prompt processing from token generationDéjàVu · OPT-66B, LMSys trace, simulated equal machine countsmakespan: 4.2$\times$ shorter makespan than BaselineHelped
Disaggregate prompt processing from token generationDéjàVu · OPT-66B, LMSys trace, simulated equal machine countsmakespan: 2.22$\times$ shorter makespan than Baseline-DPHelped
Add data parallel pipelinesBaseline pipeline serving · LMSys trace, simulatedmakespan: 2.29$\times$Helped
Aggregate non-contiguous KV-cache updates in a temporary GPU buffer rather than issuing separate copiesDéjàVuLib · KV cache streaming microbenchmarkstreaming performance: 95$\times$ improvement compared to baselineHelped
Add the other two DéjàVuLib streaming optimizations after buffered copiesDéjàVuLib · KV cache streaming microbenchmarkstreaming performance: 1.4$\times$Helped
Use larger batch sizes or longer sequence lengths with microbatch swappingDéjàVu microbatch swapping · OPT-30B, OPT-66B, and BLOOM-176B on V100-16GB or A100-80GBthroughputMixed

Surprising findings

Limitations

Experimental setup

Datasets: LMSys-Chat-1M (output length distribution)

Benchmarks: LMSys trace (Poisson open-loop request arrivals)

Metrics: normalized latency (s/token) throughput makespan normalized cost cumulative latency under failure single-batch latency slowdown

Baselines: FasterTransformer vLLM SpotServe Orca

Builds on: FasterTransformer PagedAttention (vLLM) Orca iteration-level scheduling

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy