betaFeedback

WorksComputer Science

RebaseKV: Hiding Prefill Latency in Multi-Agent LLMs via Optimistic Cache Alignment

Abstract

In multi-agent LLM systems, agent-specific role instructions shift a largely shared context and invalidate exact prefix caching, so every handoff places a full prefill on the time-to-first-token (TTFT) critical path. We introduce RebaseKV, a training-free serving method based on Optimistic Cache Alignment. At an agent transition, RebaseKV decodes from a position-adjusted cache inherited from the preceding agent while the exact cache for the new prompt is built concurrently on the same GPU; after a short optimistic window, it replays the drafted tokens on the fresh cache and continues standard decoding, so the inherited state only hides latency. With the exact prefill running concurrently, RebaseKV delivers the first token of each handoff 2.95x faster than full recomputation in a five-agent GSM8K pipeline (46 vs. 135 ms) and 2.54x faster with Qwen3-8B, with no stall and negligible end-to-end overhead. Routing format-fixing agents, such as an answer-first decision maker, to the exact path makes accuracy statistically indistinguishable from recomputation while the other handoffs keep the low TTFT. We further prove that stale-state divergence is confined to the optimistic window, bound the prefix divergence in logit space, and give a certificate for greedy-token agreement.

Paper details

vlnc:W_ayy2dkfw
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
arXiv nonexclusive license
Usage

views · 10

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…