atlas

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

Compute or Load KV Cache? Why Not Both?

ICML 2025 · 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 Cake, a KV cache loader that bidirectionally computes early chunks on GPU while loading later chunks from storage in parallel, plus an adaptive scheduler that shares compute with non-prefix requests.

Problem

Prefix caching reduces prefill compute but loading cached KV caches from low-bandwidth disk or network storage adds large TTFT latency for long-context inputs.

Approach

Compute KV cache from the start of the sequence while concurrently loading it from storage starting at the end, exploiting that compute cost grows with token position while I/O cost is uniform; the two meet in the middle, and the merge point adapts to resource fluctuations.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
combine bidirectional KV-cache computation and I/O loadingLong-context prefix-cache loading · Long-context prefix-caching scenariosTTFT reduction: 2.6×Helped
use adaptive scheduling to prioritize decoding and non-prefix-cache prefillCake · 16K prefix-caching request with 22 additional requeststhroughput: from 1.5s to 1.19s; 26%Helped
increase sequence lengthCake · LongAlpaca-13B, fixed compute and I/O configurationspeedup over compute-onlyHelped
use Cake on a short sequence when I/O bandwidth is 7 GbpsCake · LongAlpaca-13B, 4k tokens, 2xA100, 100% utilizationspeedup over compute-only: 0.99Hurt
use GQA instead of MHACake · LLaMA 3.1-8B versus LongAlpaca-7B, same compute and I/O settingsspeedup over compute-onlyHelped
increase model size within the same model seriesCake · LongAlpaca and LLaMA 3.1 model seriesspeedup over I/O-onlyHurt
reduce KV-cache precision from 16-bit to 8-bit or 3-bitCake · LongAlpaca-13B, 2xA100, 100% utilization, 32 Gbpsspeedup over compute-only: 1.59; 2.12; 3.73Helped
assign some work to I/O even when computation is significantly fasterCake · Short sequences with 2×A100 and 7 Gbps bandwidthspeedup over compute-onlyHurt

Surprising findings

Limitations

Experimental setup

Datasets: LongChat TriviaQA NarrativeQA

Benchmarks: LongChat TriviaQA NarrativeQA

Metrics: time-to-first-token (TTFT) speedup over I/O-only and compute-only throughput

Baselines: vLLM chunk prefill (compute-only) LMCache (I/O-only) CacheGen

Builds on: vLLM LMCache chunked prefill CacheGen

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