arXiv(opens in a new tab)cs.CLOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.18014

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

Zhiwei Chen, Zhongtao Rao, Waikit Xiu, Yuxiang Zhang, Shuting Cui, Jian Chen, Tianxiang Zhao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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 https://github.com/chenzhwsysu57/kvreuse.

1 Introduction

KV-cache reuse is an effective way to reduce redundant prefill computation (Yao et al., 2025; Ye et al., 2025; Geng et al., 2026b; Ramesh and Li, 2025) in multi-agent systems where agents share the same context blocks. However, existing work largely focuses on cooperative agents with aligned objectives, leaving agents with conflicting objectives rarely explored. As illustrated in Figure 1, agent A and agent B may process the same context block under different or even conflicting task

Figure

(a) agent A: full prefill

(b) agent B: reuse cache from A

Figure 1: Illustration of reusing KV-cache of the same block from task A to task B.

instructions. Since the shared block’s KV cache is computed under agent A’s instruction, reusing it for agent B may interfere with how agent B uses the shared context to perform its own task.

We find that existing position-independent cache repair methods, which rely on selective recomputation or offset-based calibration, recover only a limited fraction of the performance loss under conflicting tasks. Our analysis suggests that previous agent's task in the reused KV cache can interfere with how the current agent interprets the shared context. Unlike full prefill, where the shared context is processed under the agent's instruction, cross-agent KV reuse introduces representations computed under a different task. This suggests that an effective remedy should allow the instruction to interact with the reused context, while ensuring that this interaction guides subsequent generation towards current objective. Our preliminary study further shows that repeating the target instruction after the reused cache can substantially alleviate task interference.

To this end, we introduce LatentRemedy, which addresses this problem with a small number of latent tokens. To encode the prefix instruction, we use an MLP to map the last hidden state of the prefix into these latent tokens. We place them after the reused block, allowing them to attend to both the prefix and the reused context. To guide consecutive reasoning towards the prefix instruction, we train the MLP through full-prefill distillation. Extensive

∗^{*}Corresponding author.

experiments show that LatentRemedy substantially outperforms existing KV cache reuse methods in conflicting-task scenarios, while maintaining time-to-first-token (TTFT) latency close to direct reuse. In a nutshell, our contributions are threefold:

• We identify conflicting KV-cache reuse scenarios in multi-agent systems, where existing cache repair methods struggle to recover the performance loss.

• We reveal that cross-agent KV cache reuse disrupts target-specific contextualization, highlighting the needs of prefix re-conditioning when reusing non-prefix KV cache.

• We introduce LatentRemedy, a simple latent remedy that enables interaction with reused context to guide subsequent generation without recomputing the shared block. Experiments demonstrate its advantages in accuracy and TTFT across various tasks.

References (15)