Chiosa
Machine Learning

Exact checkpoints speed up hybrid model caching

3 min
Updated

In plain words

Hybrid language models can reuse earlier prompt work, but part of the model can continue only from an exact saved state. FrontierReplay is a caching system that predicts useful save points and rebuilds those states while the prompt is still being processed.

In tests across two models and four workloads, it completed more requests within the latency targets per second than vLLM at all eight reported settings. One larger-model LongBench setting was an exception.

The research

For a serving system, reusing a shared prompt can save work, but exact recurrent states may be missing where reuse ends. FrontierReplay changes the expectation that reaching those positions must interrupt prompt processing: in eight tested settings, its exact checkpoints accompanied higher request goodput than vLLM. That result makes uninterrupted checkpoint creation a plausible option under those conditions.

FrontierReplay plans exact recurrent-state checkpoints at likely reuse boundaries and rebuilds them during an uncut prompt pass, avoiding extra scheduler steps.

FrontierReplay produces exact recurrent states during an uncut prompt pass, while vLLM saves states on its native grid. On one A800 with a 32 GiB cache, the authors compared them at eight settings across two models and four workloads.

Goodput counted requests meeting both latency targets within a 180-second timeout, per total wall time.

FrontierReplay’s goodput was 1.11–4.26 times vLLM’s, with each ratio averaged over three paired runs. This supports the system’s value in the tested settings, where planned exact states can avoid scheduler steps from cuts.

The advantage had a specific exception: on Falcon-H1-34B LongBench, FrontierReplay achieved 0.76x vLLM’s goodput despite lowering median time to first token from 225 ms to 135 ms. Static cache-pool allocation was a constraint in that setting.

What the evidence shows

  • A mismatch in cached states

    FrontierReplay is a prefix-caching system for hybrid language models. Attention layers can reuse cached prompt pages at page boundaries, but recurrent layers need an exact saved state at the reuse position.

    A coarse grid of saved states can leave reusable prompt work behind; creating a state at every useful position by stopping prompt processing adds scheduler steps. The system addresses both constraints by choosing likely reuse boundaries and building exact states without cutting the prompt pass.

  • Most reuse has a boundary

    The authors measured where reusable prefixes ended in traces for two models and four workloads. Across the eight model–workload pairs, 79–100% of reusable tokens ended at an earlier turn boundary, and at most 8% ended at a branch point no earlier request had revealed.

    This suggests that most useful checkpoint locations could be planned from information already available during serving. The finding supports planned placement for these traces, not a claim that every workload has predictable reuse.

  • Cuts add scheduler steps

    Holding checkpoint locations and prompt-token work fixed, the authors found that cuts made scheduling more fragmented. The effect was strongest in ShareGPT, SWE-agent, and tree search, and smaller on LongBench, where cuts were sparse.

    This identifies a scheduling cost of cuts in those workloads and supports uncut checkpoint creation, though it does not establish an end-to-end serving gain.

  • More requests met latency targets

    Across the primary anchor settings, FrontierReplay generally increased the rate of requests meeting both latency targets compared with vLLM, but the benefit was not universal. Falcon-H1-34B on LongBench had lower goodput despite a faster median first-token response; the authors attribute the shortfall to capacity pressure under static cache partitioning.

    This contrast shows why faster first responses alone do not establish higher overall serving goodput.

Deep