Continuum: Efficient and Robust Multi-Turn LLM Agent Scheduling with KV Cache Time-to-Live

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Li, Hanchen, He, Runyuan, Mang, Qiuyang, Zhang, Qizheng, Mao, Huanzhi, Chen, Xiaokun, Zhou, Hangrui, Cheung, Alvin, Gonzalez, Joseph, Stoica, Ion
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866910255957409792
author Li, Hanchen
He, Runyuan
Mang, Qiuyang
Zhang, Qizheng
Mao, Huanzhi
Chen, Xiaokun
Zhou, Hangrui
Cheung, Alvin
Gonzalez, Joseph
Stoica, Ion
author_facet Li, Hanchen
He, Runyuan
Mang, Qiuyang
Zhang, Qizheng
Mao, Huanzhi
Chen, Xiaokun
Zhou, Hangrui
Cheung, Alvin
Gonzalez, Joseph
Stoica, Ion
contents KV cache management is essential for efficient LLM inference. To maximize utilization, existing inference engines evict finished requests' KV cache if new requests are waiting. This policy breaks for agentic workloads, which interleave LLM calls with tools, introducing pauses that prevent effective KV reuse across turns. Since many tool calls have much shorter durations than human response multi-turn chatbot, it would be promising to retain the KV cache in during these tools. However, many challenges remain. First, we need to consider both the potential cost of recomputation or reloading (if offloading enabled) as well as the increasing queueing delays after eviction from GPU. Second, due to the internal variance of tool call durations, the method needs to remain robust under limited predictability of tool call durations. We present Continuum, a serving system to optimize job completion time for multi-turn agent workloads by introducing time-to-live mechanism for KV cache retention. For requests that generate tool calls, Continuum selectively pins the KV cache in GPU memory with a time-to-live value determined by the reload cost and potential queueing delay induced by eviction. When the TTL expires, the KV cache can be automatically evicted to free up GPU memory, providing robust performance under edge cases. When combined with program-level first-come-first-serve, Continuum preserves multi-turn continuity, and reduces delay for agentic workflows. Evaluations on real-world agents (SWE-Bench, BFCL, OpenHand) with Llama-3.1 8B/70B, Gemma-3 12B, and GLM-4.5 355B shows that Continuum improves the average job completion times by over 8x while improving throughput.
format Preprint
id arxiv_https___arxiv_org_abs_2511_02230
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Continuum: Efficient and Robust Multi-Turn LLM Agent Scheduling with KV Cache Time-to-Live
Li, Hanchen
He, Runyuan
Mang, Qiuyang
Zhang, Qizheng
Mao, Huanzhi
Chen, Xiaokun
Zhou, Hangrui
Cheung, Alvin
Gonzalez, Joseph
Stoica, Ion
Operating Systems
Artificial Intelligence
Networking and Internet Architecture
KV cache management is essential for efficient LLM inference. To maximize utilization, existing inference engines evict finished requests' KV cache if new requests are waiting. This policy breaks for agentic workloads, which interleave LLM calls with tools, introducing pauses that prevent effective KV reuse across turns. Since many tool calls have much shorter durations than human response multi-turn chatbot, it would be promising to retain the KV cache in during these tools. However, many challenges remain. First, we need to consider both the potential cost of recomputation or reloading (if offloading enabled) as well as the increasing queueing delays after eviction from GPU. Second, due to the internal variance of tool call durations, the method needs to remain robust under limited predictability of tool call durations. We present Continuum, a serving system to optimize job completion time for multi-turn agent workloads by introducing time-to-live mechanism for KV cache retention. For requests that generate tool calls, Continuum selectively pins the KV cache in GPU memory with a time-to-live value determined by the reload cost and potential queueing delay induced by eviction. When the TTL expires, the KV cache can be automatically evicted to free up GPU memory, providing robust performance under edge cases. When combined with program-level first-come-first-serve, Continuum preserves multi-turn continuity, and reduces delay for agentic workflows. Evaluations on real-world agents (SWE-Bench, BFCL, OpenHand) with Llama-3.1 8B/70B, Gemma-3 12B, and GLM-4.5 355B shows that Continuum improves the average job completion times by over 8x while improving throughput.
title Continuum: Efficient and Robust Multi-Turn LLM Agent Scheduling with KV Cache Time-to-Live
topic Operating Systems
Artificial Intelligence
Networking and Internet Architecture
url https://arxiv.org/abs/2511.02230