Prune the Summary, Not the History: Source-Judged Compaction for Long-Horizon Agents
Guanghui Min, Chen Chen
Key points
From the paper's conclusion- We propose Source-Judged Compaction (SJC), a training-free post-processing step that scores each summary entry for whether it has a source in the environment outputs or the previous summary, and removes the entries that do not.
Abstract
Long-horizon LLM agents rely on context compaction: when the interaction history outgrows the context window, a compressor replaces it with a natural-language summary. We show that these summaries contain more than a record of what happened. Compaction prompts ask for decisions and next steps, so each summary mixes facts established by the environment with reasoning written by the compressor, and the agent cannot tell the two apart afterwards. In an analysis of a widely used structured compressor, 83% of failed runs trace back to an action that carries out a specific summary entry, most of which no environment output supports. We propose Source-Judged Compaction (SJC), a training-free post-processing step that scores each summary entry for whether it has a source in the environment outputs or the previous summary, and removes the entries that do not. It changes neither the agent nor the compressor and adds one inexpensive judge request per compaction. The judge is Jev, a non-generative decision model that answers the source question with a calibrated probability instead of text. On AppWorld and OfficeBench with two agent models, SJC improves cross-run reliability over the underlying compressor by 2.1%-8.9% without increasing the agent's token usage.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- SUMONE: A Simple and Efficient Summarizer for Plug-and-Play Agent MemoryarXiv · 2026
- SpecCompact: Accelerating LLM Agent Context Compaction with Slot-Parallel Semantic Speculative VerificationarXiv · 2026
- CompAct-Bench: A Benchmark for Working-Context Compaction in Long-Horizon Agent TasksarXiv · 2026
- Bud ContextCompact 2.0: Context Compaction for Agent Success and Accuracy with Small Language Models and Constrained Context WindowsarXiv · 2026
- Compact-Bench: Measuring What Context Compaction Costs Long-Horizon Coding AgentsarXiv · 2026
- RECAP: Training Long-horizon LLM Agents with Context CompactionarXiv · 2026