As Large Language Models (LLMs) evolve from simple chatbots into autonomous "agents" capable of coding, browsing the web, and executing shell commands, they are hitting a massive wall: memory. Unlike a quick chat, an agentic task can involve hundreds of steps, each appending more data to a growing history.
In a new paper, researchers from the University of Illinois and IBM Research introduce Aggron, a serving system designed to keep these long-running agents fast and efficient by rethinking how we compress their memory.
TL;DR
Aggron is a novel LLM serving system that aggressively compresses the memory footprint (KV cache) of agentic requests. By selectively summarizing natural language "prose" while requests are stalled in the queue, it hides compression latency and boosts throughput by up to 1.4x without sacrificing task accuracy.
What Problem Does This Paper Address?
The "brain" of an LLM during a task is its KV cache, a chunk of high-speed GPU memory (HBM) that stores the context of the current session. For agents, this context grows relentlessly. As shown in Figure 1, a single request using a model like GLM-4.5 can fill 40GB of memory with just 128K tokens. On an H100 GPU with 80GB of memory, you could only serve two such requests simultaneously.
When memory fills up, new requests are stuck in a "head-of-line stall," waiting in a queue for memory to free up. Existing solutions like pruning (dropping old tokens) often break agents because, as Figure 5 illustrates, agents frequently revisit old parts of their history. Summarization is a better alternative, but it’s compute-heavy and usually adds significant latency to the "critical path" of the request.
Methods
Aggron introduces a system-level approach to "aggressive" but "safe" compression:
- Selective Summarization: Aggron distinguishes between "prose" (reasoning, search results) and "non-prose" (code snippets, structured tool outputs). It only summarizes the prose, keeping technical data verbatim to ensure the agent doesn't lose track of variable names or logic.
- Opportunistic Execution: Instead of summarizing while the agent is running, Aggron identifies requests waiting in the admission queue. It performs summarization during this wait time, effectively "hiding" the latency.
- Separate Summarization Queue: To prevent summarization tasks from stealing resources from active agents, Aggron uses a dedicated queue that only utilizes compute and memory left over when the main queue is blocked.
- Queue-Depth Dependent Thresholding: The deeper a request is in the queue, the more time it has to wait. Aggron uses this to its advantage, compressing requests at the back of the line more aggressively than those near the front.
- Frozen Summaries: Rather than re-summarizing old summaries (which leads to "information rot"), Aggron appends summaries as frozen segments. This keeps the memory footprint small while preserving the validity of the cached history.
Datasets
The researchers evaluated Aggron using a mix of real-world production traces and rigorous agentic benchmarks:
- Production Traces: TraceLab (including Claude Code and Codex sessions) and Azure conversational traces.
- SWE-bench Verified: A benchmark for resolving real-world GitHub issues.
- Terminal-Bench: Tasks involving complex command-line interactions.
- DeepResearch Bench: Long-horizon web research and reporting.
- MCPMark: Tool use over the Model Context Protocol.
Key Insights and Ideas
- The Queue is a Resource: Traditionally, queuing is seen as a failure of the system. Aggron treats it as "slack" time that can be harvested to optimize the very requests that are waiting.
- Pruning is the Wrong Tool for Agents: Figure 5 proves that agents don't just look at the "recent" past; they jump back to early instructions or data. Summarization preserves this "meaning" where pruning would simply delete it.
- Not All Data Should Be Compressed: Summarizing code is a recipe for disaster. By protecting "non-prose" regions, Aggron maintains high accuracy even with aggressive compression ratios.
- Hiding in Plain Sight: By comparing different strategies in Figure 2, the authors show that Aggron’s ability to hide summarization in the "admission wait" is what allows it to outperform standard asynchronous methods.
Key Results
Aggron was tested against state-of-the-art systems like Slipstream and APEC. The results are striking:
- Throughput: Aggron increases serving throughput by 1.34× to 1.40×.
- Latency: It reduces P99 program latency by 27–31% at high loads.
- Accuracy: Across all benchmarks, Aggron’s accuracy remained within the "noise floor" (within 2.7 percentage points) of uncompressed execution.
- Memory Efficiency: On production traces, Aggron reduced KV memory usage by up to 1.57×.
Limitations and Future Work
While Aggron is highly effective, the authors note a few areas for growth:
- The Reset Ceiling: Eventually, even compressed context hits the model's absolute maximum window. Aggron handles this with a "reset" that summarizes everything, but this is a rare and expensive fallback.
- Multi-GPU Scaling: The current work focuses on single-GPU or small-cluster serving. Future work could explore routing summarization tasks to dedicated "summarizer" GPUs to further decouple compression from execution.
- Dynamic Classification: While the current prose/non-prose classification is effective, more sophisticated, model-driven ways to identify "compressible" regions could yield even higher savings.
Summary updated