KVFlow: Efficient Prefix Caching for Accelerating LLM-Based Multi-Agent Workflows
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Large language model (LLM) based agentic workflows have become a popular paradigm for coordinating multiple specialized agents to solve complex tasks. To improve serving efficiency, existing LLM systems employ prefix caching to reuse key-value (KV) tensors corresponding to agents' fixed prompts, thereby avoiding redundant computation across repeated invocations. However, current systems typically evict KV caches using a Least Recently Used (LRU) policy, which fails to anticipate future agent usage and often discards KV caches shortly before their reuse. This leads to frequent cache misses and substantial recomputation or swapping overhead. We present KVFlow, a workflow-aware KV cache management framework tailored for agentic workloads. KVFlow abstracts the agent execution schedule as an Agent Step Graph and assigns each agent a steps-to-execution value that estimates its temporal proximity to future activation. These values guide a fine-grained eviction policy at the KV node level, allowing KVFlow to preserve entries likely to be reused and efficiently manage shared prefixes in tree-structured caches. Moreover, KVFlow introduces a fully overlapped KV prefetching mechanism, which proactively loads required tensors from CPU to GPU in background threads for agents scheduled in the next step, thereby avoiding cache miss stalls during generation. Compared to SGLang with hierarchical radix cache, KVFlow achieves up to 1.83× speedup for single workflows with large prompts, and up to 2.19× speedup for scenarios with many concurrent workflows.
Key facts. Cited by 56 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 33 of its 43 references that are in the map. First posted on arXiv 10 Jul 2025.
Builds on
33 of 43 references.
Closest ancestors · 6
Same direction, newest first
- 2025Autellix: An Efficient Serving Engine for LLM Agents as General Programs19 Feb
- 2025Adaptive Self-improvement LLM Agentic System for ML Library Development4 Feb
- 2025Argos: Agentic Time-Series Anomaly Detection with Autonomous Rule Generation via Large Language Models24 Jan
- 2024AFlow: Automating Agentic Workflow Generation14 Oct
- 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation16 Aug
- 2023ChatDev: Communicative Agents for Software Development16 Jul
Other references · 27
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,568
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,242
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 2,006
- 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,808
- 2023Improving Factuality and Reasoning in Language Models through Multiagent Debatecited by 1,784
- 2022Fast Inference from Transformers via Speculative Decodingcited by 1,653
- 2023CAMEL: Communicative Agents for "Mind" Exploration of Large Language Model Societycited by 1,395
- 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,141
15 more
- 2023Accelerating Large Language Model Decoding with Speculative Samplingcited by 1,006
- 2023Unleashing the Emergent Cognitive Synergy in Large Language Models: A Task-Solving Agent through Multi-Persona Self-Collaborationcited by 251
- 2024Cost-Efficient Large Language Model Serving for Multi-turn Conversations with CachedAttentioncited by 163
- 2023Fast Distributed Inference Serving for Large Language Modelscited by 145
- 2024Cut the Crap: An Economical Communication Pipeline for LLM-based Multi-Agent Systemscited by 141
- 2024AgentScope: A Flexible yet Robust Multi-Agent Platformcited by 121
- 2024Code Generation with AlphaCodium: From Prompt Engineering to Flow Engineeringcited by 103
- 2024Parrot: Efficient Serving of LLM-based Applications with Semantic Variablecited by 99
- 2024RAGCache: Efficient Knowledge Caching for Retrieval-Augmented Generationcited by 98
- 2023Stateful Large Language Model Serving with Pensievecited by 61
- 2024Andes: Defining and Enhancing Quality-of-Experience in LLM-Based Text Streaming Servicescited by 45
- 2024InferCept: Efficient Intercept Support for Augmented Large Language Model Inferencecited by 33
- 2024Very Large-Scale Multi-Agent Simulation in AgentScopecited by 18
- 2025Cognify: Supercharging Gen-AI Workflows With Hierarchical Autotuningcited by 7
- 2024PEER: Expertizing Domain-Specific Tasks with a Multi-Agent Framework and Tuning Methodscited by 4
Built on by
Citing papers per year: 2025: 4; 2026: 52.
56 papers.
Sort:
By area:
- 2026Parallelizing Tool Execution and LLM Generation for Low-Latency Agent Servingcited by 20
- 2026Beyond Max Tokens: Stealthy Resource Amplification via Tool Calling Chains in LLM Agentscited by 14
- 2026Efficient LLM Serving for Agentic Workflows: A Data Systems Perspectivecited by 11
- 2026LRAgent: Efficient KV Cache Sharing for Multi-LoRA LLM Agentscited by 10
- 2026Agent Memory Below the Prompt: Persistent Q4 KV Cache for Multi-Agent LLM Inference on Edge Devicescited by 8
- 2026ICaRus: Identical Cache Reuse for Efficient Multi Model Inferencecited by 8
- 2025Batch Query Processing and Optimization for Agentic Workflowscited by 6
- 2026Pythia: Exploiting Workflow Predictability for Efficient Agent-Native LLM Servingcited by 6
- 2026SAGA: Workflow-Atomic Scheduling for AI Agent Inference on GPU Clusterscited by 6
- 2026LCGuard: Latent Communication Guard for Safe KV Sharing in Multi-Agent Systemscited by 6
- 2025TokenLake: A Unified Segment-level Prefix Cache Pool for Fine-grained Elastic Long-Context LLM Servingcited by 5
- 2026Sutradhara: An Intelligent Orchestrator-Engine Co-design for Tool-based Agentic Inferencecited by 5
38 more
- 2026KEEP: A KV-Cache-Centric Memory Management System for Efficient Embodied Planningcited by 5
- 2025KV Admission: Learning What to Write for Efficient Long-Context LLM Inferencecited by 4
- 2026PrefillShare: A Shared Prefill Module for KV Reuse in Multi-LLM Disaggregated Servingcited by 4
- 2026Efficient Serving for Dynamic Agent Workflows with Prediction-based KV-Cache Managementcited by 4
- 2026Learning What Not to Forget: Long-Horizon Agent Memory from a Few Kilobytes of Learningcited by 4
- 2026Towards Efficient Large Language Model Serving: A Survey on System-Aware KV Cache Optimizationcited by 4
- 2026KV Cache Translation across Heterogeneous Large Language Modelscited by 4
- 2025ShadowServe: Interference-Free KV Cache Fetching for Distributed Prefix Cachingcited by 3
- 2026Beyond Accuracy: Unveiling Inefficiency Patterns in Tool-Integrated Reasoningcited by 3
- 2026PolyKV: A Shared Asymmetrically-Compressed KV Cache Pool for Multi-Agent LLM Inferencecited by 3
- 2026Not All Tokens Are Worth Caching: Learning Semantic-Aware Eviction for LLM Prefix Cachescited by 3
- 2026Characterization of Multi-Model Agentic AI Systems on General Tasks via Trace-Driven Simulationcited by 3
- 2026MemDecay: Region-Aware KV Cache Eviction for Efficient LLM Agent Inferencecited by 3
- 2026When KV Cache Reuse Fails in Multi-Agent Systems: Cross-Candidate Interaction is Crucial for LLM Judgescited by 2
- 2026ScaleSim: Serving Large-Scale Multi-Agent Simulation with Invocation Distance-Based Memory Managementcited by 2
- 2026ForkKV: Scaling Multi-LoRA Agent Serving via Copy-on-Write Disaggregated KV Cachecited by 2
- 2026A Policy-Driven Runtime Layer for Agentic LLM Servingcited by 2
- 2026VikingMem: A Memory Base Management System for Stateful LLM-based Applicationscited by 2
- 2026Observation, Not Prediction: Conversation-Level Disaggregated Scheduling for Agentic Servingcited by 2
- 2026Speculative Macro Commit for Faster Tool-Using Agentscited by 2
- 2026GORGO: Online Tuning for Cross-Region Network-Aware LLM Servingcited by 1
- 2026SLO-Aware Compute Resource Allocation for Prefill-Decode Disaggregated LLM Inferencecited by 1
- 2026CacheFlow: Efficient LLM Serving with 3D-Parallel KV Cache Restorationcited by 1
- 2026PRISM: Fast Online LLM Serving via Scheduling-Memory Co-designcited by 1
- 2026Benchmarking LLM Serving Systems for Agentic AI Workloads with XPerfcited by 1
- 2026TOPAS: Workflow-Aware Prefix-State Scheduling for Multi-Agent LLM Servingcited by 1
- 2026Taking Tokenization off the Host for Agentic LLM Servingcited by 1
- 2026AMMA: A Multi-Chiplet Memory-Centric Architecture for Low-Latency 1M Context Attention Servingcited by 0
- 2026Streaming Communication in Multi-Agent Reasoningcited by 0
- 2026SmoothAgent: Efficient Long-Horizon LLM-Based Agent Serving with Lookahead Context Engineeringcited by 0
- 2026PEEK: Predictive Queue-Informed KV Cache Management for LLM Servingcited by 0
- 2026Workload-Aware Caching for Multi-Agent Systemscited by 0
- 2026StepReflect: Structured UI Transition Reflection for Mobile GUI Agentscited by 0
- 2026Unified AI Gateway: A Framework for Joint Model Routing and KV Cache Managementcited by 0
- 2026BIO-MEMART: Biometric-Aware KV Cache Memory for Multi-User LLM Agentscited by 0
- 2026Dynamic HBM Repartitioning for Multi-Turn MoE Servingcited by 0
- 2026PipeSwift: Revisiting Pipeline Parallelism for Large-Scale Completion-Oriented Agentic LLM Servingcited by 0
- 2026The KV Cache Working Set: Online Capacity Planning for LLM Inference Systemscited by 0
50 most cited of 56 All 56 (JSON)
- 2026Taking Tokenization off the Host for Agentic LLM Serving9 Oct 2026
- 2026SparseEngine: Sparse-First Inference Engine30 Sep 2026
- 2026TempoKV: Timely Staging of LLM KV Caches for Memory-Semantic Flash28 Sep 2026
- 2026KVCMAS: Efficient KV cache Correction for Shared Context in Multi-Agent Systems28 Sep 2026
- 2026EfficientAgent: What Makes KV Cache Offloading Work for Concurrent Agents?27 Sep 2026
- 2026DynBranch: Speculative Subgraph Reuse for Dynamic Agentic LLM Serving25 Sep 2026
- 2026When Fancy Eviction Fails: Rethinking Cache Replacement For LLM Prefix Reuse24 Sep 2026
- 2026The KV Cache Working Set: Online Capacity Planning for LLM Inference Systems23 Sep 2026
- 2026PipeSwift: Revisiting Pipeline Parallelism for Large-Scale Completion-Oriented Agentic LLM Serving15 Sep 2026
- 2026Dynamic HBM Repartitioning for Multi-Turn MoE Serving11 Sep 2026
- 2026BIO-MEMART: Biometric-Aware KV Cache Memory for Multi-User LLM Agents8 Sep 2026
- 2026Unified AI Gateway: A Framework for Joint Model Routing and KV Cache Management7 Sep 2026
38 more
- 2026Speculative Macro Commit for Faster Tool-Using Agents3 Sep 2026
- 2026TOPAS: Workflow-Aware Prefix-State Scheduling for Multi-Agent LLM Serving26 Aug 2026
- 2026StepReflect: Structured UI Transition Reflection for Mobile GUI Agents6 Aug 2026
- 2026KV Cache Translation across Heterogeneous Large Language Models31 Jul 2026
- 2026MemDecay: Region-Aware KV Cache Eviction for Efficient LLM Agent Inference12 Jul 2026
- 2026Towards Efficient Large Language Model Serving: A Survey on System-Aware KV Cache Optimization9 Jul 2026
- 2026SmoothAgent: Efficient Long-Horizon LLM-Based Agent Serving with Lookahead Context Engineering30 Jun 2026
- 2026Benchmarking LLM Serving Systems for Agentic AI Workloads with XPerf19 Jun 2026
- 2026Learning What Not to Forget: Long-Horizon Agent Memory from a Few Kilobytes of Learning18 Jun 2026
- 2026Workload-Aware Caching for Multi-Agent Systems14 Jun 2026
- 2026Streaming Communication in Multi-Agent Reasoning3 Jun 2026
- 2026Observation, Not Prediction: Conversation-Level Disaggregated Scheduling for Agentic Serving1 Jun 2026
- 2026Characterization of Multi-Model Agentic AI Systems on General Tasks via Trace-Driven Simulation1 Jun 2026
- 2026VikingMem: A Memory Base Management System for Stateful LLM-based Applications28 May 2026
- 2026A Policy-Driven Runtime Layer for Agentic LLM Serving26 May 2026
- 2026LCGuard: Latent Communication Guard for Safe KV Sharing in Multi-Agent Systems21 May 2026
- 2026Not All Tokens Are Worth Caching: Learning Semantic-Aware Eviction for LLM Prefix Caches12 May 2026
- 2026PEEK: Predictive Queue-Informed KV Cache Management for LLM Serving10 May 2026
- 2026PRISM: Fast Online LLM Serving via Scheduling-Memory Co-design9 May 2026
- 2026Efficient Serving for Dynamic Agent Workflows with Prediction-based KV-Cache Management7 May 2026
- 2026SAGA: Workflow-Atomic Scheduling for AI Agent Inference on GPU Clusters1 May 2026
- 2026AMMA: A Multi-Chiplet Memory-Centric Architecture for Low-Latency 1M Context Attention Serving28 Apr 2026
- 2026Pythia: Exploiting Workflow Predictability for Efficient Agent-Native LLM Serving28 Apr 2026
- 2026CacheFlow: Efficient LLM Serving with 3D-Parallel KV Cache Restoration28 Apr 2026
- 2026PolyKV: A Shared Asymmetrically-Compressed KV Cache Pool for Multi-Agent LLM Inference27 Apr 2026
- 2026ForkKV: Scaling Multi-LoRA Agent Serving via Copy-on-Write Disaggregated KV Cache7 Apr 2026
- 2026Beyond Accuracy: Unveiling Inefficiency Patterns in Tool-Integrated Reasoning7 Apr 2026
- 2026Parallelizing Tool Execution and LLM Generation for Low-Latency Agent Serving19 Mar 2026
- 2026Efficient LLM Serving for Agentic Workflows: A Data Systems Perspective17 Mar 2026
- 2026SLO-Aware Compute Resource Allocation for Prefill-Decode Disaggregated LLM Inference5 Mar 2026
- 2026ICaRus: Identical Cache Reuse for Efficient Multi Model Inference27 Feb 2026
- 2026KEEP: A KV-Cache-Centric Memory Management System for Efficient Embodied Planning27 Feb 2026
- 2026Agent Memory Below the Prompt: Persistent Q4 KV Cache for Multi-Agent LLM Inference on Edge Devices17 Feb 2026
- 2026PrefillShare: A Shared Prefill Module for KV Reuse in Multi-LLM Disaggregated Serving12 Feb 2026
- 2026GORGO: Online Tuning for Cross-Region Network-Aware LLM Serving12 Feb 2026
- 2026LRAgent: Efficient KV Cache Sharing for Multi-LoRA LLM Agents1 Feb 2026
- 2026ScaleSim: Serving Large-Scale Multi-Agent Simulation with Invocation Distance-Based Memory Management29 Jan 2026
- 2026Sutradhara: An Intelligent Orchestrator-Engine Co-design for Tool-based Agentic Inference19 Jan 2026
50 newest of 56 All 56 (JSON)
- 2026Parallelizing Tool Execution and LLM Generation for Low-Latency Agent Servingcited by 20
- 2026Beyond Max Tokens: Stealthy Resource Amplification via Tool Calling Chains in LLM Agentscited by 14
- 2026Efficient LLM Serving for Agentic Workflows: A Data Systems Perspectivecited by 11
- 2026LRAgent: Efficient KV Cache Sharing for Multi-LoRA LLM Agentscited by 10
- 2026Agent Memory Below the Prompt: Persistent Q4 KV Cache for Multi-Agent LLM Inference on Edge Devicescited by 8
- 2026ICaRus: Identical Cache Reuse for Efficient Multi Model Inferencecited by 8
- 2026Pythia: Exploiting Workflow Predictability for Efficient Agent-Native LLM Servingcited by 6
- 2026SAGA: Workflow-Atomic Scheduling for AI Agent Inference on GPU Clusterscited by 6
- 2026LCGuard: Latent Communication Guard for Safe KV Sharing in Multi-Agent Systemscited by 6
- 2026Efficient Serving for Dynamic Agent Workflows with Prediction-based KV-Cache Managementcited by 4
- 2026Learning What Not to Forget: Long-Horizon Agent Memory from a Few Kilobytes of Learningcited by 4
- 2026PolyKV: A Shared Asymmetrically-Compressed KV Cache Pool for Multi-Agent LLM Inferencecited by 3
12 most cited of 27 All 27 (JSON)
- 2026SparseEngine: Sparse-First Inference Engine30 Sep 2026
- 2026EfficientAgent: What Makes KV Cache Offloading Work for Concurrent Agents?27 Sep 2026
- 2026DynBranch: Speculative Subgraph Reuse for Dynamic Agentic LLM Serving25 Sep 2026
- 2026BIO-MEMART: Biometric-Aware KV Cache Memory for Multi-User LLM Agents8 Sep 2026
- 2026Speculative Macro Commit for Faster Tool-Using Agents3 Sep 2026
- 2026TOPAS: Workflow-Aware Prefix-State Scheduling for Multi-Agent LLM Serving26 Aug 2026
- 2026StepReflect: Structured UI Transition Reflection for Mobile GUI Agents6 Aug 2026
- 2026MemDecay: Region-Aware KV Cache Eviction for Efficient LLM Agent Inference12 Jul 2026
- 2026Benchmarking LLM Serving Systems for Agentic AI Workloads with XPerf19 Jun 2026
- 2026Learning What Not to Forget: Long-Horizon Agent Memory from a Few Kilobytes of Learning18 Jun 2026
- 2026Observation, Not Prediction: Conversation-Level Disaggregated Scheduling for Agentic Serving1 Jun 2026
- 2026Characterization of Multi-Model Agentic AI Systems on General Tasks via Trace-Driven Simulation1 Jun 2026
12 newest of 27 All 27 (JSON)
- 2025Batch Query Processing and Optimization for Agentic Workflowscited by 6
- 2025TokenLake: A Unified Segment-level Prefix Cache Pool for Fine-grained Elastic Long-Context LLM Servingcited by 5
- 2026Sutradhara: An Intelligent Orchestrator-Engine Co-design for Tool-based Agentic Inferencecited by 5
- 2026KEEP: A KV-Cache-Centric Memory Management System for Efficient Embodied Planningcited by 5
- 2026PrefillShare: A Shared Prefill Module for KV Reuse in Multi-LLM Disaggregated Servingcited by 4
- 2026Towards Efficient Large Language Model Serving: A Survey on System-Aware KV Cache Optimizationcited by 4
- 2026KV Cache Translation across Heterogeneous Large Language Modelscited by 4
- 2025ShadowServe: Interference-Free KV Cache Fetching for Distributed Prefix Cachingcited by 3
- 2026GORGO: Online Tuning for Cross-Region Network-Aware LLM Servingcited by 1
- 2026SLO-Aware Compute Resource Allocation for Prefill-Decode Disaggregated LLM Inferencecited by 1
- 2026Taking Tokenization off the Host for Agentic LLM Servingcited by 1
- 2026AMMA: A Multi-Chiplet Memory-Centric Architecture for Low-Latency 1M Context Attention Servingcited by 0
12 most cited of 19 All 19 (JSON)
- 2026Taking Tokenization off the Host for Agentic LLM Serving9 Oct 2026
- 2026TempoKV: Timely Staging of LLM KV Caches for Memory-Semantic Flash28 Sep 2026
- 2026KVCMAS: Efficient KV cache Correction for Shared Context in Multi-Agent Systems28 Sep 2026
- 2026The KV Cache Working Set: Online Capacity Planning for LLM Inference Systems23 Sep 2026
- 2026PipeSwift: Revisiting Pipeline Parallelism for Large-Scale Completion-Oriented Agentic LLM Serving15 Sep 2026
- 2026Unified AI Gateway: A Framework for Joint Model Routing and KV Cache Management7 Sep 2026
- 2026KV Cache Translation across Heterogeneous Large Language Models31 Jul 2026
- 2026Towards Efficient Large Language Model Serving: A Survey on System-Aware KV Cache Optimization9 Jul 2026
- 2026SmoothAgent: Efficient Long-Horizon LLM-Based Agent Serving with Lookahead Context Engineering30 Jun 2026
- 2026PEEK: Predictive Queue-Informed KV Cache Management for LLM Serving10 May 2026
- 2026AMMA: A Multi-Chiplet Memory-Centric Architecture for Low-Latency 1M Context Attention Serving28 Apr 2026
- 2026SLO-Aware Compute Resource Allocation for Prefill-Decode Disaggregated LLM Inference5 Mar 2026
12 newest of 19 All 19 (JSON)
- 2026Dynamic HBM Repartitioning for Multi-Turn MoE Servingcited by 0
- 2026Dynamic HBM Repartitioning for Multi-Turn MoE Serving11 Sep 2026
- 2025KV Admission: Learning What to Write for Efficient Long-Context LLM Inferencecited by 4
- 2026Not All Tokens Are Worth Caching: Learning Semantic-Aware Eviction for LLM Prefix Cachescited by 3
- 2026VikingMem: A Memory Base Management System for Stateful LLM-based Applicationscited by 2
- 2026Workload-Aware Caching for Multi-Agent Systemscited by 0
- 2026Workload-Aware Caching for Multi-Agent Systems14 Jun 2026
- 2026VikingMem: A Memory Base Management System for Stateful LLM-based Applications28 May 2026
- 2026Not All Tokens Are Worth Caching: Learning Semantic-Aware Eviction for LLM Prefix Caches12 May 2026
- 2025KV Admission: Learning What to Write for Efficient Long-Context LLM Inference19 Dec 2025
Similar, not cited
Close in wording, no citation either way
- 2026Learning Agent Execution for KV-Cache Management in Agentic Serving
- 2026[AAFLOW+] Stateful Operator Abstraction with Zero-Copy Distributed KV Cache Orchestration for Multi-Agent Workflows
- 2026TokenDance: Scaling Multi-Agent LLM Serving via Collective KV Cache Sharing
- 2025TokenCake: A KV-Cache-centric Serving Framework for LLM-based Multi-Agent Applications
- 2025KVCOMM: Online Cross-context KV-cache Communication for Efficient LLM-based Multi-agent Systems
- 2026ReCache: Efficient KV Cache Reuse and Compression for Tool-Augmented LLM Agents
- 2025Accelerating Language Model Workflows with Prompt Choreography
- 2026CacheWise: Understanding Workloads and Optimizing KVCache Management for Efficiently Serving LLM Coding Agents