KVFlow: Efficient Prefix Caching for Accelerating LLM-Based Multi-Agent Workflows
Zaifeng Pan, Ajjkumar Patel, Yipeng Shen, Zhengding Hu, Yue Guan, Wan-Lu Li, Lianhui Qin, Yida Wang, Yufei Ding
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Efficient LLM Serving for Agentic Workflows: A Data Systems Perspective 引用了 Generative Agents: Interactive Simulacra of Human Behavior
- Efficient LLM Serving for Agentic Workflows: A Data Systems Perspective 引用了 SGLang: Efficient Execution of Structured Language Model Programs
- Reflexion: language agents with verbal reinforcement learning 引用了 Generative Agents: Interactive Simulacra of Human Behavior
- FastTTS: Accelerating Test-Time Scaling for Edge LLM Reasoning 引用了 SGLang: Efficient Execution of Structured Language Model Programs
- ICaRus: Identical Cache Reuse for Efficient Multi-Model Inference 引用了 Reflexion: language agents with verbal reinforcement learning
- ICaRus: Identical Cache Reuse for Efficient Multi-Model Inference 引用了 SGLang: Efficient Execution of Structured Language Model Programs
- LRAgent: Efficient KV Cache Sharing for Multi-LoRA LLM Agents 引用了 Reflexion: language agents with verbal reinforcement learning
- LRAgent: Efficient KV Cache Sharing for Multi-LoRA LLM Agents 引用了 ICaRus: Identical Cache Reuse for Efficient Multi-Model Inference
- SGLang: Efficient Execution of Structured Language Model Programs 引用了 Generative Agents: Interactive Simulacra of Human Behavior
引用它的顶会 Paper6
- Efficient LLM Serving for Agentic Workflows: A Data Systems PerspectiveNoppanat Wadlom, Junyi Shen, Yao LuSIGMOD 2026 · 14 次引用
- ICaRus: Identical Cache Reuse for Efficient Multi-Model InferenceSunghyeon Woo, Jaeeun Kil, Hoseung Kim, Minsub Kim 等ICLR 2026 · 7 次引用
- LRAgent: Efficient KV Cache Sharing for Multi-LoRA LLM AgentsHyesung Jeon, Hyeongju Ha, jae-joon kimICML 2026 · 5 次引用
- Beyond Accuracy: Unveiling Inefficiency Patterns in Tool-Integrated ReasoningQisheng Su, Shiting Huang, Zhen Fang, Ziyan Chen 等ACL 2026 · 3 次引用
- FastTTS: Accelerating Test-Time Scaling for Edge LLM ReasoningHao Mark Chen, Zhiwen Mo, Guanxi Lu, Shuang Liang 等ASPLOS 2026 · 1 次引用
它引用的 Paper21
- Reflexion: language agents with verbal reinforcement learningNoah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan 等NeurIPS 2023 · 5,828 次引用
- CAMEL: Communicative Agents for "Mind" Exploration of Large Language Model SocietyGuohao Li, Hasan Hammoud, Hani Itani, Dmitrii Khizbullin 等NeurIPS 2023 · 1,975 次引用
- Generative Agents: Interactive Simulacra of Human BehaviorJoon Sung Park, Joseph C. O'Brien, Carrie Jun Cai, Meredith Ringel Morris 等UIST 2023 · 1,882 次引用
- Efficient Streaming Language Models with Attention SinksGuangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han 等ICLR 2024 · 1,714 次引用
- SGLang: Efficient Execution of Structured Language Model ProgramsLianmin Zheng, Liangsheng Yin, Zhiqiang Xie, Chuyue Sun 等NeurIPS 2024 · 1,586 次引用
相关 Paper
- GraphFlow: A Graph-Based Workflow Management for Efficient LLM-Agent ServingAo Li, Shangpeng Yang, Fahao Chen, Tianheng Xu 等ICML 2026
- HEXGEN-FLOW: Optimizing LLM Inference Request Scheduling for Agentic Text-to-SQLYou Peng, Youhe Jiang, Wenqi Jiang, Chen Wang 等ICDE 2026
- ThunderAgent: A Fast, Simple, and Program-Aware Agentic Inference SystemHao Kang, Ziyang Li, Xinyu Yang, Weili Xu 等ICML 2026 · 14 次引用
- CacheSlide: Unlocking Cross Position-Aware KV Cache Reuse for Accelerating LLM ServingYang Liu, Yunfei Gu, Liqiang Zhang, Chentao Wu 等FAST 2026 · 14 次引用
- KVCOMM: Online Cross-context KV-cache Communication for Efficient LLM-based Multi-agent SystemsHancheng Ye, Zhengqi Gao, Mingyuan Ma, Qinsi Wang 等NeurIPS 2025 · 42 次引用
