arXiv:2611.26435cs.DCNov 2026

Manuscript Offprint

arXiv:2611.26435

Aggron: Aggressive Compression of Agentic KV Caches during Head-of-Line Stalls in the Request Queue

Rishabh Ravi, Tony Hong, Chen Wang, Yue Zhu, Mengmei Ye, Hubertus Franke, Fan Lai, Josep Torrellas

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract.

LLM agents run long, multi-turn programs whose contexts grow at every step, and serving them is limited by KV cache capacity. To alleviate this limitation, systems use context compression techniques, which typically wait until the KV cache crosses a large threshold and then summarize large spans of history at once, either in the background while the agent progresses or on the critical path. These summarizations can be done using the same model running on the same engine, or using the same or a different model running on extra hardware. When running on the same engine, summarization competes with the requests being served for both compute and memory capacity.

To maximize the cost-effectiveness of summarization, this paper presents a new serving system called Aggron. Aggron summarizes agentic requests at every turn and selectively summarizes only certain parts of the KV cache. As a result, Aggron retains accuracy and keeps summarization requests lightweight. Moreover, Aggron launches summarization requests from a separate Summarization Queue while the corresponding agentic request whose KV cache we want to compress is stalled in the main request queue due to head-of-line stalls. The Summarization queue utilizes compute and memory capacity left over by the head-of-line stalls in the main queue. Further, to maximize efficiency, the server issues summarizations only when it predicts that they can complete before the corresponding agentic request will finally execute. In our evaluation, we compare Aggron to state-of-the-art asynchronous summarization. At high load, Aggron reduces P99 program latency by 2727–31%31\%, and raises throughput by 1.341.34–1.40×1.40\times.

1. Introduction

Large Language Models (LLMs) are increasingly deployed as agents that invoke tools (Schick et al., 2023; Yao et al., 2023) to edit code, run shell commands, query databases, and browse the web to complete multi-step tasks autonomously (Anthropic, 2025; OpenAI, 2025; Yang et al., 2024b). Unlike a chat, an agentic task is a long-running program of many LLM calls, each followed by a tool use whose output is appended to the context. Executions of tens to hundreds of LLM calls are common. In production traces (Zhu et al., 2026b) that include Claude Code (Anthropic, 2025) and Codex (OpenAI, 2025) sessions, the 9090th-percentile session issues over 100100 model calls (241241 for Codex), and its context peaks at 186186K tokens (235235K for Codex). Even on frontier mixture-of-experts models with compact attention, the result is a large memory footprint—e.g., we compute that such a session holds 3636-4545 GB of context with Qwen3-235B-A22B (Qwen Team, 2025) and 1313-1717 GB with DeepSeek-V3’s latent attention (DeepSeek-AI, 2024).

A request’s context is stored in the KV cache (Pope et al., 2023) in the accelerator’s HBM memory. As the request runs, it accumulates context, which can consume substantial memory. Figure 1 shows how the increase in the context length of a request in tokens (X-axis) increases the KV cache size (Y-axis). The figure depicts lines for multiple models, and shows the KV cache size for 1M tokens (upper right side numbers). The figure also shows, in horizontal lines, the size of the HBM memory in popular machines. We can see that one GLM-4.5 (GLM-4.5 Team, 2025) request with a 128128K-token context fills 40 GB; two of them would fill 80GB, which is the memory of an H100 GPU.

Figure 1. KV cache size of a request vs. context length (assuming bf16 data types) for different models.

To serve multiple requests simultaneously, servers continuously batch requests based on specific scheduling policies (Zheng et al., 2024; Kwon et al., 2023; Yu et al., 2022) and availability of space in the KV cache. A request is batched only if its context fits in the KV cache. Agentic requests hold so much memory that, within a few requests, the KV cache saturates and the batch size freezes, leaving the GPU’s compute underused while requests wait in queues.

To avoid this problem, KV caches can be periodically summarized to shrink their size. A summarizer uses the record of the agent’s history to read or recompute the KV cache and then summarize it. Recent work shows that frontier agents that compact their history whenever it reaches 1212-1818K tokens and restart from the summary end up losing little to no task accuracy (Belcak et al., 2026). That work, however, reports only final accuracy, not whether compressing and restarting changes the agent’s trajectory and with it the cost to serve.

An open problem is how to simultaneously serve agentic and summarization requests under load on a shared server. In general, there are two approaches: synchronous and asynchronous. In synchronous summarization, the agent harness waits until the context approaches a certain threshold, and then stalls the agent while a summarization request executes. In asynchronous summarization (Chen et al., 2026b; Liu et al., 2026a), the harness lets the agent continue while a request summarizes the context. The agent runs on the full long context until the summarization completes. With synchronous summarization, the summarization is in the critical path, raising the mean and P99 latency. With asynchronous summarization, the summarization and agentic requests compete for memory and compute capacity. The top and middle rows of Figure 2 show a timeline of synchronous and asynchronous summarization, respectively. In the latter, the k+2 agentic execution takes longer due to contention. In both cases, summarization can add significant overhead.

To maximize the cost-effectiveness of summarization, this paper presents a new serving system called Aggron. Aggron reduces the overhead of summarization through several techniques. First, Aggron summarizes agentic requests at every turn, to limit the work performed per summarization operation, and to opportunistically hide summarization with the agent’s waiting time in the serving queue. In addition, Aggron selectively summarizes only certain parts of the KV cache, namely those that are likely to have less impact on the accuracy. Second, Aggron launches summarization requests from a separate Summarization Queue. A summarization is launched while the corresponding agentic request whose KV cache it wants to compress is stalled in the main request queue due to head-of-line stalls. The Summarization queue adds modest overhead because it utilizes compute and memory capacity left over by the head-of-line stalls in the main queue. Third, to maximize efficiency, the server issues a summarization only when it predicts that it can complete before the corresponding queued agentic request will finally execute. The server has information about waiting agentic requests and unused capacity. When there is no queue to hide behind, the server reverts to synchronous summarization. With Aggron, the resulting timeline of the summarization is shown in the bottom row of Figure 2. We can see that the execution time decreases.

Figure

Figure 2. Comparing different summarization strategies.Design comparisons of summarization strategies

We measure Aggron’s accuracy on real agentic tasks from four benchmarks, served on NVIDIA H100 NVL GPUs, and evaluate its P99 latency and throughput with a simulator calibrated against the same hardware. We use simulations to limit the cost of the many runs needed. Across three models (Qwen3.6-35B-A3B (Qwen Team, 2026b), Gemma-4-26B-A4B (Team, 2026), and GLM-4.7-Flash (GLM-4.5 Team, 2025)), Aggron’s accuracy stays within run-to-run noise of uncompressed execution on every benchmark (i.e., within 2.72.7 pp). Compared to the Slipstream (Chen et al., 2026b) and APEC (Liu et al., 2026a) state-of-the-art asynchronous summarization schemes, Aggron reduces P99 latency by 27%27\% and 31%31\%, reduces mean latency by 11%11\% and 15%15\%, and increases throughput by 1.34×1.34\times and 1.40×1.40\times, respectively.

This paper makes the following contributions:

∙\bullet A characterization of agentic serving under KV pressure, showing that requests spend most of their latency waiting for admission, and that selective summarization does not hurt accuracy.

∙\bullet Aggron, the first system to compress agentic requests opportunistically at the server in online, multi-tenant serving.

∙\bullet An evaluation of Aggron’s accuracy, trajectory divergence, and serving performance against state-of-the-art techniques on different models.

References (60)