INQUIRING LINE

Two totally different tricks — deleting a model's memory, or shrinking the problem — both make it reason further and better. Why?

How do KV cache pruning and problem contraction achieve similar reasoning gains?

This explores why two very different techniques — one that deletes parts of a model's internal memory (the KV cache) as it works, and one that rewrites a problem into a smaller equivalent problem — both let models reason further and more accurately than simply letting the reasoning trace pile up.


This explores why two techniques that look nothing alike end up delivering the same kind of benefit: one prunes a model's internal memory (the KV cache) while it reasons, the other keeps rewriting the problem into a smaller version of itself. The short answer from the corpus is that both are ways of forgetting on purpose. They rest on the same bet — that most of what a model has already worked through is no longer needed, and carrying it forward costs more than it's worth.

The pruning approach treats reasoning as a tree of subtasks. Once a subtask is finished, its working-out is removed from the model's cache and only the result stays. The Thread Inference Model does this with simple rules and keeps reasoning accurately even when around 90% of the cache has been manipulated, which lets one model go past its context window and do work that would otherwise need a multi-agent system Can recursive subtask trees overcome context window limits?. Problem contraction gets to the same place from the other direction. Atom of Thoughts breaks a question into dependent sub-questions, solves some, then folds the answers into a new, simpler question that has the same answer as the original. Each step depends only on the current question, not on the history of how you got there Can reasoning skip historical context by contracting problems?. One edits the memory, the other edits the problem statement, but in both cases the current state is made to carry everything that matters.

Why this is safe is suggested by a third finding: intermediate reasoning tokens lose importance quickly as reasoning moves on. Keeping only the original instructions plus a recent window of thought gives roughly a 3x speedup with no training, and allows traces beyond 100k tokens Can models think longer by forgetting intermediate reasoning?. That is the empirical ground both techniques stand on. If old steps really did stay important, pruning and contraction would both damage accuracy; they don't, because the value of a finished step lives in its conclusion.

There's a useful distinction in what the gain actually is. These methods mostly free up room and compute so reasoning can run longer, rather than making each step smarter. A related line of work argues the real long-context bottleneck is the compute needed to turn old context into compact internal state, not memory capacity as such Is long-context bottleneck really about memory or compute? — contraction and pruning are cheap, rule-based ways of doing that conversion. A different route keeps the state outside the model instead of discarding it, in layered caches the model can read and write Can external state caches let models solve harder problems?. And a tiny network that just loops over its own compact reasoning state out-generalizes far larger models on hard puzzles Can tiny networks outperform billion-parameter models on hard puzzles?, which points the same way: a small, well-maintained state can beat a long transcript.

One caveat: the corpus has no head-to-head comparison of the two methods, so "similar gains" is a shared mechanism rather than a measured equivalence. They also fail differently. Pruning depends on the rules correctly identifying what's finished; contraction depends on the rewritten problem truly being equivalent to the original — a bad contraction silently changes the question, and there's no history left to catch it.


Sources 6 notes

Can recursive subtask trees overcome context window limits?

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.

Can reasoning skip historical context by contracting problems?

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.

Can models think longer by forgetting intermediate reasoning?

Most intermediate reasoning tokens become unimportant as reasoning progresses, so keeping only the instruction prefix and a recent window achieves 3x speedup without training while enabling traces beyond 100k tokens.

Is long-context bottleneck really about memory or compute?

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.

Can external state caches let models solve harder problems?

Prime Agent organizes persistent state in four levels (weights, context, persistent REPL plus subagents, disk-backed history) to let models read and write addressable state beyond their instruction stream. The approach isolates harness failures from model failures and reported gains on ARC-AGI-3, though specific components remain unablated.

Show all 6 sources
Can tiny networks outperform billion-parameter models on hard puzzles?

A single 7M-parameter two-layer network recursing on its own latent reasoning state reaches 45% on ARC-AGI-1, outperforming billion-parameter LLMs. Stripping away hierarchy and extra components isolated recursion as the key source of generalization.

Papers this line draws on 8

The research behind the notes this line reads — ranked by how closely each paper relates.