Skip to content

Where Should a Reasoning Model Stop? Local Preference Learning for Compression

THE ARGUMENT

LoCo's contribution is not shorter reasoning overall but recasting compression as a state-conditioned preference over whether to continue or conclude, supervised by self-generated, verifiable short continuations.

On this page

Your team is holding a quote from an inference vendor: same model, they say, roughly half the output tokens, accuracy holds. Do you sign? Right now your evidence would be two curves, average output length and accuracy, and whichever one looks better on the slide. That comparison misleads you, because length is the sum of a whole reasoning process and tells you nothing about which step the money went to, or whether that step was necessary. Inside a single long derivation, the model may have had enough information to answer several hundred tokens before it actually stopped, then spent the rest re-verifying, rewriting the same computation, or restating the conclusion. The paper calls this overthinking, and its central claim is that existing compression methods mostly look at how long a trajectory is rather than at whether further reasoning is warranted at a particular point [1].

The cost is not length, it is failing to stop

Long-chain reasoning means the model writes out a derivation before answering: forming hypotheses, computing, checking back, confirming. That derivation is the chain-of-thought (CoT), and it is where the bill comes from, since more output tokens mean slower decoding, more memory, and higher cost per request [1].

The paper's target is not length as such but the failure to stop when stopping is warranted. At some step the model already holds enough information to support the correct answer, yet keeps generating: re-verifying, rewriting the computation differently, deriving the conclusion a second time. The paper calls this overthinking, defined as continuing to generate reasoning after the current state already contains sufficient information to answer [1]. When the problem is within the model's capability, the paper argues, overthinking is tied more to preference than to capability: the model prefers to keep thinking over stopping.

This is where trajectory-level methods fall short. They treat a complete solution as the unit of comparison, preferring short correct solutions to long correct solutions. That does compress length, but it says nothing about where the redundancy sits. Given two correct solutions, one long and one short, an overall preference tells you the short one is better; it does not tell you at which step the long one started spinning. What the model needs on the next problem is exactly that step-level judgement.

Finer-grained methods go further, deleting redundant sentences, compressing individual steps, or shortening continuations from intermediate states. But the object of compression is still the trajectory itself, meaning which part to delete or shorten. LoCo changes the question: not what should be removed, but whether reasoning should continue from this state at all. The right answer differs across states within the same trace, since some states call for more computation and others call for concluding, and that is what local means here [1].

Three stages: detect a state, regenerate shorter, then prefer

LoCo (Local Compression) runs in three stages, and all training data comes from the model's own mathematical traces, with no external annotation [1].

StageInputOutput
1. Local overthink detectionA full chain-of-thought generated by the model itselfReasoning states (prefix positions) judged as ready to conclude
2. Verified continuation generationFrozen reasoning prefix plus the gold answerShorter continuations whose answers are equivalent to gold
3. Local preference learningShort continuation and original continuation from the same prefixState-conditioned preference pairs for DPO

One technical detail is easy to skip: the prefix is frozen. A prefix is everything written from the start of the problem up to the end of step i. Freezing it means training never rewrites the earlier derivation; the comparison is only about what gets written next. Both members of a preference pair therefore share an identical context, and the only variable is whether to keep reasoning, which isolates the decision cleanly.

The third stage uses DPO, Direct Preference Optimization, which skips a separate reward model and directly adjusts the model on pairs of a better and a worse response [1]. Here the better response is the short verified continuation and the worse one is the model's original long continuation. The training signal is therefore not be shorter in general, but at this state, the short continuation is preferable.

How a state gets flagged: low confidence, high volatility, then a judge

The detector uses the model's own confidence rather than human labels. The full chain-of-thought is fed back to the model, the next-token distribution is scored at every position, and the maximum probability is recorded. The trace is segmented into steps at paragraph breaks, step confidence is the average over its tokens, and volatility is computed over a sliding window, with the minimal window of two steps giving (c_i − c_{i−1})²/4 [1]. Averaging over tokens matters: it makes the signal insensitive to isolated low-probability tokens caused by punctuation or formatting.

A state becomes a candidate when its step confidence falls at or below the 25th percentile of the model's own distribution and its volatility falls at or above the 75th percentile. Low and unstable at the same time. The thresholds come from percentiles of the model's own traces rather than externally tuned constants, which matters for reproduction. Why require both signals? Low confidence alone may just mean the sub-problem is hard; high volatility alone may accompany a legitimate change in reasoning. Together they identify states where the model is both uncertain and unstable.

Confidence statistics cannot separate redundant deliberation from genuine difficulty, so a stronger judge model re-examines every flagged state. It reads the problem, the frozen state, and the next step, and assigns one of three roles [1]:

LabelMeaningWhat LoCo does
overthinkThe next step re-deliberates on information already establishedKeep the state; truncate here and build a preference pair
normalThe next step makes substantive progressDrop the detection point; truncation would discard useful work
finalThe next step presents the answerDrop the detection point; truncation would discard the answer itself

The third label deserves separate mention. Reasoning models often end a chain-of-thought by restating or boxing the answer, which looks repetitive but is needed for answer extraction, so removing it costs accuracy outright. The detector is also causal by construction: confidence and volatility use only information available by the end of step i, and truncation starts at step i+1, so the detector never sees the continuation it removes.

What a training pair looks like: shared prefix, one fork

For each confirmed state, LoCo freezes the prefix and samples several independent continuations from that state. Only continuations that complete the template and produce an answer symbolically equivalent to gold are kept, and the shortest among them becomes the preferred response, while the original continuation becomes the rejected one. One hard filter remains: the chosen continuation must be strictly shorter than the original, otherwise the detection point is discarded [1].

Two examples appear in the appendix, with the token counts given in the paper. In the first, the frozen prefix is the first 28 steps, the chosen continuation is 212 tokens against a rejected 986, a gap of 774. In the second, the prefix is 11 steps, the chosen continuation is 296 tokens against 1,247, a gap of 951 [1]. Both pairs share the same shape: identical early derivation, with the fork occurring only at whether to keep reasoning.

This construction has a direct consequence for anyone auditing training data. The number of preference pairs does not depend on how many problems you labelled; it depends on how many states you can mine from the model's own traces where information was already sufficient but generation continued, and on whether each such state yields a shorter continuation that still verifies. Both gates, the confidence screen plus judge and the sampling plus answer-equivalence check, throw samples away.

What it buys, and where it stops working

The reported results land in two ranges. Completion length drops by 41.7%–45.4% on mathematics and by 23.4%–36.3% on code generation, while accuracy on mathematics is maintained or improved, and the method achieves the best AUC across all code benchmarks [1]. One caveat on reading that: AUC here is the paper's composite measure of the accuracy-efficiency trade-off, defined in the experimental section, and the material available for this piece runs only through the method sections.

The more interesting result is cross-domain transfer. Training data is built entirely from the model's own mathematical traces, with no code data, yet the trained model also improves on code benchmarks. The paper attributes this to LoCo reshaping a preference about when to conclude rather than injecting task-specific knowledge [1].

  • Benchmark count: evaluation covers five mathematical benchmarks and three code generation benchmarks. In fairness to the reader, the material verifiable here (abstract and the first four sections) gives the counts and the aggregate ranges but not the benchmark names, which sit in the experimental tables not included in this excerpt. I will not invent them, and the same discipline applies when you read the paper: check the table for which five.
  • Precondition: an answer you can verify. Mathematics has a gold answer for symbolic equivalence checking and code has tests to run, which is how short-and-correct continuations get filtered. For open-ended writing with no equivalence check, stage two of the pipeline has nothing to stand on.
  • Scope: problems the model can already solve but overthinks. On problems it cannot solve, compression just makes it wrong sooner, and no length saving buys that accuracy back.
  • Extra cost: the judge model is real overhead in the training pipeline, and its three-way classification errors write noise directly into the preference pairs, where later training cannot undo them.
  • Reading the numbers: the abstract gives ranges, not points. Which benchmark sits at 41.7% and which at 45.4%, and where the accuracy gains appear, has to be checked row by row in the paper's tables.

The boundary is therefore clear. LoCo moves compression from how long a whole trajectory is to continue-or-conclude at a single state, but it depends on verifiable answers and a reliable judge, and it holds only inside the model's capability. Outside those three conditions it is not a general key [1].

References

  1. Think Less, Locally: Local Preference Learning for Reasoning Compression

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…