Learning Agent Execution for KV-Cache Management in Agentic Serving
cs.AI
Submitted: 2026-07-16
Updated: 2026-11-30
Code: https://github.com/crewAIInc/crewAI
License: http://creativecommons.org/licenses/by/4.0/
The gist: Multi-agent LLM applications are gaining wide adoption, in which each user task is handled by several specialized agents, and each agent repeatedly revisits its own growing history…
Terminology
Abstract
Multi-agent LLM applications are gaining wide adoption, in which each user task is handled by several specialized agents, and each agent repeatedly revisits its own growing history, creating substantial opportunities for prefix KV-cache reuse. Existing LLM serving systems manage the KV cache in two ways. The first manages it reactively with recency-based policies, which can evict the KV cache of an agent's context before the agent's next request, significantly increasing latency and reducing throughput. The second leverages agent-level information to guide eviction and prefetching. However, these systems need prior knowledge of the application, either an agent graph declared by the operator or a model trained offline. Our key insight is that future KV-cache reuse is determined by agent execution and thus can be learned online. We present CacheScout, an agent-aware KV-cache runtime layer for multi-agent LLM serving that needs no agent graph or offline training. CacheScout learns agent transitions online and uses them to guide cache eviction and prefetching, without modifying the serving engine. We evaluate CacheScout on real-world multi-agent workloads with two hybrid models against state-of-the-art KV-cache management systems. Compared with vLLM, CacheScout improves the GPU KV-cache hit rate by up to 38 percentage points, reduces mean time to first token (TTFT) by up to 78%, lowers mean per-request end-to-end latency by up to 53%, and increases request throughput by up to 15%.
Sources
- InferCept: Efficient Intercept Support for Augmented Large Language Model Inference
- TokenCake: A KV-Cache-centric Serving Framework for LLM-based Multi-Agent Applications
- Training Verifiers to Solve Math Word Problems
- DeepResearch Bench: A Comprehensive Benchmark for Deep Research Agents
- EVICPRESS: Joint KV-Cache Compression and Eviction for Efficient LLM Serving
- Retrieval-Augmented Generation for Large Language Models: A Survey
- SAGA: Workflow-Atomic Scheduling for AI Agent Inference on GPU Clusters
- Deep Research Agents: A Systematic Examination And Roadmap
- Nalar: An agent serving framework
- Continuum: Efficient and Robust Multi-Turn LLM Agent Scheduling with KV Cache Time-to-Live
- LMCache: An Efficient KV Cache Layer for Enterprise-Scale LLM Inference
- DroidSpeak: KV Cache Sharing for Cross-LLM Communication and Multi-LLM Serving
- Autellix: An Efficient Serving Engine for LLM Agents as General Programs
- Sherlock: Reliable and Efficient Agentic Workflow Execution
- Parallelizing Tool Execution and LLM Generation for Low-Latency Agent Serving
- PentaRAG: Large-Scale Intelligent Knowledge Retrieval for Enterprise LLM Applications
- Agent.xpu: Efficient Scheduling of Agentic LLM Workloads on Heterogeneous SoC
- Efficient Guided Generation for Large Language Models
- VeriCache: Turning Lossy KV Cache into Lossless LLM Inference
- A Policy-Driven Runtime Layer for Agentic LLM Serving
Related papers
- Beyond Moral Performance: Empirical Assessment of LLMs' Moral Competence Through Judgment Stability
- K12Vista: Exploring the Boundaries of MLLMs in K-12 Education
- A Matter of TASTE: Improving Coverage and Difficulty of Agent Benchmarks
- FlowSteer: Towards Agents Designing Agentic Workflows via Reinforced Progressive Canvas Editing
- Tokengeist: Multi-Turn Attribution Tracing in Agentic Conversations
- VESTA: Visual Exploration with Statistical Tool Agents