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.
Figures & tables
Figure 1: Illustration of reusing KV-cache of the same block from task A to task B.
Figure 2: Performance of different KV cache reuse methods under conflicting tasks.
Figure 3: Failure modes of different KV cache reuse methods on Deal or No Deal.
Reuse
Restate
Repeat
Full
No-reas.
Argkp
2.27
2.73
32.27
85.91
deal
3.18
4.55
9.09
20.00
Job
7.27
7.73
11.36
69.09
Reason.
Argkp
70.91
70.00
74.09
90.00
deal
79.09
57.73
99.09
100.00
Job
86.82
85.91
92.27
93.18
Table 1: Performance comparison between original full, reuse, restate and repeat.
Figure 4: The overall framework of our latent remedy method.
Qwen3-1.7B
Qwen3-4B
Qwen3-8B
Approach
No reasoning
Reasoning
No reasoning
Reasoning
No reasoning
Reasoning
Reuse
17.00
40.39
16.00
50.94
17.28
44.91
Repeat
19.11
38.33
20.81
58.39
23.33
40.00
EPIC-16
17.03
17.56
15.69
29.77
16.53
34.99
KVCOMM
15.64
9.38
13.94
14.97
13.89
16.64
CacheBlend
17.17
17.39
15.81
29.57
16.67
41.51
Table 2: Accuracy across different settings in ConflictInstruct test set. Best are bold, second to best are underlined.
ArgKP
Deal or No Deal
Job Interview
Approach
No reasoning
Reasoning
No reasoning
Reasoning
No reasoning
Reasoning
Reuse
2.27
70.91
3.18
79.09
7.27
86.82
Repeat
32.27
74.09
9.09
99.09
11.36
92.27
EPIC-16
6.82
69.55
3.18
89.09
7.27
85.91
KVCOMM
1.36
28.64
5.45
55.91
6.82
88.64
CacheBlend
6.82
71.82
3.64
92.73
9.55
88.18
Table 3: Accuracy across different settings in Qwen3-4B under different settings in ArgKP, Deal and Job. Best are bold, second to best are underlined.
Figure 5: TTFT accuracy comparison across representative tasks under various settings.
Figure 6: TTFT benchmark results for different Qwen3 model sizes.
Figure 7: TTFT decomposition pipeline of LatentRemedy.
reuse KV length = 256
Approach
Prefix
Method
KV operation
Suffix
Sampling
Total TTFT
Full
29.35
Reuse
19.02
–
1.04
21.00
0.08
41.14
Ours
18.60
0.21
0.94
21.67
0.05
41.46
EPIC-16
19.66
19.74
1.04
20.99
0.08
61.52
KVCOMM
19.14
4.63
1.08
20.32
0.07
45.23
Table 4: TTFT decomposition for Qwen3-4B as shared KV length increases (ms; 10 runs).
Figure 8: Case study of reasoning traces of different methods.
Setting
No reasoning
Reasoning
Reuse
16.00
50.94
Latent-1
40.56
63.83
Latent-4
43.11
61.28
Latent-8
43.61
62.11
Latent-16
41.64
62.42
Latent-32
42.33
59.53
Table 5: Ablation for number of latent remedy tokens in Qwen3-4B for test set.
# pairs
No reasoning
Reasoning
Reuse
16.00
50.94
1
34.83
54.61
3
42.36
61.61
5
41.64
62.42
10
43.19
53.86
15
46.08
62.75
Table 6: Accuracy on test set ablation for number of training pairs for each task in Qwen3-4B.
Appendix figures & tables20 assets
Supplementary material from the paper’s appendix.
Appendix
ArgKP
Deal or No Deal
Job Interview
Approach
No reasoning
Reasoning
No reasoning
Reasoning
No reasoning
Reasoning
Reuse
8.18
49.55
10.91
36.36
17.27
46.82
Repeat
18.64
59.55
13.18
80.91
18.18
55.00
EPIC-16
10.45
46.36
10.00
39.09
17.27
43.24
KVCOMM
5.00
21.36
15.00
24.09
18.64
42.73
CacheBlend
8.18
45.00
10.45
49.09
16.82
49.55
Appendix
Table 7: Performance comparison on OOD tasks with Qwen3-1.7B under no-reasoning and reasoning settings. Best results are bold and second-best results are underlined.
ArgKP
Deal or No Deal
Job Interview
Approach
No reasoning
Reasoning
No reasoning
Reasoning
No reasoning
Reasoning
Reuse
2.27
82.27
4.09
95.45
6.82
88.64
Repeat
53.18
86.82
7.73
100.00
9.09
94.09
EPIC-16
7.27
81.82
5.00
97.73
6.36
88.83
KVCOMM
1.82
35.45
4.09
92.73
7.27
90.83
CacheBlend
7.27
85.45
4.09
78.18
8.64
88.64
Appendix
Table 8: Performance comparison on OOD tasks with Qwen3-8B under no-reasoning and reasoning settings. Best results are bold and second-best results are underlined.
Qwen3-1.7B; shared KV length = 256
Approach
Prefix
Method
KV operation
Suffix
Sampling
Total TTFT
Full
16.16
Reuse
13.84
0.80
14.77
0.06
29.47
Ours
13.69
0.18
0.72
16.12
0.05
30.77
EPIC-16
13.82
14.13
0.80
14.70
0.06
43.51
KVCOMM
14.18
3.63
0.79
15.02
0.07
33.69
Appendix
Table 9: Mean TTFT decomposition for Qwen3-1.7B at shared KV lengths 256, 1,024, 2,048, and 4,096 (ms; 10 runs).
Qwen3-8B; shared KV length = 256
Approach
Prefix
Method
KV operation
Suffix
Sampling
Total TTFT
Full
48.33
Reuse
22.33
1.03
23.62
0.08
47.06
Ours
22.18
0.25
0.98
27.35
0.07
50.82
EPIC-16
21.82
21.95
1.03
23.71
0.08
68.60
KVCOMM
22.85
4.94
1.15
24.59
0.08
53.61
Appendix
Table 10: Mean TTFT decomposition for Qwen3-8B at shared KV lengths 256, 1,024, 2,048, and 4,096 (ms; 10 runs).
Figure 9: TTFT accuracy comparison across all tasks under no-reasoning settings using Qwen3-1.7B, 4B and 8B.
Figure 10: TTFT accuracy comparison across all tasks under reasoning settings using Qwen3-1.7B, 4B and 8B.
Figure 11: TTFT accuracy comparison across all tasks under no-reasoning settings using Qwen3-1.7B, 4B and 8B.
Figure 12: TTFT accuracy comparison across all tasks under reasoning settings using Qwen3-1.7B, 4B and 8B.
Figure 13: TTFT accuracy comparison across all tasks under no-reasoning settings using Qwen3-1.7B, 4B and 8B.
Figure 14: TTFT accuracy comparison across all tasks under reasoning settings using Qwen3-1.7B, 4B and 8B.
Figure 15: Case study of reasoning traces of different methods in the Argument Key Point task.
Figure 16: Case study of reasoning traces of different methods in the Argument Key Point task.
Figure 17: Case study of reasoning traces of different methods in the Argument Key Point task.
Figure 18: Case study of reasoning traces of different methods in the Argument Key Point task.
Figure 19: Case study of reasoning traces of different methods in the Deal or no deal task.
Figure 20: Case study of reasoning traces of different methods in the Deal or no deal task.
Figure 21: Case study of reasoning traces of different methods in the Deal or no deal task.
Figure 22: Case study of reasoning traces of different methods in the Deal or no deal task.
Task group
Families
Train / Test
Pairs
Instruction
Shared block
Audited algorithmic families
95
69 / 26
2,850
123.7
117.7
Basic instruction switches
16
13 / 3
480
46.7
170.0
Scene-augmented switches
40
30 / 10
1,200
53.1
167.9
Structured reasoning
68
52 / 16
2,040
85.5
439.5
Long-form role conflicts
6
4 / 2
180
33.6
1,775.7
Argument-perspective scenes
5
5 / 0
150
20.1
84.2
Appendix
Table 11: Statistics of ConflictInstruct across different task groups.
Split
Families
Pairs
Instruction
Shared
train75
180
5,400
86.7
253.7
test25
60
1,800
93.1
281.0
Appendix
Table 12: Family-level 75/25 split of ConflictInstruct. Instruction and Shared are mean token lengths under the measurement convention in Table 11 .
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 limited range of layers and token positions. By selectively recomputing KV caches at these positions, RelayCaching preserves model accuracy with minimal overhead, yielding a superior accuracy-efficiency trade-off over existing methods. Experiments on diverse collaborative LLM tasks spanning mathematical reasoning, general knowledge, and code generation demonstrate that RelayCaching achieves over 80% KV cache reuse, reduces TTFT by up to 4.7× compared to the standard pipeline, all with negligible accuracy degradation.
Yingsheng Geng, Yuchong Gao, Weihong Wu +2
Beijing University of Posts and Telecommunications, Beijing, China · Tsinghua University, Beijing, China · University of Electronic Science and Technology of China, Chengdu, China +1
Multi-LoRA agent systems enable efficient role specialization by sharing a common backbone model. However, each agent repeatedly processes the growing shared trajectory and constructs its own KV cache, introducing substantial memory and computation redundancy in long-horizon tasks. Existing KV cache sharing methods reduce this repeated prefill, but they either require additional training or architectural constraints or retain substantial model computation. Moreover, direct cache reuse causes the current agent to rely on cache states generated by the previous agent's adapter, weakening the role-specific behavior encoded by its own LoRA. We present PReCache, a training-free KV cache sharing framework with two designs, namely PreLRShared and ReBaseShared, that share the base cache computed using the pretrained weights and precompute a compact agent-specific low-rank (LR) cache. To remove repeated prefill, PreLRShared precomputes each agent's LR cache when the shared context is first processed, allowing the current agent to use its own LR cache without reprocessing context processed by previous agents. To improve sharing accuracy, ReBaseShared reconstructs the shared base cache from adapter-free hidden states, reducing the remaining error caused by the previous agent's adapted representation. To minimize its reconstruction cost, we propose two inference schemes tailored to single-stream inference and concurrent serving, performing the same reconstruction after each agent's turn or alongside its execution, respectively. Across multiple models and agent benchmarks, PreLRShared achieves up to a 3.1x TTFT speedup and a 2.3x improvement in per-request throughput over inference without KV cache sharing. ReBaseShared best preserves accuracy overall among the evaluated cache-sharing methods, with an average drop of only 1.1 points relative to inference without cache sharing.
Hyesung Jeon, Hyeongju Ha, Jae-Joon Kim
Department of Electrical and Computer Engineering Seoul National University
Multi model inference has recently emerged as a prominent paradigm, particularly in the development of agentic AI systems. However, in such scenarios, each model must maintain its own Key-Value (KV) cache for the identical prompt, leading to substantial memory consumption. This explosive growth of KV caches forces LLM serving systems to evict previously stored caches, which in turn introduces significant recomputation overhead whenever the evicted caches are required again. Moreover, prefix caching is inherently infeasible across different models, forcing each model to recompute KV cache for the identical prompt, which leads to significant overhead. To alleviate these issues, we propose Identical Cache Reuse (ICaRus), a novel architecture that allows multiple models to share identical KV caches across all layers. ICaRus is based on the key observation that a decoder-only Transformer can be conceptually decomposed into a logical encoder, which generates KV caches, and a logical decoder, which predicts output tokens from the KV caches. ICaRus fine-tunes only the logical decoder while freezing the logical encoder, enabling multiple models to share an identical KV cache. This eliminates cache memory explosion and unexpected evictions while also allowing cross-model reuse of KV caches for new input tokens, thereby removing redundant recomputation in multi model inference achieving both efficiency and scalability. Moreover, by incorporating lightweight adapters such as LoRA, ICaRus parallelizes KV cache generation and next-token prediction during decoding. ICaRus achieves comparable accuracy to task-specific fine-tuned model across a diverse set of tasks, while allowing multiple specialized models to fully share KV caches. ICaRus achieves up to 11.1x lower P95 latency and 3.8x higher throughput in multi agent workflow with 8 different models, compared to conventional multi model system.