RelayCaching: Accelerating LLM Collaboration via Decoding KV Cache Reuse
Yingsheng Geng, Yuchong Gao, Weihong Wu, Guyue Liu, Jiang Liu

TL;DR
RelayCaching is a training-free inference technique that reuses KV caches across LLM agents to significantly reduce latency and memory usage while maintaining high accuracy in collaborative tasks.
Contribution
It introduces a novel method for cache reuse in multi-agent LLM systems that improves efficiency without sacrificing accuracy, addressing a key bottleneck in collaborative AI architectures.
Findings
Achieves over 80% KV cache reuse
Reduces time-to-first-token by up to 4.7x
Maintains negligible accuracy degradation
Abstract
The increasing complexity of AI tasks has shifted the paradigm from monolithic models toward multi-agent large language model (LLM) systems. However, these collaborative architectures introduce a critical bottleneck: redundant prefill computation for shared content generated by previous agents, which significantly increases KV cache memory usage and time-to-first-token (TTFT). While various KV cache methods have been proposed to mitigate prefill redundancy, they either fail to maintain accuracy on agent-generated outputs or exhibit low reuse rates due to rigid constraints. We present RelayCaching, a training-free inference method that directly reuses decoding phase KV caches from previous agents in subsequent prefill phases. Our key insight is that KV caches for identical content are highly consistent across phases, while prefix-induced deviations are sparse and localized within a…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMultimodal Machine Learning Applications · Topic Modeling · Natural Language Processing Techniques
