Skip to content

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

Jiayu Qin, Ankith M S, Harpreet Kaur, Kevin Zhai, Sumit Negi, Changyou Chen

cs.LG

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.

Create a lesson

Metadata

Comments
13 pages, 3 figures