Should an AI shrink a problem down and forget the past, or keep a running summary of everything it's done so far?
Does bounded workspace via contraction outperform bounded workspace via summarization?
This explores two ways of keeping an AI's working context small during long reasoning or agent tasks: contraction, which rewrites the problem into a smaller self-contained version and throws the history away, versus summarization, which keeps a condensed record of what has happened so far.
This explores two ways of keeping an AI's working context small: contraction (rewrite the remaining problem into a simpler, self-contained one and drop the history) versus summarization (keep a compressed record of the history). The corpus has no head-to-head test of the two, so there is no clean winner to report. What it does have is a sharp picture of when each one works, and that turns out to be the more useful answer.
Contraction's case is strongest when the problem can be restated without loss. Atom of Thoughts breaks a question into a graph of dependent subquestions, solves the independent ones, and folds their answers into a new, simpler question that has the same answer as the original. Nothing from earlier steps needs to be carried forward, so compute and context go to the current problem rather than to re-reading old reasoning Can reasoning skip historical context by contracting problems?. A close cousin does the same thing at the level of the model's internal cache: the Thread Inference Model structures reasoning as a tree of subtasks and prunes the working memory of finished branches by rule, staying accurate even when about 90% of the cache has been discarded Can recursive subtask trees overcome context window limits?. Both rely on the same bet: a finished subtask only owes the future its result, not its story.
Summarization is the better fit when you can't know in advance what will matter later. ACON, which tunes natural-language guidelines for what an agent should keep when compressing its history, cut peak token use by 26 to 54 percent while improving task success Can prompt optimization cut agent token usage without retraining?. Its most telling result is that the right level of aggressiveness depends on the environment rather than the model: heavy pruning wins where tool outputs are noisy and verbose, while careful retention wins where small facts drive later decisions Should compression be aggressive or conservative in different environments?. That is effectively a boundary condition for contraction too. Contraction is the extreme end of aggressive pruning, so it should shine on cleanly decomposable problems like math and multi-step question answering, and be risky in open-ended agent work where a detail from step 3 quietly matters at step 40.
Two other notes sharpen the trade-off. Compression works best when it is uneven and aimed at the task: LLMLingua reaches up to 20x prompt compression by protecting instructions and questions while squeezing examples Can prompts be compressed without losing model performance?, and summaries trained against the downstream goal beat generic fluent ones Can reinforcement learning align summarization with ranking goals?. So a good summary already behaves a bit like a contraction, keeping what the next step needs rather than what happened. And any fixed-size state has a price: state-space models, which squeeze everything into a fixed latent state, provably lose to transformers at copying and retrieving exact content Can state-space models match transformers at copying and retrieval?.
The thing worth taking away is that the real question isn't which method shrinks context better, but whether the task has the memoryless property: can the current state fully stand in for the past? Where it can, contraction is cleaner because it never has to guess what to remember. Where it can't, you need a summary, and the quality of that summary depends on knowing what it is for. A related line of work suggests the bottleneck may not be storage at all but the compute spent turning discarded context into something the model can still use Is long-context bottleneck really about memory or compute?.
Sources 8 notes
Atom of Thoughts decomposes problems into DAGs and contracts subquestions into simplified equivalents, eliminating accumulated history while preserving answer correctness. This Markov property frees compute and context at scale, mirroring how humans reformulate rather than retain reasoning traces.
The Thread Inference Model demonstrates that reasoning structured as recursive subtask trees with rule-based KV cache pruning sustains accurate reasoning beyond context limits, even when manipulating 90% of the cache. This enables single models to replace multi-agent systems by handling full recursive reasoning internally.
Microsoft's ACON method reduces agent token consumption and improves task success by iteratively refining compression guidelines through failure analysis, not weight updates. This approach works across proprietary LLM agents and costs under $2 per benchmark.
ACON's guideline optimization shows that aggressive pruning works best in noisy, verbose environments like AppWorld, while conservative retention matters more in high-fidelity tasks like OfficeBench where subtle facts drive decisions. The choice depends on the task's information structure, not the model's capability.
LLMLingua achieves up to 20x prompt compression with only 1.5-point performance drops by allocating less compression to instructions and questions, more to demonstrations, then pruning tokens using a small model's perplexity scoring aligned to the target LLM.
Show all 8 sources
ReLSum trains summarizers using downstream relevance scores as RL rewards, producing dense, attribute-focused summaries instead of fluent prose. This alignment to the actual ranking metric improves recall, NDCG, and user engagement in production e-commerce search.
Two-layer transformers can copy exponentially long strings while state-space models are fundamentally limited by their fixed-size latent state. Empirically, transformers dramatically outperform SSMs at copying and context retrieval in both synthetic and pretrained settings.
Research shows the bottleneck is not memory capacity but the compute required to consolidate evicted context into fast weights during offline sleep phases. Performance improves with more consolidation passes, following a test-time scaling pattern on harder reasoning tasks.
Papers this line draws on 8
The research behind the notes this line reads — ranked by how closely each paper relates.
- ACON: Optimizing Context Compression for Long-horizon LLM Agents
- Recursive Language Models
- Thinking as Compression: Your Reasoning Model is Secretly a Context Compressor
- LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Models
- Beyond Context Limits: Subconscious Threads for Long-Horizon Reasoning
- Toward Efficient Agents: A Survey of Memory, Tool Learning, and Planning
- A Human-Inspired Reading Agent with Gist Memory of Very Long Contexts
- Repeat After Me: Transformers are Better than State Space Models at Copying