CacheFlow: Efficient LLM Serving with 3D-Parallel KV Cache Restoration

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Nian, Sean, Fang, Jiahao, Feng, Qilong, Wu, Zhiyu, Lai, Fan
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918470790152192
author Nian, Sean
Fang, Jiahao
Feng, Qilong
Wu, Zhiyu
Lai, Fan
author_facet Nian, Sean
Fang, Jiahao
Feng, Qilong
Wu, Zhiyu
Lai, Fan
contents KV cache restoration has emerged as a dominant bottleneck in serving long-context LLM workloads, including multi-turn conversations, retrieval-augmented generation, and agentic pipelines. Existing approaches treat restoration as a per-request tradeoff between recomputation and I/O transfer, recomputing KV states from scratch or offloading them from external storage (e.g., CPU memory or remote machines). However, existing advances fail to exploit parallelism across tokens, layers, and distributed deployments, and critically ignore resource contention under batched serving. We present CacheFlow, a KV cache restoration framework that rethinks cache restoration as a multi-dimensional parallel execution problem. CacheFlow introduces a unified 3D parallelism abstraction across tokens, layers, and GPUs, enabling fine-grained overlap of recomputation and I/O along the structural dependencies of transformer inference. At the core of CacheFlow is a batch-aware two-pointer scheduler that jointly optimizes compute and I/O allocation across requests by prioritizing operations with the highest marginal reduction in recomputation cost. Our evaluations show that CacheFlow reduces Time-To-First-Token (TTFT) by 10%-62% over existing advances across diverse models, workloads, and hardware.
format Preprint
id arxiv_https___arxiv_org_abs_2604_25080
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle CacheFlow: Efficient LLM Serving with 3D-Parallel KV Cache Restoration
Nian, Sean
Fang, Jiahao
Feng, Qilong
Wu, Zhiyu
Lai, Fan
Distributed, Parallel, and Cluster Computing
KV cache restoration has emerged as a dominant bottleneck in serving long-context LLM workloads, including multi-turn conversations, retrieval-augmented generation, and agentic pipelines. Existing approaches treat restoration as a per-request tradeoff between recomputation and I/O transfer, recomputing KV states from scratch or offloading them from external storage (e.g., CPU memory or remote machines). However, existing advances fail to exploit parallelism across tokens, layers, and distributed deployments, and critically ignore resource contention under batched serving. We present CacheFlow, a KV cache restoration framework that rethinks cache restoration as a multi-dimensional parallel execution problem. CacheFlow introduces a unified 3D parallelism abstraction across tokens, layers, and GPUs, enabling fine-grained overlap of recomputation and I/O along the structural dependencies of transformer inference. At the core of CacheFlow is a batch-aware two-pointer scheduler that jointly optimizes compute and I/O allocation across requests by prioritizing operations with the highest marginal reduction in recomputation cost. Our evaluations show that CacheFlow reduces Time-To-First-Token (TTFT) by 10%-62% over existing advances across diverse models, workloads, and hardware.
title CacheFlow: Efficient LLM Serving with 3D-Parallel KV Cache Restoration
topic Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2604.25080