Beyond Token Savings: A Systematic Study of Context Compression in LLM Agents
On the map: LLM agents and tool use → Software engineering coding agents also fits: Agent memory systems
Abstract (arXiv)
As LLM agents tackle longer tasks, they increasingly compress growing histories of reasoning, actions, and tool outputs. Compression can reduce token use, but it also changes the information available for later decisions. Existing agentic harnesses bundle decisions about what to compress, when to compress, and how much to remove into fixed policies. A systematic characterization is needed to disentangle these decisions and reveal how each affects task success and execution cost. We systematically vary these decisions across three open-weight models on SWE-bench Verified and Terminal-Bench 1.0. Across nearly 35,000 agent runs, we measure task success, token use, end-to-end latency, and estimated cost. We find that fewer tokens need not mean faster or cheaper execution: on Terminal-Bench with Qwen, policies using roughly one-third as many tokens can take 20-80% longer than the uncompressed agent. Policies with similar overall success can solve different tasks, while the same policy can perform quite differently across models. Our results motivate evaluating compression by its effects on agent execution and tailoring policies to the task, model, and workload.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 31 of its 43 references that are in the map. First posted on arXiv 26 Sep 2026.
Builds on
31 of 43 references.
Closest ancestors · 11
Same direction, newest first
- 2026From LLM Inference to Agentic Workloads: Characterization and Implications for Serving Systems15 Aug
- 2026Architectural Implications of Agentic AI Workflows5 Aug
- 2026Agentic Coding in the Wild: Characterizing GitHub Copilot Traces at Production Scale30 Jul
- 2026CoACT: Action-Preserving Observation Compression for Coding Agents3 Jul
- 2026TokenPilot: Cache-Efficient Context Management for LLM Agents15 Jun
- 2026How Coding Agents Fail Their Users: A Large-Scale Analysis of Developer-Agent Misalignment in 20,574 Real-World Sessions28 May
- 2026KAIROS: Stateful, Context-Aware Power-Efficient Agentic Inference Serving17 Apr
- 2025Towards Understanding, Analyzing, and Optimizing Agentic AI Execution: A CPU-Centric Perspective1 Nov
- 2025Reducing Cost of LLM Agents with Trajectory Reduction28 Sep
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
Other references · 20
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,295
- 2026Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfacescited by 515
- 2025LLMs Get Lost In Multi-Turn Conversationcited by 400
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023Prompt Cache: Modular Attention Reuse for Low-Latency Inferencecited by 255
- 2024Mooncake: A KVCache-centric Disaggregated Architecture for LLM Servingcited by 193
- 2024Same Task, More Tokens: the Impact of Input Length on the Reasoning Performance of Large Language Modelscited by 150
- 2025ACON: Optimizing Context Compression for Long-horizon LLM Agentscited by 126
- 2025Context Length Alone Hurts LLM Performance Despite Perfect Retrievalcited by 118
8 more
- 2024HiAgent: Hierarchical Working Memory Management for Solving Long-Horizon Agent Tasks with Large Language Modelcited by 101
- 2024Preble: Efficient Distributed Prompt Scheduling for LLM Servingcited by 68
- 2025The Complexity Trap: Simple Observation Masking Is as Efficient as LLM Summarization for Agent Context Managementcited by 40
- 2025The Cost of Dynamic Reasoning: Demystifying AI Agents and Test-Time Scaling from an AI Infrastructure Perspectivecited by 38
- 2024Distance between Relevant Information Pieces Causes Bias in Long-Context LLMscited by 15
- 2026Toward Reliable Context Compression for Long-Horizon Agents: An Empirical Study of Execution Instabilitycited by 5
- 2026Characterization of Multi-Model Agentic AI Systems on General Tasks via Trace-Driven Simulationcited by 3
- 2026Rethinking AI Cloud Infrastructure for Agentic Serving Systems with the Aries Experimentation Frameworkcited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Control Under Compression: Reliability Frontiers for Tool-Using Agents
- 2026Experience Compression Spectrum: Unifying Memory, Skills, and Rules in LLM Agents
- 2026TRACER: Per-Tool Context Retention for LLM Agents via Consequence-Attributed Reinforcement Learning
- 2026FOCUS: Training-Free Decision-Preserving Context Compression for LLM Agents
- 2026Token Reduction Is Not Cost Reduction
- 2026A Self-Evolving Framework for Efficient Terminal Agents via Observational Context Compression
- 2026Adapting Context Compression for Long-Horizon Agents with Counterfactual Continuations
- 2026ACM: Agentic Context Management for Long Horizon Tasks