先说结论
KVCOMM节省的是多个同底座智能体反复读取共享文本的预填充计算。它不能直接把一个角色的缓存原样塞给另一个,而是校正位置并估计上下文偏移;无合适参照时回退正常计算。加速是有条件的,准确率也并非完全无损。 (原文:PDF p.4, Figure 3;PDF p.5, Section 3.1 workflow;PDF p.8, Table 1; Section 4.1;PDF p.9, Table 2;PDF p.8, Table 1;PDF p.9, Implementation Details; TTFT correction footnote)
指标:语言模型读取输入时生成键和值缓存,后续生成不断读取这些中间结果。多个角色看相同资料仍可能重复算一遍,但不同角色提示会改变缓存。本文把提示拆为固定前缀和运行时填入的文本,尝试复用共享部分,而不是删掉交流消息。
条件:本地全文 arXiv:2510.12872v2,Figure 3;条件及比较对象见陈述
PDF p.4, Figure 3 · PDF p.4
Agent 1 KV-cache Communication Module Prefix KV Anchor Matching Offset Approximation Anchor Prediction Pool Pool Each Anchor Unmatched Matched Placeholder KV All placeholders ? Query Hit w1 (1) (2) w2 { No Yes Cache Update Pool Pool = + w1 OR AND Dense Length Uncover Length Covered PH Prefilling + w2 PF = + w1 Decoding Response Cache + w2 [PH, PF] Response Anchor Prediction of Response KV Agent 2 Agent 3 You are a math expert. You will be given a math problem ...Q: Legend Answers from other agents are: Queried (external input) Prefix KV Prefix KV Agent 2 as a mathematical analyst: , Placeholder the execution result is . Queried (response) Placeholder Placeholder KV Placeholder KV Example KV Anchor of the Estimated KV of the i-th (external input) Placeholder Placeholder of Agent m Anchor Hit Range All placeholders ? All placeholders ? Estimated KV of the i-th (response) Placeholder of Agent m Add as a New Anchor (N) Dense (Y) Sharing (Y) Sharing (N) Dense Estimated KV of the i-th Prefix Reuse Segment of Agent m Sharable placeholder Figure 3: Overview of the KVC OMM framework in a three-agent scenario. Initially, each agent precomputes and stores the KV-cache of prefix segments from its prompt template for future reuse. At runtime, upon receiving a new request, agents check placeholder shareability and query matched anchors. Matched anchors help approximate KV-cache offsets for placeholders and subsequent prefixes through embedding-based interpolation. The matching criteria consider length compatibility and embedding proximity. The updated KV-caches are concatenated for efficient decoding. After decoding, the KV-cache Communication module assesses newly generated caches for potential sharing with other agents based on the established matching rules. stacks [21, 68, 5] expose the same constraint that architectural identity is a prerequisite for cache reuse. Existing methods on KV-cache acceleration primarily explore four paradigms. (1) Prompt-Level Reuse [10]. PromptCache [10] introduces Prompt Markup Language to explicitly define reusable text segments whose KV-caches are precomputed offline and directly fetched at inference, eliminating recomputation but restricted to fixed prompt structures. (2) Selective Recomputation [58, 27, 56]. CacheBlend [58] dynamically identifies and updates tokens exhibiting high variance in KV-caches. DroidSpeak [27] leverages profiling to identify critical attention layers whose KV-caches must be refreshed to maintain accuracy. KVLink [56] further extends it by fine-tuning special tokens and adjusting positional embeddings, enabling KV reuse across multiple document contexts. (3) Cache Compression [28]. CacheGen [28] compresses KV-caches into adaptive bit-streams based on available bandwidth; however, the entire token sequence still undergoes compression computations, limiting latency improvements. (4) Kernel-Level Optimizations [67, 46]. PrePacking [67] employs a bin-packing strategy to batch variable-length prompts into unified sequences. LoongServe [46] designs Elastic Sequence Parallelism to dynamically manage parallelism strategies and overlap cache migration with decoding steps to enhance GPU utilization. Figure 2 compares the main difference between KVC OMM and existing KV-cache sharing methods. Generally, KVC OMM explores a completely novel paradigm that can reuse all shareable KV-caches regardless of diverse prefix contexts, and align them by leveraging the context-aware cache offsets observed in previous samples. 3 Proposed Approach 3.1 Preliminaries Large Language Models and KV-cache. Let x = [h1 , . . . , hL ] denote a list of token embedding sequences, with hl ∈ RN ×D representing the input token embedding of the l-th transformer layer, where N is the number of tokens and D is the feature dimension. For hln (where n = 1, 2, . . . , N ), it is projected by the l-th transformer layer to Query, Key, and Value vectors for the subsequent attention computation using: qln = Rn WQl hln , kln = Rn WK l l hn , vnl = WVl hln , where qln , kln , vnl ∈ d l l R denotes the Q, K, V values for the n-th input token, WQ , WK , WVl refer to the corresponding projection weight matrices, and Rn is the position embedding at position n, such as rotary position embedding (RoPE) [37]. During autoregressive decoding, the model repeatedly attends to all past positions, and stores every (kln , vnl ) pair in GPU memory, known as KV-cache. Therefore, prefilling a prompt of N tokens costs O(N 2 d) multiply-adds per layer, dominating inference latency for long contexts. Since RoPE applies the fixed rotation matrix to both Key and Query at each position, cached 4
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
指标:系统保存参照样本及其缓存偏移,收到新文本后按长度和嵌入相似性匹配参照,先对齐位置旋转,再插值估计新上下文下的键和值偏移。匹配不合适就做正常预填充并更新参照池。这里要求智能体使用同一模型检查点及兼容位置编码,不是任意闭源接口之间传隐藏状态。
条件:本地全文 arXiv:2510.12872v2,Section 3.1 workflow;条件及比较对象见陈述
PDF p.5, Section 3.1 workflow · PDF p.5
keys remain valid across subsequent steps with no further arithmetic modification, making KV-cache reuse the primary source of speed-ups in subsequent prefilling and decoding. Directed-Graph Multi-agent Systems. Following [57, 69, 65], we model a multi-agent system as a directed graph G = (M, E) whose nodes m ∈ M are agents and edges e = (ms → mt ) ∈ E denote one-way message passing from the ms -th agent to the mt -th agent. At interaction step t, the (t) m-th agent composes an input prompt sm in the template consisting of (i) fixed prefix segments shared across all turns, and (ii) placeholder segments filled at runtime with user queries, tool results, or upstream agent outputs, as formulated as follows, where p(m,0) is usually a role-specific system (t) prompt, p(m,i) is the subsequent prefix segment of the i-th placeholder ϕ(m,i) . (t) (t) (t) (t) sm = p(m,0) , ϕ(m,1) , p(m,1) , ϕ(m,2) , p(m,2) , . . . , ϕ(m,i) , p(m,i) . (1) Our work targets a distinct yet practical setting: a directed multi-agent graph in which each node is an identical RoPE-based LLM checkpoint instantiated with a role-specific system template. Since agents differ in the length of both prefixes and incoming messages, none of the existing static policies can predict the correct positional and contextual shifts; misalignment either forces full recomputation or yields steep accuracy loss. We therefore develop a training-free, prompt-adaptive cache-sharing mechanism, termed KVC OMM, which estimates the true offset on the fly and maintains an online anchor pool to accommodate rapidly changing interaction patterns, reducing prefilling latency without sacrificing task performance. The overall workload of KVC OMM is illustrated in Figure 3, which proceeds as follows. 0. Initialization Before any user requests, all agents precompute and store the KV-caches for all prefix segments defined in their prompt templates. 1. Placeholder Readiness When a request arrives, each agent checks whether all placeholders’ base KV-caches are available. Missing bases are precomputed in parallel. Newly generated placeholder KV-caches are then sent to the anchor prediction module to search the anchor pool for similar samples and enable reuse. 2. Reuse or Fallback Once all placeholder KV-caches are ready, the agent determines whether reusable KV-cache deviations exist for each placeholder. If none are found, standard dense pre- filling is used. For placeholders without reusable deviations, the agent computes the difference between their actual and base KV-caches and stores this deviation in the anchor pool to expand anchor coverage. 3. Offset Approximation If all placeholders have reusable deviations, the agent fetches the matched anchors, estimates the KV-cache deviations via Eq. (6) and Eq. (7), and updates the placeholder and prefix KV-caches in parallel. 4. Decoding The agent concatenates the updated placeholder and prefix KV-caches and initiates response decoding. 5. Anchor Update After decoding, the produced KV-cache is passed through the anchor prediction module. If a similar anchor exists, the cache is stored in shared memory for future retrieval. The agent then waits for the next request. 6. Fallback Storage If no similar anchor exists, the response KV-cache is stored in the anchor pool so dependent agents can subsequently fill in deviations under their respective contexts; the agent then awaits the next request. All inter-agent interactions occur through the KV-cache Communication Module. When multiple agents share the same user text but use different agent-specific prefixes, we avoid re-running prefilling by treating the KV-cache of the shared text under a new prefix as a context-dependent offset from its base KV-cache. We estimate this offset by interpolating from a small set of anchor examples, aligning Key positions via RoPE de-rotation/re-rotation, adding the estimated Key/Value offsets, then concatenating the adjusted segments and decoding. Positional Alignment is Indispensable. Before analyzing two arbitrary tokens’ cache correlation, we should first solve the position mismatch induced by RoPE. If a token is at position n in one prompt but at n + ∆ in another, the raw keys differ by an orthogonal rotation R∆ , whose difference can be orders of magnitude larger than the contextual deviation we care about, as demonstrated in Figure 1b. Hence, KVC OMM always de-rotates the stored key by R−∆ before measuring similarity between 5
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
指标:实验使用可访问内部状态的开源模型,在知识问答、数学和代码任务中比较不复用、CacheBlend式选择重算及本文方案。表注还说明两种方法的Reuse Rate分母不同:一种是复用token比例,另一种是智能体整段复用发生频率,不能直接用该百分比判断谁更省。
条件:本地全文 arXiv:2510.12872v2,Table 1; Section 4.1;条件及比较对象见陈述
PDF p.8, Table 1; Section 4.1 · PDF p.8
Table 1: Performance of three cache-management strategies under different numbers of collaborating agents. Accuracy is reported for MMLU and GSM8K (Llama-3.1-8B-Instruct); Pass@1 is reported for HumanEval (Qwen-2.5-coder-7B). Higher is better. In addition, the Reuse Rate is reported for both KVC OMM and CacheBlend. Note that the Reuse Rate for CacheBlend is defined as the proportion of tokens reusing KV-caches in whole token sequences, while the Reuse Rate of KVC OMM is defined as the frequency of agents reusing all KV-caches in the whole serving procedure. # Agents Dataset Metric Method 2 3 4 5 Original 47.1 66.7 68.0 69.9 Accuracy (%) CacheBlend 65.4 65.4 65.4 67.3 MMLU KVC OMM 64.7 68.6 68.0 69.9 Original 0 0 0 0 Reuse Rate (%) CacheBlend 80 80 80 80 KVC OMM 74.5 69.9 70.1 67.6 Original 81.1 82.4 82.1 81.7 Accuracy (%) CacheBlend 82.0 75.1 65.1 57.1 GSM8K KVC OMM 81.5 81.7 80.6 79.6 Original 0 0 0 0 Reuse Rate (%) CacheBlend 80 80 80 80 KVC OMM 79.6 77.0 73.4 71.0 Original 86.3 83.9 84.5 85.1 Pass@1 (%) CacheBlend 31.1 21.1 30.4 32.9 HumanEval KVC OMM 81.4 83.2 83.2 83.2 Original 0 0 0 0 Reuse Rate (%) CacheBlend 80 80 80 80 KVC OMM 87.6 84.7 81.1 77.8 sample’s embedding proximity. Formally, the KV-cache of the i-th placeholder in the m-th agent is approximated as follows: P ϕ (k̂/v̂)ϕ(m,i) = (k/v)ϕ(m,i) + ψ∈Aϕ(m,i) wϕ(m,i) →ψ · ∆(k/v)(m,ψ) , (6) where (k̂/v̂)ϕ(m,i) refers to the approximated K/V cache for the placeholder ϕ(m,i) . (k/v)ϕ(m,i) is the base K/V cache for the placeholder ϕ(m,i) . wϕ(m,i) →ψ is the softmax mapping of −∥hϕ(m,i) − hψ ∥ across the anchor dimension. ∆(k/v)ϕ(m,ψ) is the placeholder ϕ’s cache offsets in the m-th agent for the anchor ψ. Prefix segment updates follow an analogous process: wϕ(m,i) →ψ · ∆(k/v)p P (k̂/v̂)p(m,i) = (k/v)p(m,i) + ψ∈Aϕ (m,ψ) , (7) (m,i) where (k̂/v̂)p(m,i) refers to the approximated K/V cache for the prefix segment p(m,i) . (k/v)p(m,i) is the base K/V cache for the prefix segment p(m,i) . ∆(k/v)p (m,ψ) is the corresponding prefix segment’s cache offset in the m-th agent for the anchor ψ. After approximation, updated caches are concatenated and directly fed into decoding, substantially reducing prefilling latency via parallel processing. The overall algorithm is listed in Appendix 6.2.5. 4 Experiments 4.1 Experimental Setup Multi-agent System. Following GPTSwarm [69] and AgentPrune [65], we construct a fully- connected multi-agent system with established techniques including few-shot prompting [2], chain- of-thought [45], function calling [33], and structured outputs [34]. To precisely analyze KV-cache behaviors, we deploy open-source models using HuggingFace’s framework rather than closed-source APIs used by AgentPrune. Specifically, we employ Llama-3.1-8B-Instruct [11] (Llama-3.1) for retrieval-augmented generation (RAG) and math reasoning, and Qwen-Coder-2.5-7B-Instruct [16] for programming tasks. We evaluate performance across scenarios ranging from two to five agents. Benchmark Datasets. We assess RAG performance using MMLU [13], math reasoning with GSM8K [7], and programming capability via HumanEval [4]. 8
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
指标:给定长度配置下,第五个智能体不复用的TTFT为428.6毫秒;本文缓存处理17.5、首token解码21.1、其他开销16.2毫秒,表内总加速7.82倍。首个智能体只有1.11倍。不能只拿17.5与428.6相比,也不能将后续单智能体的首token加速叫整套任务端到端加速。
条件:本地全文 arXiv:2510.12872v2,Table 2;条件及比较对象见陈述
PDF p.9, Table 2 · PDF p.9
Table 2: Per-agent TTFT breakdown and speedup. Table 3: Mean TTFT speedup using Llama-3.1. (Prefix token length per agent: 512; Output token (#Agents = 3) length: 512; Model: Llama-3.1; #Agents = 5) In_len (Prefix sequence) Out_len TTFT (ms) Agent 1 Agent 2 Agent 3 Agent 4 Agent 5 64 128 256 512 1024 Original 125.8 192.4 258.3 330.9 428.6 128 2.24x 2.31x 2.56x 3.07x 4.45x KVC OMM 5.5 7.7 10.2 13.5 17.5 1st Token Decode 21.4 21.2 21.2 21.3 21.1 256 2.50x 2.51x 2.83x 3.44x 4.75x Others 86.6 9.1 10.7 13.5 16.2 512 3.05x 3.18x 3.49x 4.09x 5.34x Speedup 1.11x 5.06x 6.14x 6.85x 7.82x 1024 4.40x 4.48x 4.75x 5.35x 6.72x Comparison Baselines. To our knowledge, KVC OMM is the first method enabling comprehensive KV-cache sharing tailored for open-source multi-agent frameworks. Hence, we compare primarily against CacheBlend [58], which selectively recomputes sensitive tokens’ caches for partial reuse. Given CacheBlend’s tight integration with vLLM [21], we faithfully replicate its selective recomputa- tion strategy within our experimental setup, consistently recomputing the top-20% tokens exhibiting the largest KV deviations, ensuring fair baseline alignment. Evaluation Metrics. We report Accuracy scores on MMLU and GSM8K, and Pass@1 for coding tasks. Efficiency metrics include Reuse Rate (meaning the proportion of agents employing the cache reuse scheme), individual agent Time-To-First-Token (TTFT), and average TTFT across agents. Implementation Details. Experiments are executed on a single NVIDIA H100 GPU. The maximum generation length is uniformly set to 512 tokens, with hyperparameters selected as γ = 0.3 and anchor pool size V = 20. Further implementation specifics are detailed in Appendix 6.3. 4.2 Main Results Table 1 compares our KVC OMM approach with the Original (no cache reuse) and CacheBlend [58] strategies across multiple agent configurations. Although our agent prompts were initially opti- mized for closed-source models, causing some performance drops with open-source deployments, KVC OMM still maintains or improves upon baseline accuracy. On MMLU, KVC OMM achieves competitive accuracy (64.7%–69.9%), consistently outperforming or matching CacheBlend and closely tracking the original baseline. This indicates robust cross-context KV-cache alignment by KVC OMM, CacheBlend fluctuates significantly with increasing agents. The reason why the baseline method performs poorly on the MMLU benchmark under the two-agent setting is that the first agent is designed as the knowledgeable expert to produce the related key words about the user question, and the second agent is designed as the Final Refer to analyze the predecessor agents’ output and give the answer based on the previous agent’s output, where the failure cases mainly occur when the second agent only output the answer without analysis. The prompt of each agent can be found in Appendix 6.3.2. For GSM8K math reasoning, KVC OMM’s accuracy remains stable, only declining by 1.9% (81.5%→79.6%) from two to five agents, maintaining within ±2% of the original baseline. In contrast, CacheBlend’s accuracy drops dramatically from 82.0% to 57.1%, highlighting the necessity for precise KV-cache reuse in numerical tasks. In the HumanEval coding benchmark, KVC OMM delivers stable Pass@1 scores (81.4%–83.2%), significantly surpassing CacheBlend by an average margin of 53%. This underscores KVC OMM’s ability to preserve task-critical dependencies essential for programming tasks. The severe performance degradation of CacheBlend on Humaneval attributes to the diverse syntax separators involved in the generation process (e.g., ., ;, !), which induce diverse and prefix-sensitive KV-cache distributions. Reuse Rate. Unlike CacheBlend’s fixed reuse strategy (80%), KVC OMM adaptively determines KV-cache reuse, consistently achieving high reuse rates (70%–87.6%). This rate naturally declines as agent number increases due to more diverse contexts, but KVC OMM still effectively identifies shareable caches, confirming that adaptive reuse avoids context degradation. 4.3 Results of TTFT Speedup1 Table 2 reports TTFT per agent receiving 1K tokens from user input with 512 prefix tokens and sharing the 512 response tokens with succeeding agents. The first agent, lacking upstream caches 1 In the original submission, the TTFT calculation for KVC OMM omitted the first token’s decoding latency. The final version rectifies this. 9
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
指标:HumanEval双智能体设置中,原始Pass@1为86.3,KVCOMM为81.4;五智能体的GSM8K准确率原始81.7、本文79.6。它较某些近似缓存基线保留更多质量,但“基本保留”不是数学意义的无损。效率与任务质量应一起看。
条件:本地全文 arXiv:2510.12872v2,Table 1;条件及比较对象见陈述
PDF p.8, Table 1 · PDF p.8
Table 1: Performance of three cache-management strategies under different numbers of collaborating agents. Accuracy is reported for MMLU and GSM8K (Llama-3.1-8B-Instruct); Pass@1 is reported for HumanEval (Qwen-2.5-coder-7B). Higher is better. In addition, the Reuse Rate is reported for both KVC OMM and CacheBlend. Note that the Reuse Rate for CacheBlend is defined as the proportion of tokens reusing KV-caches in whole token sequences, while the Reuse Rate of KVC OMM is defined as the frequency of agents reusing all KV-caches in the whole serving procedure. # Agents Dataset Metric Method 2 3 4 5 Original 47.1 66.7 68.0 69.9 Accuracy (%) CacheBlend 65.4 65.4 65.4 67.3 MMLU KVC OMM 64.7 68.6 68.0 69.9 Original 0 0 0 0 Reuse Rate (%) CacheBlend 80 80 80 80 KVC OMM 74.5 69.9 70.1 67.6 Original 81.1 82.4 82.1 81.7 Accuracy (%) CacheBlend 82.0 75.1 65.1 57.1 GSM8K KVC OMM 81.5 81.7 80.6 79.6 Original 0 0 0 0 Reuse Rate (%) CacheBlend 80 80 80 80 KVC OMM 79.6 77.0 73.4 71.0 Original 86.3 83.9 84.5 85.1 Pass@1 (%) CacheBlend 31.1 21.1 30.4 32.9 HumanEval KVC OMM 81.4 83.2 83.2 83.2 Original 0 0 0 0 Reuse Rate (%) CacheBlend 80 80 80 80 KVC OMM 87.6 84.7 81.1 77.8 sample’s embedding proximity. Formally, the KV-cache of the i-th placeholder in the m-th agent is approximated as follows: P ϕ (k̂/v̂)ϕ(m,i) = (k/v)ϕ(m,i) + ψ∈Aϕ(m,i) wϕ(m,i) →ψ · ∆(k/v)(m,ψ) , (6) where (k̂/v̂)ϕ(m,i) refers to the approximated K/V cache for the placeholder ϕ(m,i) . (k/v)ϕ(m,i) is the base K/V cache for the placeholder ϕ(m,i) . wϕ(m,i) →ψ is the softmax mapping of −∥hϕ(m,i) − hψ ∥ across the anchor dimension. ∆(k/v)ϕ(m,ψ) is the placeholder ϕ’s cache offsets in the m-th agent for the anchor ψ. Prefix segment updates follow an analogous process: wϕ(m,i) →ψ · ∆(k/v)p P (k̂/v̂)p(m,i) = (k/v)p(m,i) + ψ∈Aϕ (m,ψ) , (7) (m,i) where (k̂/v̂)p(m,i) refers to the approximated K/V cache for the prefix segment p(m,i) . (k/v)p(m,i) is the base K/V cache for the prefix segment p(m,i) . ∆(k/v)p (m,ψ) is the corresponding prefix segment’s cache offset in the m-th agent for the anchor ψ. After approximation, updated caches are concatenated and directly fed into decoding, substantially reducing prefilling latency via parallel processing. The overall algorithm is listed in Appendix 6.2.5. 4 Experiments 4.1 Experimental Setup Multi-agent System. Following GPTSwarm [69] and AgentPrune [65], we construct a fully- connected multi-agent system with established techniques including few-shot prompting [2], chain- of-thought [45], function calling [33], and structured outputs [34]. To precisely analyze KV-cache behaviors, we deploy open-source models using HuggingFace’s framework rather than closed-source APIs used by AgentPrune. Specifically, we employ Llama-3.1-8B-Instruct [11] (Llama-3.1) for retrieval-augmented generation (RAG) and math reasoning, and Qwen-Coder-2.5-7B-Instruct [16] for programming tasks. We evaluate performance across scenarios ranging from two to five agents. Benchmark Datasets. We assess RAG performance using MMLU [13], math reasoning with GSM8K [7], and programming capability via HumanEval [4]. 8
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
指标:实验硬件和底座设置明确,不能直接外推到自己的API调用。作者脚注还承认原提交版漏算首token解码延迟,最终版已改正;因此本文导读绑定当前PDF表格,不混用早期更乐观的耗时数字。
条件:本地全文 arXiv:2510.12872v2,Implementation Details; TTFT correction footnote;条件及比较对象见陈述
PDF p.9, Implementation Details; TTFT correction footnote · PDF p.9
Table 2: Per-agent TTFT breakdown and speedup. Table 3: Mean TTFT speedup using Llama-3.1. (Prefix token length per agent: 512; Output token (#Agents = 3) length: 512; Model: Llama-3.1; #Agents = 5) In_len (Prefix sequence) Out_len TTFT (ms) Agent 1 Agent 2 Agent 3 Agent 4 Agent 5 64 128 256 512 1024 Original 125.8 192.4 258.3 330.9 428.6 128 2.24x 2.31x 2.56x 3.07x 4.45x KVC OMM 5.5 7.7 10.2 13.5 17.5 1st Token Decode 21.4 21.2 21.2 21.3 21.1 256 2.50x 2.51x 2.83x 3.44x 4.75x Others 86.6 9.1 10.7 13.5 16.2 512 3.05x 3.18x 3.49x 4.09x 5.34x Speedup 1.11x 5.06x 6.14x 6.85x 7.82x 1024 4.40x 4.48x 4.75x 5.35x 6.72x Comparison Baselines. To our knowledge, KVC OMM is the first method enabling comprehensive KV-cache sharing tailored for open-source multi-agent frameworks. Hence, we compare primarily against CacheBlend [58], which selectively recomputes sensitive tokens’ caches for partial reuse. Given CacheBlend’s tight integration with vLLM [21], we faithfully replicate its selective recomputa- tion strategy within our experimental setup, consistently recomputing the top-20% tokens exhibiting the largest KV deviations, ensuring fair baseline alignment. Evaluation Metrics. We report Accuracy scores on MMLU and GSM8K, and Pass@1 for coding tasks. Efficiency metrics include Reuse Rate (meaning the proportion of agents employing the cache reuse scheme), individual agent Time-To-First-Token (TTFT), and average TTFT across agents. Implementation Details. Experiments are executed on a single NVIDIA H100 GPU. The maximum generation length is uniformly set to 512 tokens, with hyperparameters selected as γ = 0.3 and anchor pool size V = 20. Further implementation specifics are detailed in Appendix 6.3. 4.2 Main Results Table 1 compares our KVC OMM approach with the Original (no cache reuse) and CacheBlend [58] strategies across multiple agent configurations. Although our agent prompts were initially opti- mized for closed-source models, causing some performance drops with open-source deployments, KVC OMM still maintains or improves upon baseline accuracy. On MMLU, KVC OMM achieves competitive accuracy (64.7%–69.9%), consistently outperforming or matching CacheBlend and closely tracking the original baseline. This indicates robust cross-context KV-cache alignment by KVC OMM, CacheBlend fluctuates significantly with increasing agents. The reason why the baseline method performs poorly on the MMLU benchmark under the two-agent setting is that the first agent is designed as the knowledgeable expert to produce the related key words about the user question, and the second agent is designed as the Final Refer to analyze the predecessor agents’ output and give the answer based on the previous agent’s output, where the failure cases mainly occur when the second agent only output the answer without analysis. The prompt of each agent can be found in Appendix 6.3.2. For GSM8K math reasoning, KVC OMM’s accuracy remains stable, only declining by 1.9% (81.5%→79.6%) from two to five agents, maintaining within ±2% of the original baseline. In contrast, CacheBlend’s accuracy drops dramatically from 82.0% to 57.1%, highlighting the necessity for precise KV-cache reuse in numerical tasks. In the HumanEval coding benchmark, KVC OMM delivers stable Pass@1 scores (81.4%–83.2%), significantly surpassing CacheBlend by an average margin of 53%. This underscores KVC OMM’s ability to preserve task-critical dependencies essential for programming tasks. The severe performance degradation of CacheBlend on Humaneval attributes to the diverse syntax separators involved in the generation process (e.g., ., ;, !), which induce diverse and prefix-sensitive KV-cache distributions. Reuse Rate. Unlike CacheBlend’s fixed reuse strategy (80%), KVC OMM adaptively determines KV-cache reuse, consistently achieving high reuse rates (70%–87.6%). This rate naturally declines as agent number increases due to more diverse contexts, but KVC OMM still effectively identifies shareable caches, confirming that adaptive reuse avoids context degradation. 4.3 Results of TTFT Speedup1 Table 2 reports TTFT per agent receiving 1K tokens from user input with 512 prefix tokens and sharing the 512 response tokens with succeeding agents. The first agent, lacking upstream caches 1 In the original submission, the TTFT calculation for KVC OMM omitted the first token’s decoding latency. The final version rectifies this. 9
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
论文为什么要做这件事
语言模型读取输入时生成键和值缓存,后续生成不断读取这些中间结果。多个角色看相同资料仍可能重复算一遍,但不同角色提示会改变缓存。本文把提示拆为固定前缀和运行时填入的文本,尝试复用共享部分,而不是删掉交流消息。 (原文:PDF p.4, Figure 3)
指标:语言模型读取输入时生成键和值缓存,后续生成不断读取这些中间结果。多个角色看相同资料仍可能重复算一遍,但不同角色提示会改变缓存。本文把提示拆为固定前缀和运行时填入的文本,尝试复用共享部分,而不是删掉交流消息。
条件:本地全文 arXiv:2510.12872v2,Figure 3;条件及比较对象见陈述
PDF p.4, Figure 3 · PDF p.4
Agent 1 KV-cache Communication Module Prefix KV Anchor Matching Offset Approximation Anchor Prediction Pool Pool Each Anchor Unmatched Matched Placeholder KV All placeholders ? Query Hit w1 (1) (2) w2 { No Yes Cache Update Pool Pool = + w1 OR AND Dense Length Uncover Length Covered PH Prefilling + w2 PF = + w1 Decoding Response Cache + w2 [PH, PF] Response Anchor Prediction of Response KV Agent 2 Agent 3 You are a math expert. You will be given a math problem ...Q: Legend Answers from other agents are: Queried (external input) Prefix KV Prefix KV Agent 2 as a mathematical analyst: , Placeholder the execution result is . Queried (response) Placeholder Placeholder KV Placeholder KV Example KV Anchor of the Estimated KV of the i-th (external input) Placeholder Placeholder of Agent m Anchor Hit Range All placeholders ? All placeholders ? Estimated KV of the i-th (response) Placeholder of Agent m Add as a New Anchor (N) Dense (Y) Sharing (Y) Sharing (N) Dense Estimated KV of the i-th Prefix Reuse Segment of Agent m Sharable placeholder Figure 3: Overview of the KVC OMM framework in a three-agent scenario. Initially, each agent precomputes and stores the KV-cache of prefix segments from its prompt template for future reuse. At runtime, upon receiving a new request, agents check placeholder shareability and query matched anchors. Matched anchors help approximate KV-cache offsets for placeholders and subsequent prefixes through embedding-based interpolation. The matching criteria consider length compatibility and embedding proximity. The updated KV-caches are concatenated for efficient decoding. After decoding, the KV-cache Communication module assesses newly generated caches for potential sharing with other agents based on the established matching rules. stacks [21, 68, 5] expose the same constraint that architectural identity is a prerequisite for cache reuse. Existing methods on KV-cache acceleration primarily explore four paradigms. (1) Prompt-Level Reuse [10]. PromptCache [10] introduces Prompt Markup Language to explicitly define reusable text segments whose KV-caches are precomputed offline and directly fetched at inference, eliminating recomputation but restricted to fixed prompt structures. (2) Selective Recomputation [58, 27, 56]. CacheBlend [58] dynamically identifies and updates tokens exhibiting high variance in KV-caches. DroidSpeak [27] leverages profiling to identify critical attention layers whose KV-caches must be refreshed to maintain accuracy. KVLink [56] further extends it by fine-tuning special tokens and adjusting positional embeddings, enabling KV reuse across multiple document contexts. (3) Cache Compression [28]. CacheGen [28] compresses KV-caches into adaptive bit-streams based on available bandwidth; however, the entire token sequence still undergoes compression computations, limiting latency improvements. (4) Kernel-Level Optimizations [67, 46]. PrePacking [67] employs a bin-packing strategy to batch variable-length prompts into unified sequences. LoongServe [46] designs Elastic Sequence Parallelism to dynamically manage parallelism strategies and overlap cache migration with decoding steps to enhance GPU utilization. Figure 2 compares the main difference between KVC OMM and existing KV-cache sharing methods. Generally, KVC OMM explores a completely novel paradigm that can reuse all shareable KV-caches regardless of diverse prefix contexts, and align them by leveraging the context-aware cache offsets observed in previous samples. 3 Proposed Approach 3.1 Preliminaries Large Language Models and KV-cache. Let x = [h1 , . . . , hL ] denote a list of token embedding sequences, with hl ∈ RN ×D representing the input token embedding of the l-th transformer layer, where N is the number of tokens and D is the feature dimension. For hln (where n = 1, 2, . . . , N ), it is projected by the l-th transformer layer to Query, Key, and Value vectors for the subsequent attention computation using: qln = Rn WQl hln , kln = Rn WK l l hn , vnl = WVl hln , where qln , kln , vnl ∈ d l l R denotes the Q, K, V values for the n-th input token, WQ , WK , WVl refer to the corresponding projection weight matrices, and Rn is the position embedding at position n, such as rotary position embedding (RoPE) [37]. During autoregressive decoding, the model repeatedly attends to all past positions, and stores every (kln , vnl ) pair in GPU memory, known as KV-cache. Therefore, prefilling a prompt of N tokens costs O(N 2 d) multiply-adds per layer, dominating inference latency for long contexts. Since RoPE applies the fixed rotation matrix to both Key and Query at each position, cached 4
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
核心方法到底怎么运转
系统保存参照样本及其缓存偏移,收到新文本后按长度和嵌入相似性匹配参照,先对齐位置旋转,再插值估计新上下文下的键和值偏移。匹配不合适就做正常预填充并更新参照池。这里要求智能体使用同一模型检查点及兼容位置编码,不是任意闭源接口之间传隐藏状态。 (原文:PDF p.5, Section 3.1 workflow)
指标:系统保存参照样本及其缓存偏移,收到新文本后按长度和嵌入相似性匹配参照,先对齐位置旋转,再插值估计新上下文下的键和值偏移。匹配不合适就做正常预填充并更新参照池。这里要求智能体使用同一模型检查点及兼容位置编码,不是任意闭源接口之间传隐藏状态。
条件:本地全文 arXiv:2510.12872v2,Section 3.1 workflow;条件及比较对象见陈述
PDF p.5, Section 3.1 workflow · PDF p.5
keys remain valid across subsequent steps with no further arithmetic modification, making KV-cache reuse the primary source of speed-ups in subsequent prefilling and decoding. Directed-Graph Multi-agent Systems. Following [57, 69, 65], we model a multi-agent system as a directed graph G = (M, E) whose nodes m ∈ M are agents and edges e = (ms → mt ) ∈ E denote one-way message passing from the ms -th agent to the mt -th agent. At interaction step t, the (t) m-th agent composes an input prompt sm in the template consisting of (i) fixed prefix segments shared across all turns, and (ii) placeholder segments filled at runtime with user queries, tool results, or upstream agent outputs, as formulated as follows, where p(m,0) is usually a role-specific system (t) prompt, p(m,i) is the subsequent prefix segment of the i-th placeholder ϕ(m,i) . (t) (t) (t) (t) sm = p(m,0) , ϕ(m,1) , p(m,1) , ϕ(m,2) , p(m,2) , . . . , ϕ(m,i) , p(m,i) . (1) Our work targets a distinct yet practical setting: a directed multi-agent graph in which each node is an identical RoPE-based LLM checkpoint instantiated with a role-specific system template. Since agents differ in the length of both prefixes and incoming messages, none of the existing static policies can predict the correct positional and contextual shifts; misalignment either forces full recomputation or yields steep accuracy loss. We therefore develop a training-free, prompt-adaptive cache-sharing mechanism, termed KVC OMM, which estimates the true offset on the fly and maintains an online anchor pool to accommodate rapidly changing interaction patterns, reducing prefilling latency without sacrificing task performance. The overall workload of KVC OMM is illustrated in Figure 3, which proceeds as follows. 0. Initialization Before any user requests, all agents precompute and store the KV-caches for all prefix segments defined in their prompt templates. 1. Placeholder Readiness When a request arrives, each agent checks whether all placeholders’ base KV-caches are available. Missing bases are precomputed in parallel. Newly generated placeholder KV-caches are then sent to the anchor prediction module to search the anchor pool for similar samples and enable reuse. 2. Reuse or Fallback Once all placeholder KV-caches are ready, the agent determines whether reusable KV-cache deviations exist for each placeholder. If none are found, standard dense pre- filling is used. For placeholders without reusable deviations, the agent computes the difference between their actual and base KV-caches and stores this deviation in the anchor pool to expand anchor coverage. 3. Offset Approximation If all placeholders have reusable deviations, the agent fetches the matched anchors, estimates the KV-cache deviations via Eq. (6) and Eq. (7), and updates the placeholder and prefix KV-caches in parallel. 4. Decoding The agent concatenates the updated placeholder and prefix KV-caches and initiates response decoding. 5. Anchor Update After decoding, the produced KV-cache is passed through the anchor prediction module. If a similar anchor exists, the cache is stored in shared memory for future retrieval. The agent then waits for the next request. 6. Fallback Storage If no similar anchor exists, the response KV-cache is stored in the anchor pool so dependent agents can subsequently fill in deviations under their respective contexts; the agent then awaits the next request. All inter-agent interactions occur through the KV-cache Communication Module. When multiple agents share the same user text but use different agent-specific prefixes, we avoid re-running prefilling by treating the KV-cache of the shared text under a new prefix as a context-dependent offset from its base KV-cache. We estimate this offset by interpolating from a small set of anchor examples, aligning Key positions via RoPE de-rotation/re-rotation, adding the estimated Key/Value offsets, then concatenating the adjusted segments and decoding. Positional Alignment is Indispensable. Before analyzing two arbitrary tokens’ cache correlation, we should first solve the position mismatch induced by RoPE. If a token is at position n in one prompt but at n + ∆ in another, the raw keys differ by an orthogonal rotation R∆ , whose difference can be orders of magnitude larger than the contextual deviation we care about, as demonstrated in Figure 1b. Hence, KVC OMM always de-rotates the stored key by R−∆ before measuring similarity between 5
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
解释性例子:几个角色都读同一篇资料,第一次保存其内部缓存,后面的角色先校正自己提示带来的差异再读取;差异无法可靠估计时宁可重算,不能为了快直接复用不匹配的状态。
解释性推断,不能当作论文直接支持的主张。
实验怎样检验这个方法
实验使用可访问内部状态的开源模型,在知识问答、数学和代码任务中比较不复用、CacheBlend式选择重算及本文方案。表注还说明两种方法的Reuse Rate分母不同:一种是复用token比例,另一种是智能体整段复用发生频率,不能直接用该百分比判断谁更省。 (原文:PDF p.8, Table 1; Section 4.1)
指标:实验使用可访问内部状态的开源模型,在知识问答、数学和代码任务中比较不复用、CacheBlend式选择重算及本文方案。表注还说明两种方法的Reuse Rate分母不同:一种是复用token比例,另一种是智能体整段复用发生频率,不能直接用该百分比判断谁更省。
条件:本地全文 arXiv:2510.12872v2,Table 1; Section 4.1;条件及比较对象见陈述
PDF p.8, Table 1; Section 4.1 · PDF p.8
Table 1: Performance of three cache-management strategies under different numbers of collaborating agents. Accuracy is reported for MMLU and GSM8K (Llama-3.1-8B-Instruct); Pass@1 is reported for HumanEval (Qwen-2.5-coder-7B). Higher is better. In addition, the Reuse Rate is reported for both KVC OMM and CacheBlend. Note that the Reuse Rate for CacheBlend is defined as the proportion of tokens reusing KV-caches in whole token sequences, while the Reuse Rate of KVC OMM is defined as the frequency of agents reusing all KV-caches in the whole serving procedure. # Agents Dataset Metric Method 2 3 4 5 Original 47.1 66.7 68.0 69.9 Accuracy (%) CacheBlend 65.4 65.4 65.4 67.3 MMLU KVC OMM 64.7 68.6 68.0 69.9 Original 0 0 0 0 Reuse Rate (%) CacheBlend 80 80 80 80 KVC OMM 74.5 69.9 70.1 67.6 Original 81.1 82.4 82.1 81.7 Accuracy (%) CacheBlend 82.0 75.1 65.1 57.1 GSM8K KVC OMM 81.5 81.7 80.6 79.6 Original 0 0 0 0 Reuse Rate (%) CacheBlend 80 80 80 80 KVC OMM 79.6 77.0 73.4 71.0 Original 86.3 83.9 84.5 85.1 Pass@1 (%) CacheBlend 31.1 21.1 30.4 32.9 HumanEval KVC OMM 81.4 83.2 83.2 83.2 Original 0 0 0 0 Reuse Rate (%) CacheBlend 80 80 80 80 KVC OMM 87.6 84.7 81.1 77.8 sample’s embedding proximity. Formally, the KV-cache of the i-th placeholder in the m-th agent is approximated as follows: P ϕ (k̂/v̂)ϕ(m,i) = (k/v)ϕ(m,i) + ψ∈Aϕ(m,i) wϕ(m,i) →ψ · ∆(k/v)(m,ψ) , (6) where (k̂/v̂)ϕ(m,i) refers to the approximated K/V cache for the placeholder ϕ(m,i) . (k/v)ϕ(m,i) is the base K/V cache for the placeholder ϕ(m,i) . wϕ(m,i) →ψ is the softmax mapping of −∥hϕ(m,i) − hψ ∥ across the anchor dimension. ∆(k/v)ϕ(m,ψ) is the placeholder ϕ’s cache offsets in the m-th agent for the anchor ψ. Prefix segment updates follow an analogous process: wϕ(m,i) →ψ · ∆(k/v)p P (k̂/v̂)p(m,i) = (k/v)p(m,i) + ψ∈Aϕ (m,ψ) , (7) (m,i) where (k̂/v̂)p(m,i) refers to the approximated K/V cache for the prefix segment p(m,i) . (k/v)p(m,i) is the base K/V cache for the prefix segment p(m,i) . ∆(k/v)p (m,ψ) is the corresponding prefix segment’s cache offset in the m-th agent for the anchor ψ. After approximation, updated caches are concatenated and directly fed into decoding, substantially reducing prefilling latency via parallel processing. The overall algorithm is listed in Appendix 6.2.5. 4 Experiments 4.1 Experimental Setup Multi-agent System. Following GPTSwarm [69] and AgentPrune [65], we construct a fully- connected multi-agent system with established techniques including few-shot prompting [2], chain- of-thought [45], function calling [33], and structured outputs [34]. To precisely analyze KV-cache behaviors, we deploy open-source models using HuggingFace’s framework rather than closed-source APIs used by AgentPrune. Specifically, we employ Llama-3.1-8B-Instruct [11] (Llama-3.1) for retrieval-augmented generation (RAG) and math reasoning, and Qwen-Coder-2.5-7B-Instruct [16] for programming tasks. We evaluate performance across scenarios ranging from two to five agents. Benchmark Datasets. We assess RAG performance using MMLU [13], math reasoning with GSM8K [7], and programming capability via HumanEval [4]. 8
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
结果说明了什么
给定长度配置下,第五个智能体不复用的TTFT为428.6毫秒;本文缓存处理17.5、首token解码21.1、其他开销16.2毫秒,表内总加速7.82倍。首个智能体只有1.11倍。不能只拿17.5与428.6相比,也不能将后续单智能体的首token加速叫整套任务端到端加速。 (原文:PDF p.9, Table 2)
指标:给定长度配置下,第五个智能体不复用的TTFT为428.6毫秒;本文缓存处理17.5、首token解码21.1、其他开销16.2毫秒,表内总加速7.82倍。首个智能体只有1.11倍。不能只拿17.5与428.6相比,也不能将后续单智能体的首token加速叫整套任务端到端加速。
条件:本地全文 arXiv:2510.12872v2,Table 2;条件及比较对象见陈述
PDF p.9, Table 2 · PDF p.9
Table 2: Per-agent TTFT breakdown and speedup. Table 3: Mean TTFT speedup using Llama-3.1. (Prefix token length per agent: 512; Output token (#Agents = 3) length: 512; Model: Llama-3.1; #Agents = 5) In_len (Prefix sequence) Out_len TTFT (ms) Agent 1 Agent 2 Agent 3 Agent 4 Agent 5 64 128 256 512 1024 Original 125.8 192.4 258.3 330.9 428.6 128 2.24x 2.31x 2.56x 3.07x 4.45x KVC OMM 5.5 7.7 10.2 13.5 17.5 1st Token Decode 21.4 21.2 21.2 21.3 21.1 256 2.50x 2.51x 2.83x 3.44x 4.75x Others 86.6 9.1 10.7 13.5 16.2 512 3.05x 3.18x 3.49x 4.09x 5.34x Speedup 1.11x 5.06x 6.14x 6.85x 7.82x 1024 4.40x 4.48x 4.75x 5.35x 6.72x Comparison Baselines. To our knowledge, KVC OMM is the first method enabling comprehensive KV-cache sharing tailored for open-source multi-agent frameworks. Hence, we compare primarily against CacheBlend [58], which selectively recomputes sensitive tokens’ caches for partial reuse. Given CacheBlend’s tight integration with vLLM [21], we faithfully replicate its selective recomputa- tion strategy within our experimental setup, consistently recomputing the top-20% tokens exhibiting the largest KV deviations, ensuring fair baseline alignment. Evaluation Metrics. We report Accuracy scores on MMLU and GSM8K, and Pass@1 for coding tasks. Efficiency metrics include Reuse Rate (meaning the proportion of agents employing the cache reuse scheme), individual agent Time-To-First-Token (TTFT), and average TTFT across agents. Implementation Details. Experiments are executed on a single NVIDIA H100 GPU. The maximum generation length is uniformly set to 512 tokens, with hyperparameters selected as γ = 0.3 and anchor pool size V = 20. Further implementation specifics are detailed in Appendix 6.3. 4.2 Main Results Table 1 compares our KVC OMM approach with the Original (no cache reuse) and CacheBlend [58] strategies across multiple agent configurations. Although our agent prompts were initially opti- mized for closed-source models, causing some performance drops with open-source deployments, KVC OMM still maintains or improves upon baseline accuracy. On MMLU, KVC OMM achieves competitive accuracy (64.7%–69.9%), consistently outperforming or matching CacheBlend and closely tracking the original baseline. This indicates robust cross-context KV-cache alignment by KVC OMM, CacheBlend fluctuates significantly with increasing agents. The reason why the baseline method performs poorly on the MMLU benchmark under the two-agent setting is that the first agent is designed as the knowledgeable expert to produce the related key words about the user question, and the second agent is designed as the Final Refer to analyze the predecessor agents’ output and give the answer based on the previous agent’s output, where the failure cases mainly occur when the second agent only output the answer without analysis. The prompt of each agent can be found in Appendix 6.3.2. For GSM8K math reasoning, KVC OMM’s accuracy remains stable, only declining by 1.9% (81.5%→79.6%) from two to five agents, maintaining within ±2% of the original baseline. In contrast, CacheBlend’s accuracy drops dramatically from 82.0% to 57.1%, highlighting the necessity for precise KV-cache reuse in numerical tasks. In the HumanEval coding benchmark, KVC OMM delivers stable Pass@1 scores (81.4%–83.2%), significantly surpassing CacheBlend by an average margin of 53%. This underscores KVC OMM’s ability to preserve task-critical dependencies essential for programming tasks. The severe performance degradation of CacheBlend on Humaneval attributes to the diverse syntax separators involved in the generation process (e.g., ., ;, !), which induce diverse and prefix-sensitive KV-cache distributions. Reuse Rate. Unlike CacheBlend’s fixed reuse strategy (80%), KVC OMM adaptively determines KV-cache reuse, consistently achieving high reuse rates (70%–87.6%). This rate naturally declines as agent number increases due to more diverse contexts, but KVC OMM still effectively identifies shareable caches, confirming that adaptive reuse avoids context degradation. 4.3 Results of TTFT Speedup1 Table 2 reports TTFT per agent receiving 1K tokens from user input with 512 prefix tokens and sharing the 512 response tokens with succeeding agents. The first agent, lacking upstream caches 1 In the original submission, the TTFT calculation for KVC OMM omitted the first token’s decoding latency. The final version rectifies this. 9
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
HumanEval双智能体设置中,原始Pass@1为86.3,KVCOMM为81.4;五智能体的GSM8K准确率原始81.7、本文79.6。它较某些近似缓存基线保留更多质量,但“基本保留”不是数学意义的无损。效率与任务质量应一起看。 (原文:PDF p.8, Table 1)
指标:HumanEval双智能体设置中,原始Pass@1为86.3,KVCOMM为81.4;五智能体的GSM8K准确率原始81.7、本文79.6。它较某些近似缓存基线保留更多质量,但“基本保留”不是数学意义的无损。效率与任务质量应一起看。
条件:本地全文 arXiv:2510.12872v2,Table 1;条件及比较对象见陈述
PDF p.8, Table 1 · PDF p.8
Table 1: Performance of three cache-management strategies under different numbers of collaborating agents. Accuracy is reported for MMLU and GSM8K (Llama-3.1-8B-Instruct); Pass@1 is reported for HumanEval (Qwen-2.5-coder-7B). Higher is better. In addition, the Reuse Rate is reported for both KVC OMM and CacheBlend. Note that the Reuse Rate for CacheBlend is defined as the proportion of tokens reusing KV-caches in whole token sequences, while the Reuse Rate of KVC OMM is defined as the frequency of agents reusing all KV-caches in the whole serving procedure. # Agents Dataset Metric Method 2 3 4 5 Original 47.1 66.7 68.0 69.9 Accuracy (%) CacheBlend 65.4 65.4 65.4 67.3 MMLU KVC OMM 64.7 68.6 68.0 69.9 Original 0 0 0 0 Reuse Rate (%) CacheBlend 80 80 80 80 KVC OMM 74.5 69.9 70.1 67.6 Original 81.1 82.4 82.1 81.7 Accuracy (%) CacheBlend 82.0 75.1 65.1 57.1 GSM8K KVC OMM 81.5 81.7 80.6 79.6 Original 0 0 0 0 Reuse Rate (%) CacheBlend 80 80 80 80 KVC OMM 79.6 77.0 73.4 71.0 Original 86.3 83.9 84.5 85.1 Pass@1 (%) CacheBlend 31.1 21.1 30.4 32.9 HumanEval KVC OMM 81.4 83.2 83.2 83.2 Original 0 0 0 0 Reuse Rate (%) CacheBlend 80 80 80 80 KVC OMM 87.6 84.7 81.1 77.8 sample’s embedding proximity. Formally, the KV-cache of the i-th placeholder in the m-th agent is approximated as follows: P ϕ (k̂/v̂)ϕ(m,i) = (k/v)ϕ(m,i) + ψ∈Aϕ(m,i) wϕ(m,i) →ψ · ∆(k/v)(m,ψ) , (6) where (k̂/v̂)ϕ(m,i) refers to the approximated K/V cache for the placeholder ϕ(m,i) . (k/v)ϕ(m,i) is the base K/V cache for the placeholder ϕ(m,i) . wϕ(m,i) →ψ is the softmax mapping of −∥hϕ(m,i) − hψ ∥ across the anchor dimension. ∆(k/v)ϕ(m,ψ) is the placeholder ϕ’s cache offsets in the m-th agent for the anchor ψ. Prefix segment updates follow an analogous process: wϕ(m,i) →ψ · ∆(k/v)p P (k̂/v̂)p(m,i) = (k/v)p(m,i) + ψ∈Aϕ (m,ψ) , (7) (m,i) where (k̂/v̂)p(m,i) refers to the approximated K/V cache for the prefix segment p(m,i) . (k/v)p(m,i) is the base K/V cache for the prefix segment p(m,i) . ∆(k/v)p (m,ψ) is the corresponding prefix segment’s cache offset in the m-th agent for the anchor ψ. After approximation, updated caches are concatenated and directly fed into decoding, substantially reducing prefilling latency via parallel processing. The overall algorithm is listed in Appendix 6.2.5. 4 Experiments 4.1 Experimental Setup Multi-agent System. Following GPTSwarm [69] and AgentPrune [65], we construct a fully- connected multi-agent system with established techniques including few-shot prompting [2], chain- of-thought [45], function calling [33], and structured outputs [34]. To precisely analyze KV-cache behaviors, we deploy open-source models using HuggingFace’s framework rather than closed-source APIs used by AgentPrune. Specifically, we employ Llama-3.1-8B-Instruct [11] (Llama-3.1) for retrieval-augmented generation (RAG) and math reasoning, and Qwen-Coder-2.5-7B-Instruct [16] for programming tasks. We evaluate performance across scenarios ranging from two to five agents. Benchmark Datasets. We assess RAG performance using MMLU [13], math reasoning with GSM8K [7], and programming capability via HumanEval [4]. 8
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
这篇论文哪里最强,哪里最危险
实验硬件和底座设置明确,不能直接外推到自己的API调用。作者脚注还承认原提交版漏算首token解码延迟,最终版已改正;因此本文导读绑定当前PDF表格,不混用早期更乐观的耗时数字。 (原文:PDF p.9, Implementation Details; TTFT correction footnote)
指标:实验硬件和底座设置明确,不能直接外推到自己的API调用。作者脚注还承认原提交版漏算首token解码延迟,最终版已改正;因此本文导读绑定当前PDF表格,不混用早期更乐观的耗时数字。
条件:本地全文 arXiv:2510.12872v2,Implementation Details; TTFT correction footnote;条件及比较对象见陈述
PDF p.9, Implementation Details; TTFT correction footnote · PDF p.9
Table 2: Per-agent TTFT breakdown and speedup. Table 3: Mean TTFT speedup using Llama-3.1. (Prefix token length per agent: 512; Output token (#Agents = 3) length: 512; Model: Llama-3.1; #Agents = 5) In_len (Prefix sequence) Out_len TTFT (ms) Agent 1 Agent 2 Agent 3 Agent 4 Agent 5 64 128 256 512 1024 Original 125.8 192.4 258.3 330.9 428.6 128 2.24x 2.31x 2.56x 3.07x 4.45x KVC OMM 5.5 7.7 10.2 13.5 17.5 1st Token Decode 21.4 21.2 21.2 21.3 21.1 256 2.50x 2.51x 2.83x 3.44x 4.75x Others 86.6 9.1 10.7 13.5 16.2 512 3.05x 3.18x 3.49x 4.09x 5.34x Speedup 1.11x 5.06x 6.14x 6.85x 7.82x 1024 4.40x 4.48x 4.75x 5.35x 6.72x Comparison Baselines. To our knowledge, KVC OMM is the first method enabling comprehensive KV-cache sharing tailored for open-source multi-agent frameworks. Hence, we compare primarily against CacheBlend [58], which selectively recomputes sensitive tokens’ caches for partial reuse. Given CacheBlend’s tight integration with vLLM [21], we faithfully replicate its selective recomputa- tion strategy within our experimental setup, consistently recomputing the top-20% tokens exhibiting the largest KV deviations, ensuring fair baseline alignment. Evaluation Metrics. We report Accuracy scores on MMLU and GSM8K, and Pass@1 for coding tasks. Efficiency metrics include Reuse Rate (meaning the proportion of agents employing the cache reuse scheme), individual agent Time-To-First-Token (TTFT), and average TTFT across agents. Implementation Details. Experiments are executed on a single NVIDIA H100 GPU. The maximum generation length is uniformly set to 512 tokens, with hyperparameters selected as γ = 0.3 and anchor pool size V = 20. Further implementation specifics are detailed in Appendix 6.3. 4.2 Main Results Table 1 compares our KVC OMM approach with the Original (no cache reuse) and CacheBlend [58] strategies across multiple agent configurations. Although our agent prompts were initially opti- mized for closed-source models, causing some performance drops with open-source deployments, KVC OMM still maintains or improves upon baseline accuracy. On MMLU, KVC OMM achieves competitive accuracy (64.7%–69.9%), consistently outperforming or matching CacheBlend and closely tracking the original baseline. This indicates robust cross-context KV-cache alignment by KVC OMM, CacheBlend fluctuates significantly with increasing agents. The reason why the baseline method performs poorly on the MMLU benchmark under the two-agent setting is that the first agent is designed as the knowledgeable expert to produce the related key words about the user question, and the second agent is designed as the Final Refer to analyze the predecessor agents’ output and give the answer based on the previous agent’s output, where the failure cases mainly occur when the second agent only output the answer without analysis. The prompt of each agent can be found in Appendix 6.3.2. For GSM8K math reasoning, KVC OMM’s accuracy remains stable, only declining by 1.9% (81.5%→79.6%) from two to five agents, maintaining within ±2% of the original baseline. In contrast, CacheBlend’s accuracy drops dramatically from 82.0% to 57.1%, highlighting the necessity for precise KV-cache reuse in numerical tasks. In the HumanEval coding benchmark, KVC OMM delivers stable Pass@1 scores (81.4%–83.2%), significantly surpassing CacheBlend by an average margin of 53%. This underscores KVC OMM’s ability to preserve task-critical dependencies essential for programming tasks. The severe performance degradation of CacheBlend on Humaneval attributes to the diverse syntax separators involved in the generation process (e.g., ., ;, !), which induce diverse and prefix-sensitive KV-cache distributions. Reuse Rate. Unlike CacheBlend’s fixed reuse strategy (80%), KVC OMM adaptively determines KV-cache reuse, consistently achieving high reuse rates (70%–87.6%). This rate naturally declines as agent number increases due to more diverse contexts, but KVC OMM still effectively identifies shareable caches, confirming that adaptive reuse avoids context degradation. 4.3 Results of TTFT Speedup1 Table 2 reports TTFT per agent receiving 1K tokens from user input with 512 prefix tokens and sharing the 512 response tokens with succeeding agents. The first agent, lacking upstream caches 1 In the original submission, the TTFT calculation for KVC OMM omitted the first token’s decoding latency. The final version rectifies this. 9
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
代码从哪里读
已核验作者代码仓库可以访问。先从项目说明核对版本、运行环境与输入格式,再决定是否复现。本次未安装、运行作者代码,也没有验证复现成功。
读完后记住这三件事
共享的是内部KV缓存而非普通摘要;复用需校正上下文并允许回退;首token速度与端到端质量要分开看。 (原文:PDF p.4, Figure 3;PDF p.5, Section 3.1 workflow;PDF p.8, Table 1; Section 4.1;PDF p.9, Table 2;PDF p.8, Table 1;PDF p.9, Implementation Details; TTFT correction footnote)
指标:语言模型读取输入时生成键和值缓存,后续生成不断读取这些中间结果。多个角色看相同资料仍可能重复算一遍,但不同角色提示会改变缓存。本文把提示拆为固定前缀和运行时填入的文本,尝试复用共享部分,而不是删掉交流消息。
条件:本地全文 arXiv:2510.12872v2,Figure 3;条件及比较对象见陈述
PDF p.4, Figure 3 · PDF p.4
Agent 1 KV-cache Communication Module Prefix KV Anchor Matching Offset Approximation Anchor Prediction Pool Pool Each Anchor Unmatched Matched Placeholder KV All placeholders ? Query Hit w1 (1) (2) w2 { No Yes Cache Update Pool Pool = + w1 OR AND Dense Length Uncover Length Covered PH Prefilling + w2 PF = + w1 Decoding Response Cache + w2 [PH, PF] Response Anchor Prediction of Response KV Agent 2 Agent 3 You are a math expert. You will be given a math problem ...Q: Legend Answers from other agents are: Queried (external input) Prefix KV Prefix KV Agent 2 as a mathematical analyst: , Placeholder the execution result is . Queried (response) Placeholder Placeholder KV Placeholder KV Example KV Anchor of the Estimated KV of the i-th (external input) Placeholder Placeholder of Agent m Anchor Hit Range All placeholders ? All placeholders ? Estimated KV of the i-th (response) Placeholder of Agent m Add as a New Anchor (N) Dense (Y) Sharing (Y) Sharing (N) Dense Estimated KV of the i-th Prefix Reuse Segment of Agent m Sharable placeholder Figure 3: Overview of the KVC OMM framework in a three-agent scenario. Initially, each agent precomputes and stores the KV-cache of prefix segments from its prompt template for future reuse. At runtime, upon receiving a new request, agents check placeholder shareability and query matched anchors. Matched anchors help approximate KV-cache offsets for placeholders and subsequent prefixes through embedding-based interpolation. The matching criteria consider length compatibility and embedding proximity. The updated KV-caches are concatenated for efficient decoding. After decoding, the KV-cache Communication module assesses newly generated caches for potential sharing with other agents based on the established matching rules. stacks [21, 68, 5] expose the same constraint that architectural identity is a prerequisite for cache reuse. Existing methods on KV-cache acceleration primarily explore four paradigms. (1) Prompt-Level Reuse [10]. PromptCache [10] introduces Prompt Markup Language to explicitly define reusable text segments whose KV-caches are precomputed offline and directly fetched at inference, eliminating recomputation but restricted to fixed prompt structures. (2) Selective Recomputation [58, 27, 56]. CacheBlend [58] dynamically identifies and updates tokens exhibiting high variance in KV-caches. DroidSpeak [27] leverages profiling to identify critical attention layers whose KV-caches must be refreshed to maintain accuracy. KVLink [56] further extends it by fine-tuning special tokens and adjusting positional embeddings, enabling KV reuse across multiple document contexts. (3) Cache Compression [28]. CacheGen [28] compresses KV-caches into adaptive bit-streams based on available bandwidth; however, the entire token sequence still undergoes compression computations, limiting latency improvements. (4) Kernel-Level Optimizations [67, 46]. PrePacking [67] employs a bin-packing strategy to batch variable-length prompts into unified sequences. LoongServe [46] designs Elastic Sequence Parallelism to dynamically manage parallelism strategies and overlap cache migration with decoding steps to enhance GPU utilization. Figure 2 compares the main difference between KVC OMM and existing KV-cache sharing methods. Generally, KVC OMM explores a completely novel paradigm that can reuse all shareable KV-caches regardless of diverse prefix contexts, and align them by leveraging the context-aware cache offsets observed in previous samples. 3 Proposed Approach 3.1 Preliminaries Large Language Models and KV-cache. Let x = [h1 , . . . , hL ] denote a list of token embedding sequences, with hl ∈ RN ×D representing the input token embedding of the l-th transformer layer, where N is the number of tokens and D is the feature dimension. For hln (where n = 1, 2, . . . , N ), it is projected by the l-th transformer layer to Query, Key, and Value vectors for the subsequent attention computation using: qln = Rn WQl hln , kln = Rn WK l l hn , vnl = WVl hln , where qln , kln , vnl ∈ d l l R denotes the Q, K, V values for the n-th input token, WQ , WK , WVl refer to the corresponding projection weight matrices, and Rn is the position embedding at position n, such as rotary position embedding (RoPE) [37]. During autoregressive decoding, the model repeatedly attends to all past positions, and stores every (kln , vnl ) pair in GPU memory, known as KV-cache. Therefore, prefilling a prompt of N tokens costs O(N 2 d) multiply-adds per layer, dominating inference latency for long contexts. Since RoPE applies the fixed rotation matrix to both Key and Query at each position, cached 4
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
指标:系统保存参照样本及其缓存偏移,收到新文本后按长度和嵌入相似性匹配参照,先对齐位置旋转,再插值估计新上下文下的键和值偏移。匹配不合适就做正常预填充并更新参照池。这里要求智能体使用同一模型检查点及兼容位置编码,不是任意闭源接口之间传隐藏状态。
条件:本地全文 arXiv:2510.12872v2,Section 3.1 workflow;条件及比较对象见陈述
PDF p.5, Section 3.1 workflow · PDF p.5
keys remain valid across subsequent steps with no further arithmetic modification, making KV-cache reuse the primary source of speed-ups in subsequent prefilling and decoding. Directed-Graph Multi-agent Systems. Following [57, 69, 65], we model a multi-agent system as a directed graph G = (M, E) whose nodes m ∈ M are agents and edges e = (ms → mt ) ∈ E denote one-way message passing from the ms -th agent to the mt -th agent. At interaction step t, the (t) m-th agent composes an input prompt sm in the template consisting of (i) fixed prefix segments shared across all turns, and (ii) placeholder segments filled at runtime with user queries, tool results, or upstream agent outputs, as formulated as follows, where p(m,0) is usually a role-specific system (t) prompt, p(m,i) is the subsequent prefix segment of the i-th placeholder ϕ(m,i) . (t) (t) (t) (t) sm = p(m,0) , ϕ(m,1) , p(m,1) , ϕ(m,2) , p(m,2) , . . . , ϕ(m,i) , p(m,i) . (1) Our work targets a distinct yet practical setting: a directed multi-agent graph in which each node is an identical RoPE-based LLM checkpoint instantiated with a role-specific system template. Since agents differ in the length of both prefixes and incoming messages, none of the existing static policies can predict the correct positional and contextual shifts; misalignment either forces full recomputation or yields steep accuracy loss. We therefore develop a training-free, prompt-adaptive cache-sharing mechanism, termed KVC OMM, which estimates the true offset on the fly and maintains an online anchor pool to accommodate rapidly changing interaction patterns, reducing prefilling latency without sacrificing task performance. The overall workload of KVC OMM is illustrated in Figure 3, which proceeds as follows. 0. Initialization Before any user requests, all agents precompute and store the KV-caches for all prefix segments defined in their prompt templates. 1. Placeholder Readiness When a request arrives, each agent checks whether all placeholders’ base KV-caches are available. Missing bases are precomputed in parallel. Newly generated placeholder KV-caches are then sent to the anchor prediction module to search the anchor pool for similar samples and enable reuse. 2. Reuse or Fallback Once all placeholder KV-caches are ready, the agent determines whether reusable KV-cache deviations exist for each placeholder. If none are found, standard dense pre- filling is used. For placeholders without reusable deviations, the agent computes the difference between their actual and base KV-caches and stores this deviation in the anchor pool to expand anchor coverage. 3. Offset Approximation If all placeholders have reusable deviations, the agent fetches the matched anchors, estimates the KV-cache deviations via Eq. (6) and Eq. (7), and updates the placeholder and prefix KV-caches in parallel. 4. Decoding The agent concatenates the updated placeholder and prefix KV-caches and initiates response decoding. 5. Anchor Update After decoding, the produced KV-cache is passed through the anchor prediction module. If a similar anchor exists, the cache is stored in shared memory for future retrieval. The agent then waits for the next request. 6. Fallback Storage If no similar anchor exists, the response KV-cache is stored in the anchor pool so dependent agents can subsequently fill in deviations under their respective contexts; the agent then awaits the next request. All inter-agent interactions occur through the KV-cache Communication Module. When multiple agents share the same user text but use different agent-specific prefixes, we avoid re-running prefilling by treating the KV-cache of the shared text under a new prefix as a context-dependent offset from its base KV-cache. We estimate this offset by interpolating from a small set of anchor examples, aligning Key positions via RoPE de-rotation/re-rotation, adding the estimated Key/Value offsets, then concatenating the adjusted segments and decoding. Positional Alignment is Indispensable. Before analyzing two arbitrary tokens’ cache correlation, we should first solve the position mismatch induced by RoPE. If a token is at position n in one prompt but at n + ∆ in another, the raw keys differ by an orthogonal rotation R∆ , whose difference can be orders of magnitude larger than the contextual deviation we care about, as demonstrated in Figure 1b. Hence, KVC OMM always de-rotates the stored key by R−∆ before measuring similarity between 5
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
指标:实验使用可访问内部状态的开源模型,在知识问答、数学和代码任务中比较不复用、CacheBlend式选择重算及本文方案。表注还说明两种方法的Reuse Rate分母不同:一种是复用token比例,另一种是智能体整段复用发生频率,不能直接用该百分比判断谁更省。
条件:本地全文 arXiv:2510.12872v2,Table 1; Section 4.1;条件及比较对象见陈述
PDF p.8, Table 1; Section 4.1 · PDF p.8
Table 1: Performance of three cache-management strategies under different numbers of collaborating agents. Accuracy is reported for MMLU and GSM8K (Llama-3.1-8B-Instruct); Pass@1 is reported for HumanEval (Qwen-2.5-coder-7B). Higher is better. In addition, the Reuse Rate is reported for both KVC OMM and CacheBlend. Note that the Reuse Rate for CacheBlend is defined as the proportion of tokens reusing KV-caches in whole token sequences, while the Reuse Rate of KVC OMM is defined as the frequency of agents reusing all KV-caches in the whole serving procedure. # Agents Dataset Metric Method 2 3 4 5 Original 47.1 66.7 68.0 69.9 Accuracy (%) CacheBlend 65.4 65.4 65.4 67.3 MMLU KVC OMM 64.7 68.6 68.0 69.9 Original 0 0 0 0 Reuse Rate (%) CacheBlend 80 80 80 80 KVC OMM 74.5 69.9 70.1 67.6 Original 81.1 82.4 82.1 81.7 Accuracy (%) CacheBlend 82.0 75.1 65.1 57.1 GSM8K KVC OMM 81.5 81.7 80.6 79.6 Original 0 0 0 0 Reuse Rate (%) CacheBlend 80 80 80 80 KVC OMM 79.6 77.0 73.4 71.0 Original 86.3 83.9 84.5 85.1 Pass@1 (%) CacheBlend 31.1 21.1 30.4 32.9 HumanEval KVC OMM 81.4 83.2 83.2 83.2 Original 0 0 0 0 Reuse Rate (%) CacheBlend 80 80 80 80 KVC OMM 87.6 84.7 81.1 77.8 sample’s embedding proximity. Formally, the KV-cache of the i-th placeholder in the m-th agent is approximated as follows: P ϕ (k̂/v̂)ϕ(m,i) = (k/v)ϕ(m,i) + ψ∈Aϕ(m,i) wϕ(m,i) →ψ · ∆(k/v)(m,ψ) , (6) where (k̂/v̂)ϕ(m,i) refers to the approximated K/V cache for the placeholder ϕ(m,i) . (k/v)ϕ(m,i) is the base K/V cache for the placeholder ϕ(m,i) . wϕ(m,i) →ψ is the softmax mapping of −∥hϕ(m,i) − hψ ∥ across the anchor dimension. ∆(k/v)ϕ(m,ψ) is the placeholder ϕ’s cache offsets in the m-th agent for the anchor ψ. Prefix segment updates follow an analogous process: wϕ(m,i) →ψ · ∆(k/v)p P (k̂/v̂)p(m,i) = (k/v)p(m,i) + ψ∈Aϕ (m,ψ) , (7) (m,i) where (k̂/v̂)p(m,i) refers to the approximated K/V cache for the prefix segment p(m,i) . (k/v)p(m,i) is the base K/V cache for the prefix segment p(m,i) . ∆(k/v)p (m,ψ) is the corresponding prefix segment’s cache offset in the m-th agent for the anchor ψ. After approximation, updated caches are concatenated and directly fed into decoding, substantially reducing prefilling latency via parallel processing. The overall algorithm is listed in Appendix 6.2.5. 4 Experiments 4.1 Experimental Setup Multi-agent System. Following GPTSwarm [69] and AgentPrune [65], we construct a fully- connected multi-agent system with established techniques including few-shot prompting [2], chain- of-thought [45], function calling [33], and structured outputs [34]. To precisely analyze KV-cache behaviors, we deploy open-source models using HuggingFace’s framework rather than closed-source APIs used by AgentPrune. Specifically, we employ Llama-3.1-8B-Instruct [11] (Llama-3.1) for retrieval-augmented generation (RAG) and math reasoning, and Qwen-Coder-2.5-7B-Instruct [16] for programming tasks. We evaluate performance across scenarios ranging from two to five agents. Benchmark Datasets. We assess RAG performance using MMLU [13], math reasoning with GSM8K [7], and programming capability via HumanEval [4]. 8
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
指标:给定长度配置下,第五个智能体不复用的TTFT为428.6毫秒;本文缓存处理17.5、首token解码21.1、其他开销16.2毫秒,表内总加速7.82倍。首个智能体只有1.11倍。不能只拿17.5与428.6相比,也不能将后续单智能体的首token加速叫整套任务端到端加速。
条件:本地全文 arXiv:2510.12872v2,Table 2;条件及比较对象见陈述
PDF p.9, Table 2 · PDF p.9
Table 2: Per-agent TTFT breakdown and speedup. Table 3: Mean TTFT speedup using Llama-3.1. (Prefix token length per agent: 512; Output token (#Agents = 3) length: 512; Model: Llama-3.1; #Agents = 5) In_len (Prefix sequence) Out_len TTFT (ms) Agent 1 Agent 2 Agent 3 Agent 4 Agent 5 64 128 256 512 1024 Original 125.8 192.4 258.3 330.9 428.6 128 2.24x 2.31x 2.56x 3.07x 4.45x KVC OMM 5.5 7.7 10.2 13.5 17.5 1st Token Decode 21.4 21.2 21.2 21.3 21.1 256 2.50x 2.51x 2.83x 3.44x 4.75x Others 86.6 9.1 10.7 13.5 16.2 512 3.05x 3.18x 3.49x 4.09x 5.34x Speedup 1.11x 5.06x 6.14x 6.85x 7.82x 1024 4.40x 4.48x 4.75x 5.35x 6.72x Comparison Baselines. To our knowledge, KVC OMM is the first method enabling comprehensive KV-cache sharing tailored for open-source multi-agent frameworks. Hence, we compare primarily against CacheBlend [58], which selectively recomputes sensitive tokens’ caches for partial reuse. Given CacheBlend’s tight integration with vLLM [21], we faithfully replicate its selective recomputa- tion strategy within our experimental setup, consistently recomputing the top-20% tokens exhibiting the largest KV deviations, ensuring fair baseline alignment. Evaluation Metrics. We report Accuracy scores on MMLU and GSM8K, and Pass@1 for coding tasks. Efficiency metrics include Reuse Rate (meaning the proportion of agents employing the cache reuse scheme), individual agent Time-To-First-Token (TTFT), and average TTFT across agents. Implementation Details. Experiments are executed on a single NVIDIA H100 GPU. The maximum generation length is uniformly set to 512 tokens, with hyperparameters selected as γ = 0.3 and anchor pool size V = 20. Further implementation specifics are detailed in Appendix 6.3. 4.2 Main Results Table 1 compares our KVC OMM approach with the Original (no cache reuse) and CacheBlend [58] strategies across multiple agent configurations. Although our agent prompts were initially opti- mized for closed-source models, causing some performance drops with open-source deployments, KVC OMM still maintains or improves upon baseline accuracy. On MMLU, KVC OMM achieves competitive accuracy (64.7%–69.9%), consistently outperforming or matching CacheBlend and closely tracking the original baseline. This indicates robust cross-context KV-cache alignment by KVC OMM, CacheBlend fluctuates significantly with increasing agents. The reason why the baseline method performs poorly on the MMLU benchmark under the two-agent setting is that the first agent is designed as the knowledgeable expert to produce the related key words about the user question, and the second agent is designed as the Final Refer to analyze the predecessor agents’ output and give the answer based on the previous agent’s output, where the failure cases mainly occur when the second agent only output the answer without analysis. The prompt of each agent can be found in Appendix 6.3.2. For GSM8K math reasoning, KVC OMM’s accuracy remains stable, only declining by 1.9% (81.5%→79.6%) from two to five agents, maintaining within ±2% of the original baseline. In contrast, CacheBlend’s accuracy drops dramatically from 82.0% to 57.1%, highlighting the necessity for precise KV-cache reuse in numerical tasks. In the HumanEval coding benchmark, KVC OMM delivers stable Pass@1 scores (81.4%–83.2%), significantly surpassing CacheBlend by an average margin of 53%. This underscores KVC OMM’s ability to preserve task-critical dependencies essential for programming tasks. The severe performance degradation of CacheBlend on Humaneval attributes to the diverse syntax separators involved in the generation process (e.g., ., ;, !), which induce diverse and prefix-sensitive KV-cache distributions. Reuse Rate. Unlike CacheBlend’s fixed reuse strategy (80%), KVC OMM adaptively determines KV-cache reuse, consistently achieving high reuse rates (70%–87.6%). This rate naturally declines as agent number increases due to more diverse contexts, but KVC OMM still effectively identifies shareable caches, confirming that adaptive reuse avoids context degradation. 4.3 Results of TTFT Speedup1 Table 2 reports TTFT per agent receiving 1K tokens from user input with 512 prefix tokens and sharing the 512 response tokens with succeeding agents. The first agent, lacking upstream caches 1 In the original submission, the TTFT calculation for KVC OMM omitted the first token’s decoding latency. The final version rectifies this. 9
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
指标:HumanEval双智能体设置中,原始Pass@1为86.3,KVCOMM为81.4;五智能体的GSM8K准确率原始81.7、本文79.6。它较某些近似缓存基线保留更多质量,但“基本保留”不是数学意义的无损。效率与任务质量应一起看。
条件:本地全文 arXiv:2510.12872v2,Table 1;条件及比较对象见陈述
PDF p.8, Table 1 · PDF p.8
Table 1: Performance of three cache-management strategies under different numbers of collaborating agents. Accuracy is reported for MMLU and GSM8K (Llama-3.1-8B-Instruct); Pass@1 is reported for HumanEval (Qwen-2.5-coder-7B). Higher is better. In addition, the Reuse Rate is reported for both KVC OMM and CacheBlend. Note that the Reuse Rate for CacheBlend is defined as the proportion of tokens reusing KV-caches in whole token sequences, while the Reuse Rate of KVC OMM is defined as the frequency of agents reusing all KV-caches in the whole serving procedure. # Agents Dataset Metric Method 2 3 4 5 Original 47.1 66.7 68.0 69.9 Accuracy (%) CacheBlend 65.4 65.4 65.4 67.3 MMLU KVC OMM 64.7 68.6 68.0 69.9 Original 0 0 0 0 Reuse Rate (%) CacheBlend 80 80 80 80 KVC OMM 74.5 69.9 70.1 67.6 Original 81.1 82.4 82.1 81.7 Accuracy (%) CacheBlend 82.0 75.1 65.1 57.1 GSM8K KVC OMM 81.5 81.7 80.6 79.6 Original 0 0 0 0 Reuse Rate (%) CacheBlend 80 80 80 80 KVC OMM 79.6 77.0 73.4 71.0 Original 86.3 83.9 84.5 85.1 Pass@1 (%) CacheBlend 31.1 21.1 30.4 32.9 HumanEval KVC OMM 81.4 83.2 83.2 83.2 Original 0 0 0 0 Reuse Rate (%) CacheBlend 80 80 80 80 KVC OMM 87.6 84.7 81.1 77.8 sample’s embedding proximity. Formally, the KV-cache of the i-th placeholder in the m-th agent is approximated as follows: P ϕ (k̂/v̂)ϕ(m,i) = (k/v)ϕ(m,i) + ψ∈Aϕ(m,i) wϕ(m,i) →ψ · ∆(k/v)(m,ψ) , (6) where (k̂/v̂)ϕ(m,i) refers to the approximated K/V cache for the placeholder ϕ(m,i) . (k/v)ϕ(m,i) is the base K/V cache for the placeholder ϕ(m,i) . wϕ(m,i) →ψ is the softmax mapping of −∥hϕ(m,i) − hψ ∥ across the anchor dimension. ∆(k/v)ϕ(m,ψ) is the placeholder ϕ’s cache offsets in the m-th agent for the anchor ψ. Prefix segment updates follow an analogous process: wϕ(m,i) →ψ · ∆(k/v)p P (k̂/v̂)p(m,i) = (k/v)p(m,i) + ψ∈Aϕ (m,ψ) , (7) (m,i) where (k̂/v̂)p(m,i) refers to the approximated K/V cache for the prefix segment p(m,i) . (k/v)p(m,i) is the base K/V cache for the prefix segment p(m,i) . ∆(k/v)p (m,ψ) is the corresponding prefix segment’s cache offset in the m-th agent for the anchor ψ. After approximation, updated caches are concatenated and directly fed into decoding, substantially reducing prefilling latency via parallel processing. The overall algorithm is listed in Appendix 6.2.5. 4 Experiments 4.1 Experimental Setup Multi-agent System. Following GPTSwarm [69] and AgentPrune [65], we construct a fully- connected multi-agent system with established techniques including few-shot prompting [2], chain- of-thought [45], function calling [33], and structured outputs [34]. To precisely analyze KV-cache behaviors, we deploy open-source models using HuggingFace’s framework rather than closed-source APIs used by AgentPrune. Specifically, we employ Llama-3.1-8B-Instruct [11] (Llama-3.1) for retrieval-augmented generation (RAG) and math reasoning, and Qwen-Coder-2.5-7B-Instruct [16] for programming tasks. We evaluate performance across scenarios ranging from two to five agents. Benchmark Datasets. We assess RAG performance using MMLU [13], math reasoning with GSM8K [7], and programming capability via HumanEval [4]. 8
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。
指标:实验硬件和底座设置明确,不能直接外推到自己的API调用。作者脚注还承认原提交版漏算首token解码延迟,最终版已改正;因此本文导读绑定当前PDF表格,不混用早期更乐观的耗时数字。
条件:本地全文 arXiv:2510.12872v2,Implementation Details; TTFT correction footnote;条件及比较对象见陈述
PDF p.9, Implementation Details; TTFT correction footnote · PDF p.9
Table 2: Per-agent TTFT breakdown and speedup. Table 3: Mean TTFT speedup using Llama-3.1. (Prefix token length per agent: 512; Output token (#Agents = 3) length: 512; Model: Llama-3.1; #Agents = 5) In_len (Prefix sequence) Out_len TTFT (ms) Agent 1 Agent 2 Agent 3 Agent 4 Agent 5 64 128 256 512 1024 Original 125.8 192.4 258.3 330.9 428.6 128 2.24x 2.31x 2.56x 3.07x 4.45x KVC OMM 5.5 7.7 10.2 13.5 17.5 1st Token Decode 21.4 21.2 21.2 21.3 21.1 256 2.50x 2.51x 2.83x 3.44x 4.75x Others 86.6 9.1 10.7 13.5 16.2 512 3.05x 3.18x 3.49x 4.09x 5.34x Speedup 1.11x 5.06x 6.14x 6.85x 7.82x 1024 4.40x 4.48x 4.75x 5.35x 6.72x Comparison Baselines. To our knowledge, KVC OMM is the first method enabling comprehensive KV-cache sharing tailored for open-source multi-agent frameworks. Hence, we compare primarily against CacheBlend [58], which selectively recomputes sensitive tokens’ caches for partial reuse. Given CacheBlend’s tight integration with vLLM [21], we faithfully replicate its selective recomputa- tion strategy within our experimental setup, consistently recomputing the top-20% tokens exhibiting the largest KV deviations, ensuring fair baseline alignment. Evaluation Metrics. We report Accuracy scores on MMLU and GSM8K, and Pass@1 for coding tasks. Efficiency metrics include Reuse Rate (meaning the proportion of agents employing the cache reuse scheme), individual agent Time-To-First-Token (TTFT), and average TTFT across agents. Implementation Details. Experiments are executed on a single NVIDIA H100 GPU. The maximum generation length is uniformly set to 512 tokens, with hyperparameters selected as γ = 0.3 and anchor pool size V = 20. Further implementation specifics are detailed in Appendix 6.3. 4.2 Main Results Table 1 compares our KVC OMM approach with the Original (no cache reuse) and CacheBlend [58] strategies across multiple agent configurations. Although our agent prompts were initially opti- mized for closed-source models, causing some performance drops with open-source deployments, KVC OMM still maintains or improves upon baseline accuracy. On MMLU, KVC OMM achieves competitive accuracy (64.7%–69.9%), consistently outperforming or matching CacheBlend and closely tracking the original baseline. This indicates robust cross-context KV-cache alignment by KVC OMM, CacheBlend fluctuates significantly with increasing agents. The reason why the baseline method performs poorly on the MMLU benchmark under the two-agent setting is that the first agent is designed as the knowledgeable expert to produce the related key words about the user question, and the second agent is designed as the Final Refer to analyze the predecessor agents’ output and give the answer based on the previous agent’s output, where the failure cases mainly occur when the second agent only output the answer without analysis. The prompt of each agent can be found in Appendix 6.3.2. For GSM8K math reasoning, KVC OMM’s accuracy remains stable, only declining by 1.9% (81.5%→79.6%) from two to five agents, maintaining within ±2% of the original baseline. In contrast, CacheBlend’s accuracy drops dramatically from 82.0% to 57.1%, highlighting the necessity for precise KV-cache reuse in numerical tasks. In the HumanEval coding benchmark, KVC OMM delivers stable Pass@1 scores (81.4%–83.2%), significantly surpassing CacheBlend by an average margin of 53%. This underscores KVC OMM’s ability to preserve task-critical dependencies essential for programming tasks. The severe performance degradation of CacheBlend on Humaneval attributes to the diverse syntax separators involved in the generation process (e.g., ., ;, !), which induce diverse and prefix-sensitive KV-cache distributions. Reuse Rate. Unlike CacheBlend’s fixed reuse strategy (80%), KVC OMM adaptively determines KV-cache reuse, consistently achieving high reuse rates (70%–87.6%). This rate naturally declines as agent number increases due to more diverse contexts, but KVC OMM still effectively identifies shareable caches, confirming that adaptive reuse avoids context degradation. 4.3 Results of TTFT Speedup1 Table 2 reports TTFT per agent receiving 1K tokens from user input with 512 prefix tokens and sharing the 512 response tokens with succeeding agents. The first agent, lacking upstream caches 1 In the original submission, the TTFT calculation for KVC OMM omitted the first token’s decoding latency. The final version rectifies this. 9
解释边界:只支持段内给出的任务、指标与条件;不代表通用保证或已复现实验。