← Back to the issue of 7 November 2026
A reasoning model learns when to stop
Taught to prefer shorter endings at the points where it starts to overthink, a 7bn-parameter model cut its maths answers by over 40% without losing accuracy
The problem
Large reasoning models write long chains of thought and often keep deliberating after they have enough to answer, which raises the cost and latency of every answer. Existing compression methods work on whole reasoning trajectories, preferring shorter ones overall, and pay little attention to the local decision of whether more reasoning is needed at a given point.
The method
LoCo (Local Compression) detects candidate overthinking states in the model’s own reasoning traces and freezes the reasoning up to each such state. From there it regenerates shorter continuations that still reach a verified correct answer, and trains on the resulting state-conditioned preference pairs with DPO, so that the model learns when to continue and when to conclude.
Data come from self-generated traces of DeepSeek-R1-Distill-Qwen-7B on a maths-only training set: three rollouts per query, flagged steps re-examined by Qwen3-30B as a judge, eight regenerated continuations per step, pairs kept only if they save at least 300 tokens, at most three pairs per question. The model is trained for two epochs with a LoRA adapter on four H20 GPUs.
It is evaluated on five maths benchmarks (MATH-500, AMC 2023, Olympiad, AIME 2024, AIME 2025) and three coding benchmarks (MBPP, LiveCodeBench, CodeContests) against the base model and two compression baselines, DAST and TokenSqueeze, reporting accuracy, tokens and the area under the accuracy-versus-token-budget curve (AUC).
Key results
- Maths: completion length falls by 41.7–45.4% across the five benchmarks with accuracy maintained or improved (MATH-500 91.80% vs 91.88% for the base model; AMC23 91.56% vs 90.31%; Olympiad 62.78% vs 61.33%).
- On the harder sets LoCo has the highest accuracy, the highest AUC and the largest cuts among the methods compared: AIME24 accuracy 54.17% vs 50.83% with 7,364 tokens vs 13,493 (−45.4%); AIME25 40.42% vs 37.92% with 8,291 tokens vs 15,134 (−45.2%).
- Coding, with maths-only training: MBPP accuracy unchanged at 84.05% with 36.3% fewer tokens and AUC +1.53 points; LiveCodeBench 42.51% vs 41.77% with 24.7% fewer tokens; CodeContests 20.61% vs 18.48% with 23.4% fewer tokens.
- Baselines: DAST compresses mildly and lengthens answers on the harder maths sets and on code; TokenSqueeze compresses aggressively (for example −39.2% on MATH-500) but loses more accuracy as difficulty rises (−2.08 points on AIME24).
- Ablations show that local, state-conditioned pairs beat global pairs formed from the shortest and longest correct full rollouts.
Limitations
- Only one model, DeepSeek-R1-Distill-Qwen-7B, is trained and tested; larger models and other families are not.
- Training data are maths only; transfer is tested on three coding benchmarks but not on other kinds of task.
- AMC 2023 has 40 problems and AIME 2024 and 2025 have 30 each, so differences of a few points on them rest on few problems.
Why it matters
Long reasoning is a large part of what reasoning models cost to run. A method that teaches a model when it has thought enough, rather than to be short everywhere, cuts that cost while keeping accuracy on hard problems, and its transfer from maths to code suggests it changes a general habit of the model.