SpecCompact: Accelerating LLM Agent Context Compaction with Slot-Parallel Semantic Speculative Verification
Yulu An, Yifei Feng, Xiangyang Yin
Key points
From the paper's conclusion- We observe that structured summary slots can retain information when generated independently.
Abstract
LLM agents use context compaction to manage growing interaction histories, but summarizing long histories with large models can introduce substantial delays. Compaction therefore requires balancing information retention against latency. We observe that structured summary slots can retain information when generated independently. Based on this observation, we present SpecCompact, a framework that accelerates compaction through slot-parallel semantic speculation. SpecCompact fine-tunes a small drafter and generates slots in parallel. The target model verifies each proposed line and repairs rejected content, while subsequent drafting uses the updated slot prefix. System optimizations further reduce repeated context processing and model calls. Across AppWorld and $\tau^3$ benchmarks with two target models, SpecCompact achieves $2.04$--$5.63\times$ compaction speedups over Hermes-style summarization. Separate downstream evaluations reveal model- and task-dependent performance trade-offs. A user study within Hermes further shows an $8.68\times$ median compaction speedup.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Prune the Summary, Not the History: Source-Judged Compaction for Long-Horizon AgentsarXiv · 2026
- Persistent Context Graphs for Efficient Memory Compaction in LLM AgentsarXiv · 2026
- Bud ContextCompact 2.0: Context Compaction for Agent Success and Accuracy with Small Language Models and Constrained Context WindowsarXiv · 2026
- CompAct-Bench: A Benchmark for Working-Context Compaction in Long-Horizon Agent TasksarXiv · 2026
- SUMONE: A Simple and Efficient Summarizer for Plug-and-Play Agent MemoryarXiv · 2026
- RECAP: Training Long-horizon LLM Agents with Context CompactionarXiv · 2026