arXiv:2611.04814cs.AINov 2026

Manuscript Offprint

arXiv:2611.04814

Think Less, Locally: Local Preference Learning for Reasoning Compression

Muyao Yuan, Liyan Xu, Weizhan Zhang, Muyan Jiao, Jiangnan Li, Jinchao Zhang, Jie Zhou

ABSTRACT

Large reasoning models achieve strong performance on challenging tasks, but their long chain-of-thought often incurs substantial inference costs by continuing to deliberate after sufficient information has been obtained. Existing reasoning compression methods primarily operate on reasoning trajectories, paying less attention to the local decision of whether further reasoning is necessary given the current state. We propose LoCo, a local preference learning method for reasoning compression. LoCo detects candidate overthinking states from the model's own traces, freezes the corresponding reasoning prefixes, regenerates shorter verified continuations from the same states, and trains on the resulting state-conditioned preference pairs with DPO. This formulation teaches the model when to continue reasoning and when to conclude, rather than simply encouraging shorter trajectories overall. We construct training data entirely from self-generated mathematical traces and evaluate LoCo on five mathematical and three code generation benchmarks. LoCo reduces completion length by 41.7%–45.4% on mathematics and 23.4%–36.3% on code, while maintaining or improving accuracy and achieving the best AUC across all code benchmarks. LoCo consistently improves the accuracy-efficiency trade-off on mathematics and transfers effectively to code generation despite math-only training, demonstrating the cross-domain generality of local preference learning for reasoning compression. The code and model will be publicly released at https://github.com/MuyaoYuan/LoCo.

1 INTRODUCTION

Large reasoning models (LRMs) (Guo et al., 2025) have made remarkable progress on complex reasoning tasks such as mathematical problem solving and algorithmic programming. This progress is largely driven by extended chain-of-thought (CoT) reasoning, in which models generate thousands of tokens for hypothesis formation, calculation, revision, and verification before arriving at an answer (Muennighoff et al., 2025). Such extended reasoning comes at a substantial inference cost, significantly increasing decoding latency and memory consumption during deployment. More importantly, longer reasoning does not necessarily lead to higher accuracy, as models may continue reasoning beyond what is necessary to reach a correct answer (Chen et al., 2024; Sui et al., 2025). This tendency to engage in excessive reasoning is commonly referred to as overthinking.

Recent studies indicate that when the task is solvable by the model, overthinking is more closely related to model preference than reasoning capability (Zhang et al., 2026a; Peng et al., 2025). A model may get the correct answer early in the reasoning process yet continue generating unnecessary reasoning, reflecting a preference to keep thinking rather than to stop when sufficient reasoning has been reached. The problem therefore lies in when the model chooses to stop, rather than whether it can reach the correct answer (Chen et al., 2024; Zhang et al., 2026a). Mitigating overthinking thus

calls for aligning models toward concise reasoning behaviors, which can be learned from carefully curated self-generated reasoning traces (Shen et al., 2025; Zhang et al., 2026b).

Toward this objective, existing self-generated methods derive compression supervision in two main ways, through trajectory-level signals and fine-grained operations within the reasoning process. Trajectory-level signals are derived from the reasoning trajectory as a whole, using global properties of complete solutions to establish a preference for more concise reasoning. Specifically, one line of work (Team et al., 2025; Luo et al., 2026; Shen et al., 2025; Ma et al., 2025) constructs preference pairs by comparing shorter and longer correct solutions, encouraging the model to favor the shorter one, while another (Arora & Zanette, 2026; Aggarwal & Welleck, 2025; Hu et al., 2026) incorporates length preferences into reinforcement learning by rewarding shorter correct reasoning.

Fine-grained operations provide a more localized alternative by modifying parts of an existing reasoning trajectory. Specifically, these methods remove redundant content (Xia et al., 2025), compress individual reasoning steps (Jang et al., 2024), or shorten continuations from intermediate reasoning states to construct training data for more concise reasoning (Lai et al., 2024; Jin et al., 2025). Such operations are well aligned with recent findings (Xu et al., 2026) that LLM reasoning proceeds through local and incremental state transitions rather than a globally planned process. However, existing fine-grained methods still treat the reasoning trajectory itself as the object of compression. They focus on which parts of the trajectory should be removed or shortened, rather than whether further reasoning is necessary given the model's current state. This distinction is crucial because the appropriate compression decision can vary across reasoning states: the model may need to continue reasoning at one state but should conclude at another.

Building on this observation, we propose LoCo (Local Compression), a local preference learning method for reasoning compression. LoCo identifies overthinking states from the model's own reasoning process and constructs state-conditioned preferences by contrasting alternative continuations from the same reasoning state. The resulting supervision is grounded in the model's own reasoning trajectories and actual reasoning behavior. By making the compression decision conditional on the current reasoning state, LoCo encourages the model to conclude when further reasoning is unnecessary while preserving its ability to continue reasoning when additional computation is needed. In this way, LoCo avoids indiscriminate compression across the reasoning trajectory and reduces the risk of compromising the model's reasoning capability on more challenging problems.

We construct training data from self-generated traces and evaluate LoCo on five mathematical reasoning benchmarks and three coding benchmarks spanning a broad range of difficulty. The experiments show that LoCo consistently achieves the strongest efficiency-performance trade-off on mathematics, with especially clear advantages on the harder datasets where both high compression and high accuracy are required. The same trained model also transfers effectively to coding benchmarks of different difficulty, supporting the view that LoCo improves chain-of-thought compression by reshaping the model's reasoning preference rather than by injecting additional task-specific knowledge. To summarize, our main contributions are threefold:

  • We show that effective reasoning compression requires state-aware decisions about when further reasoning is unnecessary, rather than simply favoring shorter trajectories.

  • We introduce LoCo, a local preference learning framework that identifies overthinking states and learns continue-or-conclude preferences from verified continuations sharing the same reasoning prefix.

  • We demonstrate the effectiveness of LoCo across mathematical reasoning and code generation, with consistent improvements in the efficiency-performance trade-off and strong cross-domain generalization.

References (76)