Efficient Serving for Dynamic Agent Workflows with Prediction-based KV-Cache Management
Haoyu Zheng, Jiawei Jiang, Fangcheng Fu, Binhang Yuan, Yongqiang Zhang, Hao Wang, Jia Wu, Yuanyuan Zhu, Xiao Yan
NeurIPS 2026
Abstract. LLM-based workflows compose specialized agents to execute complex tasks, and these agents usually share substantial context, allowing KV-Cache reuse to save computation. Existing approaches either manage KV-Cache at agent level and fail to exploit the reuse opportunities within workflows, or manage cache at the workflow level but assume that each workflow calls a static sequence of agents. However, practical workflows are typically dynamic, where the sequence of invoked agents and thus induced cache reuse opportunities depend on the context of each task. To serve such dynamic workflows efficiently, we build a system dubbed PBKV (\textbf{P}rediction-\textbf{B}ased \textbf{KV}-Cache Management). For each workflow, PBKV predicts the agent invocations in several future steps by fusing the guidance from historical workflows and context of the target workflow. Based on the predictions, PBKV estimates the reuse potential of cache entries and keeps the high-potential entries in GPU memory. To be robust to prediction errors, PBKV utilizes the predictions conservatively during both cache eviction and prefetching. Experiments on three workflow benchmarks show that PBKV achieves up to speedup over LRU on dynamic workflows, and up to speedup over the SOTA baseline KVFlow on the static workflow.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:47 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
Summary:
The paper tackles KV-cache management for dynamic multi-agent LLM workflows. Its central observation is that in agentic workflows cache reuse is governed by the workflow's runtime invocation structure rather than temporal locality: valuable cache can sit idle across several agent calls before being reused, so LRU evicts it prematurely, while KVFlow (the SOTA workflow-aware policy) assumes a predefined static agent step graph that breaks under runtime-dependent control flow such as retry loops and conditional branches. PBKV reframes cache management as predicting future access patterns.
Strength:
The problem is important, timely, and framed with a crisp motivation. Empirial evaluation is strong and robustness to predictor quality is demonstrated.
Weakness:
- Generalization / out-of-distribution evaluation (the central cross-reviewer concern; 65jw-W2, 9uyF-W1). The predictor is trained per-workload on offline traces, and essentially every evaluation is in-distribution — same benchmark, framework, call graph, and prompts.
- Insufficient workload characterization (4XVJ-W2). No context-length distributions, KV-cache footprints, prefix-sharing ratios, or reuse-distance statistics are reported. Insufficient workload characterization (4XVJ-W2). No context-length distributions, KV-cache footprints, prefix-sharing ratios, or reuse-distance statistics are reported.
- novelty (4XVJ-W1) and compare with related works (9uyF-W5). The predictor is assembled from standard components (graph embeddings, attention, MLP); the contribution lies in the formulation, the system design, and the guardrails. Some KV-cache / agentic-serving works are neither discussed nor compared. Note that at least two paper mentioned by 9uyF-W5 appear very recent or concurrent, so they may not be strictly required.
Position: This is a borderline-positive paper (two confident 4s, one less-confident 3) whose weaknesses are largely about evidence and scope rather than fundamental soundness. If the rebuttal can address: a) At least one generalization / OOD experiment, and how predictor-training traces are disjoint from serving-evaluation traces b) a workload-characterization table; as well as a few other comments that the reviewers raised, I would be comfortable moving to a clear accept.
Final justification
The rebuttal added two OOD experiments, one across benchmarks and one across unseen code repositories. In both, the frozen predictor keeps most of the gain and a handful of traces recovers the rest. The workload table reports context lengths, cache footprints, prefix-sharing ratios, and reuse distances, and shows that PBKV's hit rates approach the sharing upper bound on each workload. The authors also added a predictor-free variant and a noise sweep showing that the cache-management design helps even without the predictor, plus a heterogeneous multi-model result and the related-work comparison reviewers asked for. Both borderline-accept reviewers kept their scores. The reviewer at 3 did not take part in the discussion, and the concerns in that review were addressed in the rebuttal. The contribution is the system design and its guardrails; the predictor itself is built from standard components, and the paper should say so plainly, and the case where the set of agents changes should be listed as a limitation. I recommend acceptance as a poster.
Read meta-review
Meta-review
Summary:
The paper tackles KV-cache management for dynamic multi-agent LLM workflows. Its central observation is that in agentic workflows cache reuse is governed by the workflow's runtime invocation structure rather than temporal locality: valuable cache can sit idle across several agent calls before being reused, so LRU evicts it prematurely, while KVFlow (the SOTA workflow-aware policy) assumes a predefined static agent step graph that breaks under runtime-dependent control flow such as retry loops and conditional branches. PBKV reframes cache management as predicting future access patterns.
Strength:
The problem is important, timely, and framed with a crisp motivation. Empirial evaluation is strong and robustness to predictor quality is demonstrated.
Weakness:
- Generalization / out-of-distribution evaluation (the central cross-reviewer concern; 65jw-W2, 9uyF-W1). The predictor is trained per-workload on offline traces, and essentially every evaluation is in-distribution — same benchmark, framework, call graph, and prompts.
- Insufficient workload characterization (4XVJ-W2). No context-length distributions, KV-cache footprints, prefix-sharing ratios, or reuse-distance statistics are reported. Insufficient workload characterization (4XVJ-W2). No context-length distributions, KV-cache footprints, prefix-sharing ratios, or reuse-distance statistics are reported.
- novelty (4XVJ-W1) and compare with related works (9uyF-W5). The predictor is assembled from standard components (graph embeddings, attention, MLP); the contribution lies in the formulation, the system design, and the guardrails. Some KV-cache / agentic-serving works are neither discussed nor compared. Note that at least two paper mentioned by 9uyF-W5 appear very recent or concurrent, so they may not be strictly required.
Position: This is a borderline-positive paper (two confident 4s, one less-confident 3) whose weaknesses are largely about evidence and scope rather than fundamental soundness. If the rebuttal can address: a) At least one generalization / OOD experiment, and how predictor-training traces are disjoint from serving-evaluation traces b) a workload-characterization table; as well as a few other comments that the reviewers raised, I would be comfortable moving to a clear accept.
Final justification
The rebuttal added two OOD experiments, one across benchmarks and one across unseen code repositories. In both, the frozen predictor keeps most of the gain and a handful of traces recovers the rest. The workload table reports context lengths, cache footprints, prefix-sharing ratios, and reuse distances, and shows that PBKV's hit rates approach the sharing upper bound on each workload. The authors also added a predictor-free variant and a noise sweep showing that the cache-management design helps even without the predictor, plus a heterogeneous multi-model result and the related-work comparison reviewers asked for. Both borderline-accept reviewers kept their scores. The reviewer at 3 did not take part in the discussion, and the concerns in that review were addressed in the rebuttal. The contribution is the system design and its guardrails; the predictor itself is built from standard components, and the paper should say so plainly, and the case where the set of agents changes should be listed as a limitation. I recommend acceptance as a poster.
1 comment
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 4/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper presents PBKV, a prediction-based KV cache management system for dynamic LLM agent workflows. The key insight is that future agent invocations can be predicted from workflow history, agent transition patterns, and task semantics. PBKV leverages these predictions to guide KV cache eviction and prefetching decisions, retaining caches with high future reuse potential while proactively loading likely-to-be-used caches. Evaluations on several agent workflow benchmarks show that PBKV improves serving performance over existing cache management approaches, particularly in dynamic workflow settings.
Strengths and weaknesses
Strengths
- The paper is generally well written and easy to follow.
- The paper addresses dynamic multi-agent workflows, which are becoming increasingly important in modern LLM applications. Improving serving efficiency for such workloads is a timely and practically relevant problem.
- The proposed system demonstrates consistent performance improvements across multiple benchmarks and baselines.
Weaknesses
- The technical novelty appears somewhat incremental relative to prior workflow-aware KV cache management systems. Conceptually, PBKV extends existing cache management frameworks by incorporating a learned predictor to estimate future agent invocations and using these predictions to guide eviction and prefetch decisions. While the integration is well executed, the predictor itself is built on fairly standard components (e.g., graph embeddings, attention, and MLPs).
- The workload characterization is insufficient. The paper does not adequately report important statistics such as context lengths, KV cache footprints, prefix-sharing ratios, or reuse patterns. As a result, it is difficult to understand under which workload characteristics PBKV achieves its gains and how representative the evaluated settings are of real-world agent workloads.
Questions
- Could the authors provide a more detailed characterization of the evaluated workloads, including statistics such as context length distributions? This would help readers understand under which workload characteristics PBKV achieves the largest gains and assess how representative the evaluated benchmarks are of real-world agent-serving deployments.
- PBKV relies on the predictability of future agent invocations. How well does this assumption hold for modern coding agents (e.g., Claude Code-like systems) that dynamically spawn sub-agents and make decisions based on intermediate execution results? It would be valuable to discuss the applicability of PBKV in such settings.
Limitations
Yes
Final justification
The rebuttal addressed my main concerns by providing more detailed workload characterization and clarifying the potential applicability of PBKV to dynamic coding agents. Some uncertainty remains for fully dynamic workflows and the novelty, but overall the response increased my confidence in the paper, and I maintain my borderline accept recommendation.
Formatting concerns
No
3 comments
Rebuttal
Thank you for your recognition of our work and your constructive comments! We address your questions below.
Experimental Settings: unless otherwise specified, all configurations follow the manuscript.
Q1&W2. Workload Characterization.
We provide the workload characterization here.
In the manuscript, we evaluate two dynamic multi-agent workflow settings (HoVer+LangChain and SWE-bench+AutoGen) and one static setting (FinanceBench+CrewAI). The corresponding workload characterizations are summarized below.
Table R1. Workload characterization of the evaluated multi-agent workflows.
| Metric | HoVer Avg | HoVer P50 | HoVer P90 | SWE Avg | SWE P50 | SWE P90 | Finance Avg | Finance P50 | Finance P90 |
|---|---|---|---|---|---|---|---|---|---|
| Input context length / invocation (tok)¹ | 1,780.14 | 1,527 | 2,467 | 3,966.08 | 3,519 | 6,840 | 2,167.12 | 1,986 | 3,641 |
| Sequential KV footprint / workflow (GiB)² | 0.546 | 0.506 | 0.627 | 1.186 | 1.103 | 1.997 | 0.687 | 0.627 | 1.044 |
| Sequential prefix-sharing ratio (%)³ | 78.57 | 80.03 | 83.57 | 86.56 | 83.79 | 91.85 | 65.82 | 65.60 | 69.69 |
| Reuse distance (tok)⁴ | 25,204.28 | 7,040 | 48,803 | 40,136.39 | 31,136 | 98,460 | 18,519.16 | 5,901 | 67,222 |
| ↳ Reuse distance (GiB)⁵ | 6.15 | 1.72 | 11.91 | 9.80 | 7.60 | 24.04 | 4.52 | 1.44 | 16.41 |
Metric definitions.
¹ Input tokens per agent invocation, including system prompt, task input, and workflow history.
² Computed from per-workflow input and output sequence length at approximately 0.25 MiB/token for Qwen3-32B; practical factors such as page padding and fragmentation are excluded.
³ Computed from the token-sequence overlap between consecutive invocations. It ignores practical serving effects and therefore serves only as an approximate upper bound of average cache hit rate.
⁴ Reuse distance between two consecutive accesses to the same cache node, measured on the global access stream, thus it includes accesses from concurrent workflows.
⁵ Computed from ⁴, using ≈0.25 MiB/token of Qwen3-32B.
Observation. (i) On Qwen3-32B, PBKV achieves average hit rates of 69.10%, 79.94%, and 53.44%, approaching the corresponding sequential prefix-sharing ratios³, suggesting effective cache management. (ii) Reuse distances are long because concurrent workflows continue to generate KV Cache between accesses. Consequently, under limited capacity, LRU may evict reusable entries before reuse, supporting our motivation.
When PBKV Benefits. Across workloads, higher prefix-sharing ratios correspond to higher cache hit rates under PBKV. In addition, as shown in Figs. 5a and 6 of the manuscript, (i) PBKV’s advantage grows when concurrency pressure causes frequent evictions, and (ii) its gains arise primarily during steady-state serving rather than the warm-up or tail phases (detailed in §6.3 & §6.4).
Regarding the question "how representative the evaluated benchmarks are of real-world agent-serving deployments", we will explain in our response to Q2.
W1. Technical Novelty.
(1) We would like to clarify that PBKV’s novelty lies in prediction-robust cache management design, rather than in proposing a new GNN primitive.
PBKV targets KV-cache reuse in realistic dynamic multi-agent workflows, where future agent invocations must be predicted. The question we focus on is "how to robustly translate inherently imperfect predictions into effective cache-management decisions".
At the predictor level, our contribution is to identify two cache-specific design guidelines: (i) complementary signal fusion, which combines the cross-workflow agent transition patterns with per-request semantics; (ii) multi-step horizon, which prevents myopic eviction. The proposed GraphSAGE-based predictor serves as a lightweight instantiation. The deliberately pluggable design of the predictor enables PBKV to benefit from stronger future predictors.
At the cache-management level, our contributions include: (i) Lifecycle-Aware KV-Cache Eviction (guided by the observation that the private cache of a terminated workflow has negligible reuse potential); (ii) Hierarchical Eviction (guided by the principle that embedding deterministic guardrails within a probabilistic system); (iii) Conservative Prefetching (because its cost is deterministic whereas its benefit is speculative). These guardrails, rather than the use of a particular GNN, are central to enabling PBKV to benefit even from imperfect predictions without allowing errors to backfire. (iv) In addition, we formalize the cache eviction problem for dynamic multi-agent workflows and theoretically analyze the robustness of PBKV accordingly.
(2) We would also like to clarify how PBKV differs from ‘KVFlow with a predictor’.
(i) Qualitatively, KVFlow’s challenge is not missing predictive information, but is that the Agent Step Graph (a DAG) it relies on cannot be defined for structures such as retry loops. PBKV requires no such predefined DAG and employs cache-management mechanisms distinct from KVFlow’s Belady-style policy.
(ii) Empirically, PBKV overperforms KVFlow with oracle future information. Even in the static setting where KVFlow’s assumption holds, PBKV improves the cache hit rate from 39.87% to 53.44% and reduces latency from 101.57 s to 80.53 s. Moreover, under HoVer+LangChain workload, the predictor-free PBKV-LAE alone raises the cache hit rate from 27.09% under LRU to 44.91%. Together, these results suggest that PBKV’s gains come not only from prediction but also from its distinct cache-management mechanisms.
Thank you for this valuable comment. These clarifications can help us better clarify PBKV’s contribution boundary and positioning, and we will incorporate them into the revision.
Q2. PBKV for dynamic runtime-dependent Code Agents.
This is precisely the regime PBKV targets.
Given that prediction errors are inevitable in runtime-dependent coding workflows, PBKV continually refreshes its predictions instead of assuming a statically known global execution graph, and employs robust KV-cache management policies explicitly designed to tolerate prediction errors.
Although we cannot evaluate PBKV and the predictor inside Claude Code’s proprietary serving backend, available evidence suggests exploitable predictive signal. Claude Code’s official documentation describes a recurring “gather context → take action → verify results” loop (see “How Claude Code Works” of Claude’s docs). Such recurring short-horizon patterns can be captured and exploited by PBKV’s K-step predictor. Moreover, TraceLab [1] analyzes 4,265 real-world Claude Code and Codex sessions and reports that 81% of append tokens are re-prefill following cache misses, demonstrating substantial room for improvement.
Empirically, we refer to a similar coding workload evaluated in our manuscript: SWE-bench+AutoGen, which also contains dynamic retry paths triggered by intermediate test results at runtime. PBKV achieves and speedups over LRU on Qwen3-32B and Qwen3-14B, respectively. These results suggest PBKV’s benefits in runtime-dependent coding workload.
[1] Zhu et al., "TraceLab: Characterizing Coding Agent Workloads for LLM Serving" arXiv:2606.30560.
We will incorporate the above results and analyses in the revision. Thank you for your thoughtful feedback!
Thank you for your detailed response. I keep my positive assessment.
Thank you for your positive feedback and constructive comments!
- Rating
- 3/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 2/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies KV-cache management for dynamic multi-agent workflows. The key challenge is that practical workflows do not follow a fixed agent sequence, so cache reuse depends on runtime-dependent agent invocations. The paper proposes PBKV, which predicts future agent calls using historical workflow traces and the current workflow context, then uses these predictions to estimate cache reuse value. PBKV keeps high-value cache entries in GPU memory and applies prediction conservatively for eviction and prefetching to reduce the cost of prediction errors. Experiments on three workflow benchmarks show speedups over LRU on dynamic workflows and over KVFlow on a static workflow.
Strengths and weaknesses
Strengths
- The paper is well written and easy to follow.
- The proposed system is simple and intuitive, with clear design choices for prediction-based eviction and conservative prefetching.
- The paper studies an important problem in efficient serving for dynamic agentic workflows.
Weaknesses
- The predictor is trained on offline invocation traces from the same workload. This may limit its generalization to new task distributions. More OOD evaluations would make the claim stronger.
- The experiments seem to assume a homogeneous setup where all agents use the same base model. In practice, different agents may use different models, or serving backends, where KV cache cannot be directly shared. It is unclear how much benefit PBKV would retain in such heterogeneous multi-agent systems.
- The prediction target is somewhat coarse for KV-cache management. PBKV predicts future agent-level calls, while actual cache hits depend on token-level prefix overlap. The same agent may receive very different retry messages, code contexts, or tool outputs, so a future invocation of that agent does not necessarily imply reuse of all cache nodes previously accessed by it. This may make the reuse score less reliable for deeper or more context-specific cache nodes.
- The theoretical analysis provides only limited support for the main claims. It shows that the proposed eviction score is stable under prediction error, but this score is still a proxy for the actual serving objective, so the result does not directly guarantee robustness in end-to-end latency. 5.Closely related work, such [1, 2, 3] are not discussed or compared.
[1] Wu, Fangzhou, Sandeep Silwal, and Qiuyi (Richard) Zhang. "Randomization Boosts KV Caching, Learning Balances Query Load: A Joint Perspective." ICLR 2026.
[2] Wang, Jiahao, et al. "{KVCache} Cache in the Wild: Characterizing and Optimizing {KVCache} Cache at a Large Cloud Provider." 2025 USENIX Annual Technical Conference (USENIX ATC 25). 2025.
[3] Wadlom, Noppanat, Junyi Shen, and Yao Lu. "Efficient LLM serving for agentic workflows: A data systems perspective." Proceedings of the ACM on Management of Data 4.3 (SIGMOD (2026): 1-29.
Questions
See weaknesses.
Limitations
See weaknesses.
Formatting concerns
N/A
3 comments
Rebuttal
Thank you for recognizing the strengths of our work and for your constructive feedback. We address your concerns below.
Experimental Settings: unless otherwise specified, all configurations follow the main experiments in the manuscript.
W1. OOD generalization beyond the predictor-training workload.
In brief, PBKV can still benefit from tasks beyond the predictor’s training distribution.
To validate PBKV's OOD generalization, we conduct two OOD experiments.
(1) Cross-benchmark (HoVer → FEVER) evaluation. We replace the serving workload of the HoVer+LangChain experiment with FEVER, another fact-verification benchmark. We consider two predictors variants and plug each into PBKV: (i) zero-shot, the predictor trained on HoVer benchmark and then frozen, and (ii) few-shot, the same predictor fine-tuned on only 10 traces on FEVER.
(2) Cross-repository-domain evaluation.
This evaluation likewise includes two variants: (i) zero-shot, where we train the predictor on a subset of repositories and deploy it to serve tasks from entirely unseen repositories; and (ii) few-shot, where we additionally provide 10 tasks from the target repositories before serving the remaining tasks.
The results are shown in Table R1 and R2, respectively.
Table R1. Results of cross-benchmark OOD (model: Qwen3-32B).
| Policy | 1-step acc ↑ | 3-step acc ↑ | E2E latency (s) ↓ | Per-agent TTFT (s) ↓ | Cache hit rate (%) ↑ |
|---|---|---|---|---|---|
| LRU | - | - | 131.71 | 15.90 | 30.12 |
| PBKV-LAE (Without Predictor) | - | - | 81.36 | 10.26 | 58.63 |
| OOD Zero-Shot | 88.63 | 64.24 | 65.97 | 8.41 | 69.32 |
| OOD Few-Shot (10 Traces) | 91.47 | 70.16 | 61.02 | 7.74 | 71.86 |
Table R2. Results of cross-repository-domain OOD (model: Qwen3-32B).
| Policy | 1-step acc (%) ↑ | 3-step acc (%) ↑ | E2E latency (s) ↓ | Per-agent TTFT (s) ↓ | Cache hit rate (%) ↑ |
|---|---|---|---|---|---|
| LRU | - | - | 256.35 | 4.88 | 49.24 |
| PBKV-LAE (Without Predictor) | - | - | 218.97 | 3.34 | 61.27 |
| OOD Zero-Shot | 90.05 | 84.81 | 188.95 | 2.96 | 71.41 |
| OOD Few-Shot (10 Traces) | 92.77 | 90.40 | 171.02 | 2.13 | 76.26 |
These results suggest that zero-shot PBKV consistently achieves higher cache hit rates and lower latency than PBKV-LAE, with even larger gains over LRU. Few-shot adaptation further improves the gains. Although the distribution shift of serving workload can change task contents and branch frequencies, a subset of short-horizon agent-transition patterns and routing rules are largely determined by the intrinsic logic (e.g., retries following failed verification). PBKV can therefore capture and exploit them, while the prediction-independent PBKV-LAE provides a robust eviction foundation.
Thank you for pointing out this omission, and we will include the above experiments and analyses in the revision.
W2. Heterogeneous multi-model serving.
PBKV can handle this setting by managing the KV cache for each model pool independently. Intuitively, PBKV under heterogeneity works as if creating a separate PBKV instance for each model to manage its own cache.
Empirically, we route requests by agent type to either Qwen3-14B or Qwen3-32B on the HoVer+LangChain workload. Since the heterogeneous setup uses more GPUs, we scale up the workflows concurrency accordingly. The results are as follows:
Table R3. Performance under heterogeneous multi-model serving (workload: HoVer+LangChain).
| Policy | Latency (s) ↓ | PA-TTFT (s) ↓ | Hit Rate (%) ↑ |
|---|---|---|---|
| LRU | 166.01 | 14.27 | 25.85 |
| PBKV-LAE | 128.66 | 10.02 | 38.06 |
| Full PBKV | 93.79 | 7.15 | 65.22 |
These results show that PBKV still outperforms the default LRU policy, and retains most of its benefits under heterogeneous multi-model serving.
W3. Agent-level prediction vs. token-level hits.
We would like to clarify that PBKV predicts at the agent level but scores at the cache-node level. We compute an individual score for each cache node in the Radix Tree using both the agent-level predictor output and the node-level access indicator , where is derived from the cache access history recorded by SGLang under exact token-prefix matching. Moreover, even when two invocations share only a partial prefix, PBKV can still effectively manage the corresponding cache nodes, preventing their erroneous eviction and avoiding costly re-prefill.
Empirically, the reported cache hit rate is measured at actual token-level (see line 290 of the manuscript), showing that PBKV's scoring mechanism translates into effective token-level KV-cache reuse.
W4. The score is just a proxy of latency.
We would like to clarify that the score represents cache miss count, which is widely used in theoretical cache analysis.
End-to-end latency in a real serving system is shaped by many confounding factors, such as batching, queueing and GPU scheduling. So theoretical cache analysis typically targets the miss count instead (i.e., Expected discounted Miss Count, EMC), e.g., [8, 39, 40] in the manuscript. Lemma G.1 formally establishes that SCORE(c) = EMC(c), so Theorem G.4 bounds PBKV’s EMC regret.
We measure PBKV’s robustness in latency empirically by injecting noise into the predictor output, and report end-to-end latency and cache hit rate. We also include PBKV-U, a 0-information baseline, in which the predictor output is replaced by a uniform distribution.
Table R4. Performance of PBKV vs. prediction-noise level λ. (model: Qwen3-32B; workload: HoVer+LangChain).
| Noise level (λ) | 0% | 10% | 20% | 30% | 40% | 100% (PBKV-U) |
|---|---|---|---|---|---|---|
| Latency (s) ↓ | 102.60 | 105.29 | 108.81 | 112.15 | 118.70 | 135.72 |
| Cache Hit Rate (%) ↑ | 69.1 | 68.1 | 66.7 | 63.5 | 59.7 | 49.03 |
The results show that even under great prediction noise, PBKV still outperforms both LRU (189.66 s) and the prediction-free PBKV-LAE (146.67 s), demonstrating robust end-to-end performance.
Thank you for pointing out this scoping distinction, and we will make this positioning explicit and add the above discussion in the revision.
W5. Missing related work.
Thank you for pointing out these related works, and we will discuss them in the revision to clarify PBKV's positioning. However, we respectfully note that they are not designed specifically for runtime-dependent dynamic agentic workflows.
Among them, [1] proposes RLT, which randomly evicts an unmarked leaf cache node, but it is not designed for agentic settings and therefore does not exploit agent dependencies or workflow structure. [2] characterizes Alibaba’s request-level production traces from general chat/API services, and evict cache using per-request-type reuse distributions. It also focuses on general LLM requests (e.g., chat or API calls), rather than agentic workflows. [3] compiles agentic workflows into static query plans and pre-warm known prompt prefixes, with native LRU eviction. It requires a pre-defined static DAG (as does KVFlow), and explicitly acknowledges that it likewise struggles with dynamic mapping and conditional loops as its limitations.
Comparison. Because of the limited rebuttal period, we only adapt RLT to SGLang, the results are as follows:
Table R5. LRU vs. RLT vs. PBKV (model: Qwen3-32B; workload: HoVer+LangChain).
| Policy | Latency (s) ↓ | PA-TTFT (s) ↓ | Hit Rate (%) ↑ |
|---|---|---|---|
| LRU | 189.66 | 16.65 | 27.09 |
| RLT | 167.20 | 14.79 | 37.25 |
| Full PBKV | 102.60 | 8.22 | 69.10 |
RLT improves over LRU by mitigating its recency bias. However, it is workflow-oblivious, and therefore underperforms PBKV. Qualitatively, [2] is likewise oblivious to the agentic workflow, while [3] struggles with dynamic mapping and conditional loops.
We will also conduct a broader survey of recent literature in the revision.
Overall. Thank you for your careful reading and constructive suggestions. We hope the clarifications and additional experiments can address your concerns, and would be grateful if you would consider revisiting your assessment.
Dear Reviewer,
We would like to kindly follow up and ask whether our rebuttal has addressed your concerns. If anything remains unclear, we would be happy to provide further clarification or additional experimental results during the discussion period.
Thank you again for your time and consideration.
Dear Reviewer,
As the discussion period will conclude in a few hours, we wanted to briefly follow up and ask whether our rebuttal has addressed your concerns. If any issues remain unresolved, we would be happy to provide further clarification before the discussion closes.
Thank you very much for your time and consideration.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This work targets the central challenge of KV-cache management for dynamic multi-agent workflows, where future cache reuse depends on runtime agent invocation paths rather than simple temporal locality. The paper proposes PBKV, which predicts future agent invocations over a multi-step horizon and uses those predictions for hierarchical eviction and conservative prefetching. The abstract claims up to 1.85× speedup over LRU on dynamic workflows and 1.26× over KVFlow on a static workflow
Strengths and weaknesses
Strengths:
-
The paper targets an important problem and the main idea is well motivated. Specifically, LRU is misaligned with workflow-level cache reuse because useful cache can sit idle across several agent calls before being reused, while KVFlow assumes a static future invocation graph that does not hold for dynamic loops. PBKV instead predicts the next several agent invocations and uses deterministic guardrails, such as evicting retired workflow cache first, to reduce damage from prediction errors.
-
The predictor architecture design is reasonable. The predictor combines graph structure, workflow prefix history, and the LLM prefill embedding. This is a sensible design for distinguishing different runtime paths even when workflows share the same current agent.
-
The paper conducted good ablations. It separates lifecycle-aware eviction, hierarchical eviction, and prefetching, which makes the source of gains easier to understand.
Weaknesses:
-
The predictor training setup is under-specified. The paper states that the predictor is trained on offline invocation traces, but it does not clearly describe how traces are collected, split, and reused across all workloads. This makes it hard to assess whether the serving results are fully separated from the predictor-training distribution.
-
The generalization of the predictor is not sufficiently evaluated. PBKV’s latency gains depend on translating predicted future agent calls into better KV-cache decisions, but the experiments appear mostly in-distribution: same benchmark, framework, call graph, prompts, and message-passing convention. It is unclear how well the method works under prompt changes, new agents/tools, different LLMs, routing-policy drift, or heterogeneous workflow mixtures.
Questions
How are the offline invocation traces for predictor training collected for each workload, and are they fully disjoint from the traces used in serving evaluation?
How much predictor training data is needed before PBKV begins to improve latency over simpler lifecycle-aware or popularity-based policies?
How well does the predictor generalize under workflow drift, such as changed prompts, changed agent routing policies, added/removed tools, or a different underlying LLM?
Limitations
Yes
Final justification
as listed in my preview
Formatting concerns
No
4 comments
Rebuttal
Thank you for your recognition and valuable suggestions! We address your concern below.
Experimental Settings: unless otherwise specified, all configurations follow the manuscript.
W1&Q1. Training details and data separation
The predictor’s training traces and serving evaluation tasks are fully disjoint, and we detail the protocol below.
For each workload, we first sample a subset of benchmark tasks and execute them with the agent framework described in our experimental setup (§6.1) to collect traces. Then we split these traces at the trajectory level into training, validation, and predictor-test sets.
The serving-evaluation tasks are sampled outside this subset. Thus, every serving-evaluation task is never executed before.
Q2. Minimum training data for PBKV to outperform lifecycle/popularity-based baselines.
PBKV outperforms these baselines with zero training traces, while one trace can provide further gains.
We replace the predictor outputs with uniform distributions to represent PBKV without any training information, yielding the PBKV-U variant. Although PBKV-U has no predictive information, it still benefits from PBKV’s mechanisms, such as cross-workflow aggregated reuse score.
Empirically, we evaluate LRU, PBKV-LAE, PBKV-U, and SGLang’s built-in LFU (Least Frequently Used), a popularity-based baseline. The results are shown below:
Table R1. Low-data performance on HoVer + LangChain with Qwen3-32B.
| Policy | E2E Latency (s) ↓ | Per-Agent TTFT (s) ↓ | GPU KV Hit Rate (%) ↑ |
|---|---|---|---|
| LRU | 189.66 | 16.65 | 27.09 |
| LFU | 207.33 | 18.87 | 22.40 |
| PBKV-LAE | 146.67 | 11.83 | 44.91 |
| PBKV-U | 135.72 | 10.79 | 49.03 |
| PBKV (1 training trace) | 126.50 | 9.81 | 52.89 |
| Full PBKV | 102.60 | 8.22 | 69.10 |
As shown above, even without predictive information, PBKV-U outperforms the lifecycle-based PBKV-LAE, the popularity-based LFU, and the default LRU. We further trained PBKV’s predictor using only one training trace. Although it achieves top-1 accuracies of only 0.39 and 0.26 at the 1-step and 3-step horizons, respectively, it still improves PBKV-U.
These results suggest PBKV’s data efficiency and robustness to prediction errors. We will include them in the revision. Thank you for the constructive comment!
W2&Q3. Generalization of PBKV's predictor and cache management.
In brief, PBKV retains clear gains under unseen benchmarks and distribution shifts.
For prediction, we group the drift into two categories. (i) Workload-level shifts (e.g., another similar benchmark) mainly preserve the core transition logics (e.g., retries following failed verification), so the accuracy drop is mild (see experiments below). (ii) Agent-framework-level structural changes (e.g., adding an agent) alter the prediction space. PBKV can temporarily switch to PBKV-LAE while collecting new traces, and then efficiently update its lightweight (350K parameters) predictor.
For cache management, PBKV's robustness design keeps the benefits even under predictor error (as shown in our response to Q2 above).
To quantify the impact of such drift on PBKV, we conduct two out-of-distribution (OOD) experiments.
(1) Cross-benchmark (HoVer → FEVER) evaluation. We replace the serving workload of the HoVer+LangChain experiment with FEVER, another fact-verification benchmark. We consider two predictors variants and plug each into PBKV: (i) zero-shot, the predictor trained on HoVer and then frozen, and (ii) few-shot, the same predictor fine-tuned on only 10 traces on FEVER.
(2) Cross-repository-domain evaluation. This evaluation likewise includes two variants: (i) zero-shot, where we train the predictor on a subset of repositories and deploy it to serve tasks from entirely unseen repositories; and (ii) few-shot, where we additionally provide 10 tasks from the target repositories before serving the remaining tasks.
The results are shown in Table R2 and R3, respectively.
Table R2. Results of cross-benchmark OOD (model: Qwen3-32B).
| Policy | 1-step acc ↑ | 3-step acc ↑ | E2E latency (s) ↓ | Per-agent TTFT (s) ↓ | Cache hit rate (%) ↑ |
|---|---|---|---|---|---|
| LRU | - | - | 131.71 | 15.90 | 30.12 |
| PBKV-LAE (Without Predictor) | - | - | 81.36 | 10.26 | 58.63 |
| OOD Zero-Shot | 88.63 | 64.24 | 65.97 | 8.41 | 69.32 |
| OOD Few-Shot (10 Traces) | 91.47 | 70.16 | 61.02 | 7.74 | 71.86 |
Table R3. Results of cross-repository-domain OOD (model: Qwen3-32B).
| Policy | 1-step acc (%) ↑ | 3-step acc (%) ↑ | E2E latency (s) ↓ | Per-agent TTFT (s) ↓ | Cache hit rate (%) ↑ |
|---|---|---|---|---|---|
| LRU | - | - | 256.35 | 4.88 | 49.24 |
| PBKV-LAE (Without Predictor) | - | - | 218.97 | 3.34 | 61.27 |
| OOD Zero-Shot | 90.05 | 84.81 | 188.95 | 2.96 | 71.41 |
| OOD Few-Shot (10 Traces) | 92.77 | 90.40 | 171.02 | 2.13 | 76.26 |
These results suggest that zero-shot PBKV consistently achieves higher cache hit rates and lower latency than PBKV-LAE, with even larger gains over LRU. Few-shot adaptation further improves the gains. Although the distribution shift of serving workload can change task contents and branch frequencies, a subset of short-horizon agent-transition patterns and routing rules are largely determined by the intrinsic logic. PBKV can therefore capture and leverage them, while the prediction-independent PBKV-LAE provides a robust eviction foundation.
Thank you again for your recognition and valuable suggestions! We hope the additional results address your concerns. We will incorporate them into the revision.
Dear Reviewer,
We would like to kindly follow up and ask whether our rebuttal has addressed your concerns. If anything remains unclear, we would be happy to provide further clarification or additional experimental results during the discussion period.
Thank you again for your time and consideration.
Thank you for your clarification. I keep my positive score.
Thank you for your positive assessment and for taking the time to consider our response.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Summary of Our Rebuttal
Thank you for your careful assessment and constructive guidance. We appreciate your recognition of the importance, motivation, and empirical strength of our work.
In our rebuttal, we provide additional evidence and clarification, including (i) two OOD generalization experiments (65jw-W2&Q3, 9uyF-W1); (ii) the protocol ensuring a disjoint split between predictor-training and serving-evaluation traces (65jw-W1&Q1); and (iii) a workload-characterization table (4XVJ-W2&Q1). We also respond point by point to all other concerns raised by the reviewers.
Thank you again for your time and consideration.