TL;DR
Large language models get noticeably dumber as their own chain of thought drags on, trapped in the clutter of a ballooning context window. This paper shows how to keep a reasoning model sharp indefinitely by training a separate "summarizer" model to periodically clean up the workspace—using only the frozen reasoning model’s own short-context behavior as the teacher. No ground-truth answers, external verifiers, or giant teacher models required.
What Problem Does This Paper Address?
Scaling test-time compute—letting an LLM "think" for tens of thousands of tokens—has become a go-to recipe for solving hard problems. But there is a catch: long context windows don't guarantee reliable long-horizon reasoning. Even when a model is just reading its own earlier scratchpad, its accuracy degrades as the text piles up, often spiraling into repetitive loops or outright giving up.
The natural fix is context compaction: periodically pause, summarize the progress so far, throw away the raw history, and continue from the summary. Existing methods train these summarizers using either final-answer rewards (which creates a noisy credit-assignment nightmare: did we fail because the summary was bad, or because the math 10,000 tokens later was hard?) or distillation from massive, frontier teacher models. The authors ask: can a model learn to summarize its own thoughts without any external answers or stronger teachers?
Methods
The core intuition is delightfully simple: even a model that collapses at 30,000 tokens reasons quite reliably at 4,000 tokens. Therefore, its healthy, short-context self can act as a teacher for how to compress history. A good summary is simply one that makes the solver predict the exact same next steps as it would if it still had the full, uncorrupted 4,000-token prefix in front of it.
The authors pair two components—keeping the reasoning model ("solver") completely frozen and only training a separate instruction-following "summarizer" model:
- TruSuCo (Truncate, Summarize, Continue): At inference time, once the solver generates $K$ tokens (e.g., 4,096), the trace is cut. The last $k$ tokens (128) are kept verbatim as a smooth "tail," while the preceding tokens are compressed by the summarizer into a compact state (capped at 512 tokens). This summary + tail is pasted right back into the solver's open assistant turn as if it were its own ongoing thought, and generation continues.
- Delta-KL Reward: Because text summaries are discrete, you can't backpropagate gradients directly through them. Instead, the summarizer is trained via reinforcement learning (GRPO, a standard group-relative policy optimization algorithm) using a novel reward called Delta-KL. For a 4k reasoning prefix, the authors sample continuation "probes" from the frozen solver. They then measure the token-level log-probability differences of those probes when conditioned on the candidate summary versus the full prefix. Crucially, they reweight the objective to penalize lazy shortcuts—specifically giving higher weight to tokens that couldn't be predicted just by copying the verbatim tail—and add a small length penalty so summaries don't get cut off mid-sentence.
Datasets
- Synthetic Verification: A custom sanity-check task featuring 64 independent 3-digit by 2-digit multiplication problems in a single prompt.
- Mathematics: Trained on ~2,500 unfinished 4k-token reasoning prefixes from DeepScaleR (using zero ground-truth answers). Evaluated on 220 Olympiad-level problems across AIME 2024–2026, BeyondAIME, and HMMT Feb 2025.
- Puzzles: Trained and evaluated on procedurally generated logic puzzles from Reasoning Gym—specifically Zebra, Sokoban, and Futoshiki (with Zebra tested on an unseen, harder difficulty level).
Key Insights and Ideas
- Context length alone is toxic: In the 64-problem multiplication test, later problems don't even depend on earlier ones, yet vanilla reasoning accuracy plummets from 91% down to under 5% by the end. Simply throwing away old tokens prevents this collapse.
- Truncation stops degeneration, but content drives accuracy: Naive truncation (just copying the last few hundred tokens) breaks models out of repetitive loops and prevents "give-up" spirals. However, in stateful puzzles like Sokoban—where coordinate conventions and goal locations are established early—naive truncation loses vital setup data. Trained summaries preserve early foundational facts.
- Predicting the future teaches you to remember the past: Even though Delta-KL never explicitly grades "summary quality," optimizing a summarizer to preserve future token distributions organically boosts fact recall and slashes hallucinated summary items.
- Short-horizon training generalizes to massive horizons: Summarizers trained exclusively on single 4k-token cuts for just 80 optimization steps (~4–6 hours on 2–3 H100 GPUs) generalize seamlessly when chained across 128k-token marathons.
Key Results
Evaluated with DeepSeek-R1-Distill-1.5B and Qwen3-4B-Instruct solvers, TruSuCo + Delta-KL (Trained) consistently beats both uninterrupted vanilla reasoning (Single) and TruSuCo with an out-of-the-box summarizer (Base):
- 32k Token Budget: Trained improves over Single and Base across all nine evaluated settings, winning outright in seven of them (beating Single by up to +7.7 percentage points on AIME and Base by up to +12.0 points on Futoshiki).
- Scaling to 128k Tokens: While vanilla reasoning plateaus early, TruSuCo keeps climbing. At a 128k budget with the 4B solver, Trained beats Single by +10.3 points on AIME 2024–2026 (reaching 63.3%) and +17.2 points on Zebra.
- Efficiency: By bounding active context (keeping at most 8 summaries in memory), peak KV-cache memory stays flat at ~0.7 GB per sequence even at a 128k budget, running faster and using fewer FLOPs (0.49 PFLOPs vs. 0.70 PFLOPs) than vanilla 128k generation—at the cost of hosting a separate summarizer's weights (~8 GB for 4B).
Limitations and Future Work
- Two-model overhead: Running a separate summarizer adds extra model weights to GPU memory (~8 GB for the 4B setup), and a separate summarizer was trained per puzzle family rather than one universal model.
- Sequential attempts can still win when base odds are decent: A strong baseline called Reasoning Cache (RC)—which runs full 16k-token attempts from scratch and passes a cache between tries—outperforms TruSuCo at 128k on 4B Math (+4.2 points) and Zebra (+2.6 points) because it keeps taking fresh swings even after finding an answer. However, RC struggles when a single attempt's context is too long for the solver to survive, and the authors note Delta-KL could actually be adapted to train RC's caches.
- Frozen solver: The solver itself never learns during this process. Applying RL to train the solver jointly on top of TruSuCo's compact Markov states is a prime next step.
Summary updated