Barter: Trading KV Retention for Workflow Progress in Tool-Interleaved LLM Serving
Abstract
In tool-interleaved large language model (LLM) serving, workflows alternate inference with external tool execution. Delays across dependent calls accumulate in end-to-end job completion time (JCT). Retaining key-value (KV) state during tool waits can avoid recomputing earlier context, but occupies GPU memory that other workflows need to proceed. Under contention, serving one request may therefore require reclaiming another workflow's retained state. The challenge is to balance current progress against future recomputation while tool-return times and subsequent calls remain unknown. We present Barter, a serving system that jointly decides which request to serve and which retained KV to reclaim. Using known context and observed workflow and tool histories, Barter compares the progress each choice enables with the cost of displacing state needed by other workflows. It can select a different request or continue current execution when reclamation is too costly. In trace-driven evaluations of sequential coding-agent workflows at five arrival rates, Barter reduces 90th-percentile (P90) JCT by 3.8-19.5% relative to Continuum in all tested conditions with medium, long, or variable tool waits. Mean-JCT effects depend on workload and arrival rate; both metrics improve at every rate in the variable-wait condition.
Create a lesson
Metadata
- Comments
- 11 pages, 7 figures, 2 tables
Related papers
A Matter of Stages: Energy-Latency Trade-offs in Multimodal LLM Serving
Shared title terminologycs.DCYifan Sun, Jiantong Jiang, Zhexiang Zhang et al.
μSmith: An Agentic Factory for the Fastest Specialized LLM Serving Engines
Shared title terminologycs.DCYaoyao Ding, Qidong Su, Baorun Mu et al.
RONDO: Segment-Level Continuous Batching for Multi-Tenant Flow-VLA Serving
Shared title terminologycs.DCJiahua Huang, Weiwei Lin, Wentai Wu et al.
Dependency-Aware Task Decomposition and Parallel Multi-LLM Execution on Serverless Workflows
Shared title terminologycs.DCJackson Beem, Amine Barrak
IndexServe: Disaggregating the Indexer as a Service for Efficient Sparse-Attention LLM Serving
Shared title terminologycs.DCYuzheng Wang, Yilong Luo, Junhao Hu et al.
AdaptShift: Reducing GPU Energy in LLM Serving under Changing Loads and Variable Clock Transition Delays
Shared title terminologycs.DCYunfan Cui, Kaixuan Zhang, Shuhao Zhang et al.