SelfCompact paper lets LLM agents decide when to compact context, cutting token cost 30-70%

DanielKhashabi · x · 2026-12-03

Researchers from JHU and Meta propose SelfCompact, a scaffold where the LLM agent itself decides when and how to compact its context via a compaction tool plus a lightweight rubric for firing/suppression timing. Unlike fixed-interval compaction, it avoids discarding partial results mid-derivation. Across 6 benchmarks (competitive math, agentic search) and 7 models, it matches or beats fixed-interval summarization, improving over no-summarization by up to 18.1 points on math and 5-9 on agentic search at 30-70% lower per-question cost, with no fine-tuning.

Original post →

More from coding & agent

coding & agent channel →