LoCo
arXiv Preprint (Nov 2026)

Think Less, Locally: Local Preference Learning for Reasoning Compression

Muyao Yuan1*, Liyan Xu2*‡, Weizhan Zhang1†, Muyan Jiao1, Jiangnan Li2, Jinchao Zhang2, Jie Zhou2†
1MOEKLINNS, Xi’an Jiaotong University • 2WeChat AI, Tencent Inc.
TL;DR

Large reasoning models waste thousands of inference tokens second-guessing correct answers they already found. Rather than globally rewarding short trajectories or blindly slicing tokens, LoCo detects local overthinking states, freezes that exact prefix, regenerates shorter verified continuations, and trains state-conditioned preferences via Direct Preference Optimization (DPO). This trains a state-conditioned preference for when to stop. Reported accuracy improves on most evaluated benchmarks; MATH-500 changes slightly from 91.88% to 91.80%.

41.7%–45.4%
Math Token Reduction
+3.34 pp
AIME24 gain (percentage points)
23.4%–36.3%
Zero-Shot Code Pruning
Best AUC
Among Evaluated Baselines

Why This Matters

Modern reasoning models like DeepSeek-R1, OpenAI o1, and Kimi k1.5 have unlocked astonishing capabilities in competition math and code generation by generating thousands of hidden "Chain-of-Thought" (CoT) tokens. But this slow-deliberation superpower comes with a debilitating pathology: overthinking.

When asked a simple question like "What fraction of 1/2 is 1/7?" or "If July 3, 2030 is Wednesday, what day is July 14?", the paper shows examples in which a model has already derived and checked the correct answer, yet continues re-deriving it using modular arithmetic, calendar loops, or imaginary pizza slices. These examples illustrate redundant reasoning after the answer has been verified; they do not establish a typical token count or frequency.

The Compression Dilemma
Trajectory-Level Compression (e.g. Long2Short, O1-Pruner): Compares an entire short run against an entire long run. Limitation: Whole-trajectory comparisons give less direct supervision about where further reasoning becomes unnecessary. The paper does not establish a universal minimum token budget for hard problems.
Arbitrary Token/Step Pruning (e.g. TokenSkip, ReCUT): Slices sentences or tokens based on syntactic heuristics. Problem: LLM reasoning is incremental. Pruning tokens at arbitrary positions can break fragile intermediate derivations before the answer has even converged.
LoCo (Local Compression): Operates conditionally on the exact reasoning state $P_i$. It preserves deep exploration when needed, but trains a preference for shorter verified continuations at selected states, while retaining the ability to continue elsewhere.

The Big Idea

In the authors’ formulation, overthinking on solvable tasks can reflect a preference to continue rather than a lack of capability. LoCo freezes a detected state, compares verified continuations from that same prefix, and learns a local continue-or-conclude preference. This is an explanatory paraphrase, not a quotation.

How It Works: The 3-Stage Pipeline

LoCo executes three modular stages to extract self-supervised preference pairs directly from a model's own self-generated reasoning traces without requiring expensive manual annotations.

Figure 1: The LoCo Pipeline DeepSeek-R1-Distill-Qwen-7B
STAGE 1 & 2: ORIGINAL TRACE WITH CANDIDATE OVERTHINK STATE (DELIMITED BY PARAGRAPHS) s₀ s₁ ••• sᵢ Causal State Pᵢ sᵢ₊₁ (re-check) sᵢ₊₂ (redundant math) ... sₙ (986 tokens rejected yᵢ⁻) Confidence Screening cᵢ ≤ q₂₅ ∧ vᵢ ≥ q₇₅ᵛ Low conf & High volatility Judge (Qwen3-30B) ℓᵢ = OVERTHINK Filters NORMAL / FINAL Sample k=8 Continuations y ~ π_M(· | Pᵢ) s.t. y ⊨ z Pick shortest verified: yᵢ⁺ STAGE 3: DPO PREFERENCE PAIR CONDITIONED ON FROZEN STATE Pᵢ Shared Frozen Prefix Pᵢ + Chosen yᵢ⁺ (Concise & Boxed: 212 tok) VS Rejected yᵢ⁻ (Original Suffix: 986 tok)

The detector identifies state $P_i$ causally. The prompt remains $P_i$; the chosen continuation $y_i^+$ swiftly concludes with the verified answer, while the rejected $y_i^-$ circles in redundant loops.

1. Step-Level Overthink Detection

Reasoning traces generated by DeepSeek-R1-Distill-Qwen-7B are parsed at paragraph boundaries into discrete steps $s_0, s_1, \dots, s_n$. The reasoning state after step $s_i$ is defined as the exact concatenation of the prompt and intermediate reasoning:

$$P_i = \text{prompt}(q) \parallel s_0 \parallel \dots \parallel s_i$$

Candidate overthinking points are screened via two complementary intrinsic signals computed from the model's own next-token logprobs $p_\tau^{\max}$:

  • Step Confidence $c_i$: The mean top-1 next-token probability over the span $T_i$ of step $s_i$: $$c_i = \frac{1}{|T_i|} \sum_{\tau \in T_i} p_\tau^{\max}$$
  • Confidence Volatility $v_i$: A minimal 2-step rolling window measuring sudden fluctuations between adjacent steps: $$v_i = \frac{(c_i - c_{i-1})^2}{4}$$

A state is flagged if it exhibits simultaneously low confidence and high volatility: $$\mathcal{O} = \{i : c_i \le q_{25} \;\wedge\; v_i \ge q_{75}^v\}$$ This conjunction is critical: low confidence alone could indicate a hard problem, and volatility alone could mean a healthy transition. Together, they spotlight uncertain, wandering states.

Finally, a stronger LLM (Qwen3-30B) inspects $(q, P_i, s_{i+1})$ to filter out true derivation steps (NORMAL) or essential final answer restatements (FINAL_ANSWER_WRAPUP). Only confirmed OVERTHINK states survive.

Explore the Detection Method

This is a source-based process walkthrough, not a replay of measured confidence values or a live judge. Expand each stage. Source: Sections 4.2 and Appendix A.1.

1. Score the source trace

DeepSeek-R1-Distill-Qwen-7B generates math traces. The shortest correct of three rollouts per question becomes the source. Paragraph breaks define steps. Confidence averages top-1 next-token probabilities within each step.

2. Screen candidate states

Compute volatility as the squared difference between adjacent step confidences divided by four. Corpus-calibrated quartiles screen states with low confidence and high volatility. The paper does not supply a numeric confidence sequence for the displayed calendar example.

3. Judge the next step

Qwen3-30B checks the problem, preceding state, next step and screen label. Only OVERTHINK classifications survive; NORMAL and FINAL_ANSWER_WRAPUP steps are retained. The screen is causal; the judge additionally inspects the next step.

Read the source paper

2. Verified Continuation Generation & Local DPO

Once a state $i \in \mathcal{O}$ is confirmed, LoCo freezes prefix $P_i$. The model $M$ is then prompted to independently generate $k = 8$ continuations:

$$y_i^{(1)}, \dots, y_i^{(k)} \sim \pi_M(\cdot \mid P_i)$$

Any completion that fails to match the ground truth $z$ symbolically ($y \not\models z$) is discarded. From the pool of verified continuations $\mathcal{V}_i$, LoCo selects the shortest candidate:

$$y_i^+ = \arg\min_{j \in \mathcal{V}_i} |y_i^{(j)}|$$

If $|y_i^+| < |y_i^-|$ with a minimum token saving $\delta = 300$, a preference triple $(P_i, y_i^+, y_i^-)$ is formed and trained with Direct Preference Optimization (DPO):

$$\mathcal{L}_{\text{DPO}} = -\mathbb{E}_{(P_i, y^+, y^-) \sim \mathcal{D}} \left[ \log \sigma \left( \beta \log \frac{\pi_\theta(y^+ \mid P_i)}{\pi_{\text{ref}}(y^+ \mid P_i)} - \beta \log \frac{\pi_\theta(y^- \mid P_i)}{\pi_{\text{ref}}(y^- \mid P_i)} \right) \right]$$

Because both chosen and rejected branches share the exact same contextual prefix $P_i$, the gradient updates penalize the urge to deliberate further only when arriving at that state, avoiding across-the-board truncation that damages tough questions.

Source: Appendix B. Displayed text is abridged and paraphrased, not verbatim. Token counts refer to the complete original continuations, not these excerpts.

Interactive Widget 2

Appendix B Forks: Abridged Examples

Question: "If July 3, 2030 is a Wednesday, what day of the week is July 14, 2030?"
Frozen Reasoning Prefix $P_i$ (Shared by both branches) Step 28 (Derived & Confirmed)
"First, let me count days: July 3 to July 14 is 11 days... 11 divided by 7 is 1 week and 4 days. Wednesday plus 4 days: Thu, Fri, Sat, Sun. Wait, let me list all days: July 3: Wed, July 4: Thu... July 14: Sunday. Okay, so initial calculation is correct: Sunday. (Abridged paraphrase; full text in Appendix B.)"
Chosen Continuation ($y^+$) 212 tokens

"So, multiple methods confirm that July 14, 2030 is Sunday. I think I'm confident now that the answer is Sunday."

</think>

Thus, July 14, 2030 is a Sunday. Sunday

Clean wrap-up, boxed final answer immediately.
Rejected Continuation ($y^-$) 986 tokens (Gap: 774)

"Wait, another way: Maybe using the concept of reference dates... Wait, no, I don't know that off the top of my head."

"Alternatively, let me count days again... 11 divided by 7 is 1 week and 4 days... Or modulo 7 arithmetic: Sunday=0, Monday=1, ... 3 + 11 = 14 = 0 mod 7."

"Wait, what if start day is day 0 or 1? Let me recount all 11 days manually one more time: July 3: Wed, July 4: Thu... July 14: Sun..."

Repetitive circular verification with zero information gain.

Empirical Results

The authors trained DeepSeek-R1-Distill-Qwen-7B with LoRA on 14,027 math queries from math14k and evaluated on five math benchmarks (MATH-500, AMC 2023, Olympiad, AIME 2024, AIME 2025) and three coding benchmarks (MBPP, LiveCodeBench, CodeContests).

The results reveal two profound findings:

  1. Harder problems benefit most: On the brutal AIME 2024 benchmark, LoCo cuts token count by 45.4% (from 13,493 to 7,364 tokens) while simultaneously boosting accuracy by +3.34 percentage points (50.83% → 54.17%). The comparison shows an accuracy–efficiency improvement; it does not by itself isolate a causal mechanism for individual errors.
  2. Zero-shot cross-domain generalization: Despite training exclusively on mathematical traces, LoCo transferred to the three evaluated coding benchmarks, cutting 23.4% to 36.3% of tokens on Python tasks without losing accuracy, outperforming all compression baselines in Area Under the Curve (AUC).

Explore Reported Benchmark Results

Selected means from Tables 1 and 2. Accuracy and AUC are percentages; parenthesized changes in those columns are percentage points. Token reductions are relative percentages. The full paper reports uncertainty for all methods.

Mean completion length is not a token-budget cutoff. These results must not be interpreted as accuracy at that mean length. No reconstructed Figure 2 curves or interpolated measurements are shown here.

Compare selected math and code benchmarks
Benchmark Method Accuracy (%) Tokens Token Reduction AUC (%)
MATH-500 Base (R1-Distill-Qwen-7B) 91.88 ± 1.20 4,015 - 82.64
TokenSqueeze 91.18 (-0.70) 2,442 ↓39.2% 85.92
LoCo (Ours) 91.80 (-0.08) 2,243 ↓44.1% 86.56 (+3.92)
AIME 2024 Base 50.83 ± 6.61 13,493 - 40.33
TokenSqueeze 48.75 (-2.08) 10,457 ↓22.5% 40.14
LoCo (Ours) 54.17 (+3.34) 7,364 ↓45.4% 46.82 (+6.49)
AIME 2025 Base 37.92 ± 5.62 15,134 - 30.29
TokenSqueeze 35.83 (-2.09) 11,055 ↓27.0% 31.20
LoCo (Ours) 40.42 (+2.50) 8,291 ↓45.2% 34.55 (+4.26)
LiveCodeBench (v5) Base 41.77 ± 1.10 12,319 - 32.86
LoCo (Ours) 42.51 (+0.74) 9,278 ↓24.7% 35.64 (+2.78)
CodeContests Base 18.48 ± 2.17 14,900 - 13.87
LoCo (Ours) 20.61 (+2.13) 11,413 ↓23.4% 16.78 (+2.91)

For measured accuracy-versus-budget curves, consult Figure 2 in the original paper. This table is a selection, not every benchmark or baseline.

Ablation Studies: Why Each Piece is Essential

Table 3 in the paper isolates every component in LoCo's architecture. What happens if you strip away the local state conditioning, change the generator model, or replace the confidence detector with random cutpoints?

Local vs Global

Global trajectory pairs ($x=\text{query}$ only) reduce tokens by only 5.2% on AMC23 and 11.1% on AIME24 (vs. LoCo's 45.4%). This ablation supports the value of state anchoring for compression.

AIME24 Token Red: 11.1% vs 45.4%
Self vs External (GPT-5.4)

The paper offers distributional alignment as a plausible explanation for why self-generated continuations outperform external completions (GPT-5.4) from the same frozen state. This is a proposed explanation, not an established causal finding (AIME24 AUC: 44.11% for external continuations vs LoCo's 46.82%).

AIME24 AUC: 44.11% vs 46.82%
Detector vs RandCut / UniCut

Heuristic cuts (uniform or random) slice traces at mean positions ~0.47-0.50, often pruning when the model still needs thinking time. LoCo's detector cuts at mean position 0.57 of the trace; about half occur in the final 40% of steps (Appendix A).

AIME24 Acc: 48.33% vs 54.17%

Limitations & Open Questions

While LoCo marks a major advancement in fine-grained reasoning compression, several open challenges remain:

  • Judge Model Overhead: Candidate overthinking steps must be verified by a larger model (Qwen3-30B) to distinguish between harmless repetition, productive intermediate exploration, and final formatting. Creating an entirely judge-free, self-contained detector remains an open question.
  • Causal Truncation vs Intermediate Editing: LoCo freezes prefix $P_i$ and discards the entirety of the subsequent original trace $y_i^-$. If a model suffers from local overthinking in step 4 but needs steps 6–10, LoCo relies on its regeneration step to re-derive the remaining steps succinctly rather than performing surgical in-place edits.
  • Scalability to Frontier Models: Experiments were demonstrated on DeepSeek-R1-Distill-Qwen-7B. It remains to be seen whether 70B+ scale frontier models exhibit identical confidence volatility profiles before overthinking loops begin.

Glossary

Overthinking (in LRMs)

The phenomenon where a reasoning model, having already gathered sufficient intermediate calculations to solve a problem correctly, continues generating redundant verification, alternative reformulations, or endless circular checks without improving accuracy.

Reasoning State ($P_i$)

The exact token history available to the model after completing reasoning step $s_i$ and before generating $s_{i+1}$, defined as $P_i = \text{prompt}(q) \parallel s_0 \parallel \dots \parallel s_i$. It acts as the conditioning prefix for local preference optimization.

Direct Preference Optimization (DPO)

An alignment algorithm that optimizes policy preferences directly via a closed-form objective on preference pairs $(x, y^+, y^-)$ without training an explicit reinforcement learning reward model.

AUC (Accuracy vs. Token Budget Curve)

The area under the curve obtained by sweeping the maximum allowed generation token budget from zero to full context length. A higher AUC indicates that the model arrives at high accuracy with fewer tokens and maintains robust accuracy across all length limits.

BibTeX Citation

@article{yuan2026loco,
  title   = {Think Less, Locally: Local Preference Learning for Reasoning Compression},
  author  = {Yuan, Muyao and Xu, Liyan and Zhang, Weizhan and Jiao, Muyan and Li, Jiangnan and Zhang, Jinchao and Zhou, Jie},
  journal = {arXiv preprint arXiv:2611.04814},
  year    = {2026}
}
Made with Flash Papers — make your own ↗