Self-Improving Long-Horizon Reasoning by Learning Summaries from Local Continuations

Haoqun Cao, Tengyang XiearXiv 2026

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?

Figure 1: Left: Accuracy on the 64 independent multiplication problems, averaged in groups of eight. Each of the 24 instances is sampled 16 times. The last point covers Problems 57 to 63, and shaded bands show one standard error over the instances. The dashed line is the working accuracy, the accuracy of the answers given before the first cut, pooled over methods. Without truncation the solver declines steadily to almost zero. All truncation methods stay above 0.6, and Trained stays close to Oracle. Right: one run at its first cut, which falls in the middle of Problem 13.

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).
Table 1: Main results on mathematical reasoning and Reasoning Gym under a 32k solver-token budget. Accuracy is reported in percent, as the mean over 32 runs per problem (avg@32), followed by one standard error over problems. ∆Single and ∆Base denote improvements of Trained over Single and Base, respectively, in percentage points. They are computed before rounding, and their standard errors are computed from the per-problem differences. Boldface indicates the highest mean accuracy in each row.

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

Abstract

Reasoning models degrade as their context grows, so longer reasoning traces do not by themselves give longer effective horizons. One way to extend the horizon is to compress the reasoning history into a compact state from time to time and continue from the state. Existing methods train the state with the final-answer reward or distill it from a stronger model. Neither signal is tailored to measure the contribution of the state alone. We observe that a reasoning model that degrades over long trajectories still behaves reliably in short contexts. We aim to preserve this short-context behavior when compressing the reasoning history. Motivated by this, we train a separate summarizer with Delta-KL, a reward computed from the frozen reasoning model's token-level predictions on sampled continuations, and run inference by truncating the trace, summarizing it, and continuing from the summary (TruSuCo). Training uses a few thousand questions with 4k-token reasoning prefixes and does not need answers or external teachers. Under a fixed 32k-token budget, the trained summarizer improves on vanilla reasoning and on an untrained summarizer in all nine settings across mathematical benchmarks and Reasoning Gym puzzles, by up to 7.7 points and 12 points, respectively. The improvement over vanilla reasoning grows with the budget. At 128k tokens, our method outperforms it by 10 points on AIME 2024--2026. Analyses show that truncation prevents the collapse of vanilla reasoning and that the trained summaries retain more of the reasoning history.
BibTeX
@misc{cao2026self,
  author = {Haoqun Cao and Tengyang Xie},
  title = {{Self-Improving Long-Horizon Reasoning by Learning Summaries from Local Continuations}},
  year = {2026},
  eprint = {2611.31621},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.31621},
}
Figure