跳到正文
arXiv:cs.AI· Zhiwei Chen, Zhongtao Rao, Waikit Xiu, Yuxiang Zhang, Shuting Cui, Jian Chen, Tianxiang Zhao·· 19 小时前

LatentRemedy:面向多智能体系统非前缀 KV cache 复用的高效补救方案

LatentRemedy: Efficient Remedy For Non-Prefix KV Cache Reuse in Multi-Agent Systems

AI 导读

LatentRemedy 通过少量任务条件 latent token,让目标智能体在复用共享 KV 块时无需重算即可正确理解上下文,缓解多智能体任务冲突下非前缀 KV cache 复用导致的最高 90% 性能下降。

正文

View PDF HTML (experimental)

Abstract:Non-prefix KV cache reuse is a promising approach for improving inference efficiency in multi-agent systems as agents share the same context blocks. However, when agents have conflicting tasks, directly reusing non-prefix KV caches across agents can severely degrade model performance, causing up to a 90% drop. Existing remedies, including selective recomputation and offset-based calibration, recover a limited fraction of this loss. We argue that the problem lies not only in contaminated KV representations but also in the agent's difficulty interpreting reused context under its own instructions. To this end, we introduce LatentRemedy, which uses a few task-conditioned latent tokens to help the target agent leverage reused context without recomputing the shared block. Specifically, we use an MLP to map the last hidden state of the target prefix into a small number of latent tokens, which are placed after the reused KV block to interact with the shared context. To guide subsequent predictions toward the target task, we train the MLP through full-prefill distillation. Experiments show that LatentRemedy consistently outperforms existing reuse baselines on conflicting tasks while maintaining TTFT close to direct reuse as cache size grows. Code and data are available at this https URL.
Comments: 22 pages with multiple figures
Subjects: Computation and Language (cs.CL); Artificial Intelligence (cs.AI)
Cite as: arXiv:2610.18014 [cs.CL]
  (or arXiv:2610.18014v1 [cs.CL] for this version)
  https://doi.org/10.48550/arXiv.2610.18014

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Zhiwei Chen [view email]
[v1] Tue, 13 Oct 2026 09:12:45 UTC (916 KB)

来源:arXiv:cs.AI · arxiv.org