Manuscript Offprint

arXiv:2608.30830

Adaptive KV Retention for LLM Agents at Human-Approval Timescales

Minseo Choi, Ananya Joshi

Abstract

Unlike the seconds-scale tool-call pauses targeted by prior agent-serving systems, agentic LLM requests can be suspended for minutes or hours while waiting for human approval. We study how suspension and resumption affect GPU serving performance and develop a retention policy that balances active-serving capacity against future recomputation under uncertain approval waits. The central tension is severe because retaining suspended KV preserves fast resume but can consume enough GPU capacity to reduce active-serving goodput by 41%, while evicting it avoids that residency cost at the expense of nearly 10× higher resume latency when the request returns. We develop a tiered retention controller around GPU opportunity cost, which expresses the serving capacity consumed by preserving or reconstructing a suspended request's KV state in a common GPU-time cost. Within host memory, the controller selects between indefinite retention and load-indexed expiration using calibration wait samples, without requiring per-request wait prediction. On human-scale approval workloads, our controller improves active-request goodput by 23–51% over the vLLM baselines, 22–29% over MORI, and 41–52% over Continuum.

1 Introduction

Agentic LLM pipelines increasingly pause before consequential actions such as sending email, changing files, or running user commands. Coding assistants already wait for human approval when they request permission for such actions [2, 14, 5], and orchestration frameworks expose human approval as an interrupt primitive [8, 18]. Still, existing agent-serving systems, like MORI and Continuum, mainly study tool-call pauses on the scale of seconds [10, 19]. 1^{1} Human approvals, however, can last minutes to hours. This longer idle regime creates a retain-or-release tradeoff similar to serverless keep-alive policies, which preserve idle functions to avoid cold starts while limiting their resource footprint [16, 4].

A suspended request is not generating tokens, but retaining its key–value (KV) cache, the attention state computed for prior tokens, can still take resources away from active requests. Keeping the cache in GPU high-bandwidth memory (HBM) consumes serving capacity. Moving it to host dynamic random-access memory (DRAM) avoids that GPU holding cost but incurs transfer overhead, while discarding it eliminates the memory cost at the expense of recomputation when the request resumes. We summarize these tradeoffs as GPU opportunity cost: the active-serving capacity forgone to preserve or restore suspended KV state.

At human-approval timescales, this tradeoff shifts substantially. Large-scale email data reports human-response latencies on the order of tens of minutes [6], while human review of AI-agent-generated

1^{1}Continuum explicitly targets tool calls as short as ≤\leq 2 s, and MORI's coding-agent traces report median and 90% tool-call durations of 1.10 s and 2.03 s, respectively, while listing human approval as an example of a longer idle phase.

Preprint.

Figure

Figure 1: Regime-aware retention controller. Held-out waits select host-retain ( t2=∞t_2 = \infty) or load-indexed expiration t2(λ)t_2(\lambda) before serving; resume costs β2\beta_2 from host or β3\beta_3 after expiration ( §3\S3).

pull requests can extend to hours [20]. We therefore use 30 minutes as a reference wait scale for asynchronous approval, rather than as a fixed wait assumption. At this timescale, the resume latency becomes secondary (1s stall is 0.06% of the wait), while the GPU opportunity cost of retaining suspended state continues to accumulate throughout the wait.

It then follows that there is no single best host-retention timer for all approval workloads. If we were to model this regime using memoryless waits, such as an exponential distribution, the elapsed time is uninformative and expiration only adds churn. For heterogeneous short- and long-waiting populations, age can help separate contexts likely to resume soon from those likely to remain suspended.

Thus, our approach selects between indefinite host retention and load-indexed expiration using a calibration sample, then fixes the choice before the held-out serving run.

Our contributions are: (i) we quantify the cost of suspended-KV residency, showing a 41% goodput loss from enforced residency and a roughly 10×10\times resume latency increase after eviction; (ii) we formulate a regime-aware retention policy using GPU opportunity cost to choose among HBM, host DRAM, and recomputation without per-request wait prediction; and (iii) under host-memory pressure, our controller improves active-request goodput by 23–51% over the vLLM baselines, 22–29% over MORI, and 41–52% over Continuum.