Babbage Index · Research · 010

When Fetching a KV Prefix Takes Longer Than Recomputing It

Reusing a cached prefix is correct; assuming that a cache hit must beat recomputation is not. Whether fetching wins depends on how many transfers share the bottleneck and how the link serves them — so reuse is an admission decision across requests, not a lookup on one.
Babbage Research · 010·Published 2026-10-10

Take an illustrative case. A 1 GiB KV prefix crosses a 400 Gb/s shared storage-egress link in 21.5 ms. If 16 requesters on separate, otherwise idle GPUs start equal fetches together and the link splits fairly between them, each finishes at 343.6 ms. Against an illustrative 200 ms to recompute the prefix, every one of them would have been faster rebuilding it. Reusing compatible KV state is correct. Assuming that a cache hit must beat recomputation is a policy, and the reuse layers’ own evaluations say it should not be the default: LMCache concludes that loading “should be adaptive: under low bandwidth, loading should be enabled only when the context length surpasses the crossover point where loading becomes faster than prefilling.”1

The heuristic inherited its credibility from locality. Reusing tensors already in GPU memory avoids another prefill without buying a network transfer. Disaggregation preserves the reusable state while changing the price of reaching it.

The comparison

For the same prefix becoming usable on the same worker, fetching loses when

max( Qg , Qn + S / Beff ) + D > Qg + C
Qg is GPU availability delay, Qn transfer queueing, S transferred bytes, Beff effective bandwidth, D restoration time, and C the marginal compute to rebuild the prefix. Transfer overlaps GPU waiting; restoration follows the complete transfer.

Three conventions keep it honest. C and D include any decompression and any interference with co-located inference. Contention is counted once, in Beff. And layer-wise pipelines replace S/Beff + D with the exposed critical path — the part of transfer and restoration not hidden behind per-layer compute. The rule is in time, not money: Babbage publishes no link or storage-egress price, and a GPU-hour rate is a price of access, not a cost of work (008).

The answer depends on concurrency and discipline

A single uncontended fetch beats the 200 ms recompute by about 9×. Under fair sharing, fetching loses once concurrency exceeds N* = C · B / S ≈ 9.3. If the link instead serves transfers one at a time, completions run from 21.5 ms to 343.6 ms with a mean of 182.5 ms, and 9 of the 16 still beat recompute. Mixing the two paths does better than either:

Link disciplineAll fetch (mean)All recomputeBest mix (mean)
Fair share343.6 ms200.0 ms171.1 ms · fetch 5
One at a time182.5 ms200.0 ms147.9 ms · fetch 9

Topology can reverse everything. If the 16 requests converge on one worker, its single GPU would recompute them one after another for 3.2 s, and fetching wins easily. The binary rule — always fetch, or never — is the boundary case of a decision about how many transfers to admit, onto which link, at which moment. A fetch that wins its own time to first token while delaying competing transfers can still lower the cluster’s compliant goodput.

Reuse exports contention

Compression, codec offload, prefetching and cache affinity can each improve an individual path, and their composition can move contention into GPU execution, temporary memory or popular workers. KVCodec measures both effects in earlier systems: CacheGen’s CUDA decompression lengthened prefill by 50% and decode by 20%, and fetching-agnostic batching blocked requests that reuse nothing.2 KVCodec’s codec offload and fetch-aware scheduler largely remove both, though its authors note that preallocating memory for every fetch upfront likely still blocks non-reuse requests. In our reading the risk is asymmetric: the requesting stream captures the saved computation, while other streams absorb the shared-resource delay.

The same accounting applies when prefill and decode run on separate pools. Separation shortens a request’s critical path only when the interference it removes exceeds the exposed transfer and restoration, plus any change in queueing and execution time — and a follow-up conversational turn may enlarge the state that has to cross the partition again. Placement should therefore operate on sessions as well as phases: retain short returning conversations, separate large fresh prefills, or move execution toward resident state when the destination queue permits.

What exists, and what is missing

Much of the per-request comparison is already built. Mooncake’s scheduler estimates, for each candidate instance, transfer time plus queueing plus prefill time and picks the lowest time to first token.3 CacheGen can fall back to sending a chunk as text and letting the model recompute its KV cache when bandwidth is too low.4 NVIDIA Dynamo’s router scores workers by overlap_score_weight × prefill_blocks + decode_blocks, which balances cache reuse against load but carries no transfer term.5 What none of them does is reserve link occupancy across concurrently admitted transfers. Controllers acting independently on per-flow bandwidth estimates can each approve a transfer that, together with the others, overloads the link.

The coordinator that closes the gap needs cache locations, shared-link occupancy, worker queues, restoration costs and latency budgets, and it has to compare three paths for each request: fetching existing state, including the delay imposed on competing transfers; recomputing locally, including interference with active inference; and routing execution to resident state, including the destination’s queue.

The diagnostic is the counterfactual

The blind spot is how much faster each request would have completed through the path it did not take. Record source tier, bytes, queueing, exposed transfer stalls, restoration time and predicted recompute latency, and calibrate the predictions with sampled replays. The decisive replay runs the same conversation distribution through colocation, fixed separation and adaptive placement, preserving arrival timing, model quality, context lengths and hardware budgets, and it tests bursty follow-up turns rather than isolated prompts. Hit-rate and transfer-time dashboards cannot establish benefit on their own: reuse can rise while first-token latency deteriorates and gets diagnosed as a network shortage. Does your scheduler log the path it rejected?

References

  1. Liu, Cheng, Yao, An et al., “LMCache: An Efficient KV Cache Layer for Enterprise-Scale LLM Inference,” §8.7. arXiv:2510.09665
  2. Mi, Wang, Chen, Cao, Dai, “Efficient Remote KV Cache Reuse with GPU-native Video Codec” (KVCodec), accepted at SIGCOMM 2026, §2.2 and §2.4. arXiv:2602.09725v3
  3. Qin, Li, He et al., “Mooncake: A KVCache-centric Disaggregated Architecture for LLM Serving,” Algorithm 1. arXiv:2407.00079
  4. Liu, Li, Cheng et al., “CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Serving,” SIGCOMM ’24. arXiv:2310.07240
  5. NVIDIA Dynamo v1.0.0, KV router guide, cost formula. docs.nvidia.com
Editor’s note
Kept in time units on purpose. Babbage tracks no link or storage-egress price series, and BI-G’s hourly per-GPU prices measure access, not completed work, so turning these milliseconds into dollars here would mix the two (008).

Provenance note, per house style. Illustrative: the 1 GiB prefix, the 400 Gb/s link, the 16 requesters and the 200 ms recompute time. Computed on this page from those inputs: the 21.5 ms single transfer, the 343.6 ms fair-share finish, the break-even concurrency of 9.3, the 182.5 ms serialized mean and its 9 winners, and both best mixes (restoration taken as zero). Quoted: the LMCache adaptive-loading conclusion (ref 1), the 50% and 20% decompression slowdowns and the blocking of non-reuse requests (ref 2), Mooncake’s per-request comparison (ref 3), CacheGen’s text fallback (ref 4), and Dynamo’s cost formula (ref 5).