Bud ContextCompact 2.0: Context Compaction for Agent Success and Accuracy with Small Language Models and Constrained Context Windows
On the map: LLM agents and tool use → General LLM agent frameworks and benchmarks also fits: Agent memory systems
Abstract (arXiv)
Agents that work for many turns outgrow the context window of the model that serves them, and on small language models (SLMs) and constrained inference systems that window is small. Context compaction replaces older turns with a summary so a session can continue, but it is lossy, costs a model call, and can help or hurt depending on when it runs. We describe Bud ContextCompact 2.0, the compaction built into the Bud agent runtime, and evaluate it in two settings. On recall questions over recorded agent sessions, compaction to a 16K budget raised a 1.2B-parameter model's accuracy to 0.335, from 0.247 with truncation and 0.176 with its full 32K history (p < 0.001), and raised a 9B model from 0.515 (truncation) to 0.577 (p = 0.04). On 100 SWE-bench Verified tasks run end to end by a 27B reasoning model on a 49K-token window (556 graded sessions), compaction raised the resolve rate on long sessions from 41% to 53% (+12.3 points, 95% CI +1.6 to +23.0, McNemar p = 0.043), left short sessions unchanged, and used 13% fewer tokens per solved task at equal total cost. The main failure without compaction was not the history overflowing but a reasoning turn exhausting the room the history left. The gain has limits: it vanished under a 45-minute session budget, because each summary took a median of 161 s, and in a threshold study it appeared only when compaction triggered early enough to leave room. An 8B model submitted after about ten turns at 5-8K tokens and never needed compaction. We argue that the accuracy results transfer across hardware, including CPU inference, for an equivalent model and window, while the time cost scales with the hardware and must be budgeted for.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in General LLM agent frameworks and benchmarks, one of 16 directions in LLM agents and tool use. Builds on 13 of its 18 references that are in the map. Submitted 18 Oct 2026.
Builds on
13 of 18 references.
Closest ancestors · 1
Same direction, newest first
Other references · 12
- 2025Qwen3 Technical Reportcited by 9,994
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 9,589
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 6,685
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,765
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 2,069
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,655
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,559
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 1,155
- 2025τ2-Bench: Evaluating Conversational Agents in a Dual-Control Environmentcited by 797
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 672
- 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compressioncited by 500
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Benchmarks Are Surprisingly Compaction-Friendly
- 2026CompAct-Bench: A Benchmark for Working-Context Compaction in Long-Horizon Agent Tasks
- 2026Self-Compacting Language Model Agents
- 2026CTXAgent - Self-Controlled Context Management of LLM Agents
- 2025ACON: Optimizing Context Compression for Long-horizon LLM Agents
- 2026Parallel Context Compaction for Long-Horizon LLM Agent Serving
- 2026ContextPilot: Teaching Agents for Proactive Context Management via Fine-grained RL
- 2025Agentic Context Engineering: Evolving Contexts for Self-Improving Language Models