arXiv Science⌕ Search

arXiv subjects

Ankith M S

Publications and source records attributed to Ankith M S.

2 recordsLinked to original sources

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

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.

cs.LG↗

DIVERSED: Relaxed Speculative Decoding via Dynamic Ensemble Verification

Speculative decoding is an effective technique for accelerating large language model inference by drafting multiple tokens in parallel. In practice, its speedup is often bottlenecked by a rigid verification step that strictly enforces the accepted token distribution to exactly match the target model. This constraint leads to the rejection of many plausible tokens, lowering the acceptance rate and limiting overall time speedup. To overcome this limitation, we propose Dynamic Verification Relaxed Speculative Decoding (DIVERSED), a relaxed verification framework that improves time efficiency while preserving generation quality. DIVERSED learns an ensemble-based verifier that blends the draft and target model distributions with a task-dependent and context-dependent weight. We provide theoretical justification for our approach and demonstrate empirically that DIVERSED achieves substantially higher inference efficiency compared to standard speculative decoding methods. Code is available at: https://github.com/comeusr/diversed.

cs.CL↗