arXiv · 2611.36233
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.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Longji Yao, Xuan Mo, Jialun Li, Weigang Wu. 2026-11-26. Barter: Trading KV Retention for Workflow Progress in Tool-Interleaved LLM Serving. https://arxiv.science/abs/2611.36233
Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.