Think Less, Locally: Local Preference Learning for Reasoning Compression
Organizations: MOEKLINNS, School of Computer Science and Technology, Xi’an Jiaotong University · WeChat AI, Tencent Inc.
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.
Figures & tables
| Method | MATH-500 | AMC23 | Olympiad | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Acc (%) | Token | AUC (%) | Acc (%) | Token | AUC (%) | Acc (%) | Token | AUC (%) | |
| Base | 91.88 1.20 | 4015 177 | 82.64 1.12 | 90.31 2.48 | 6285 516 | 76.95 2.07 | 61.33 0.41 | 8972 130 | 51.28 0.37 |
| DAST | 91.38 0.79 | 3720 119 | 83.95 0.66 | 88.12 4.17 | 5981 304 | 76.89 3.22 | 59.91 0.73 | 9155 313 | 51.86 0.59 |
| (-0.50) | ( 7.4%) | (+1.31) | (-2.19) | ( 4.8%) | (-0.06) | (-1.42) | ( 2.0%) | (+0.58) | |
| TokenSqueeze | 91.18 0.89 | 2442 52 | 85.92 0.73 | 88.44 4.62 | 4350 582 | 79.42 4.01 | 60.98 0.95 | 6149 105 | 54.29 0.78 |
| (-0.70) | ( 39.2%) | (+3.28) | (-1.87) | ( 30.8%) | (+2.47) | (-0.35) | ( 31.5%) | (+3.01) | |
| Method | MBPP | LiveCodeBench | CodeContests | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Acc (%) | Token | AUC (%) | Acc (%) | Token | AUC (%) | Acc (%) | Token | AUC (%) | |
| Base | 84.05 0.91 | 3403 234 | 78.42 0.83 | 41.77 1.10 | 12319 352 | 32.86 0.87 | 18.48 2.17 | 14900 223 | 13.87 1.50 |
| DAST | 81.13 1.87 | 4097 444 | 76.32 1.68 | 39.82 2.50 | 14158 476 | 31.88 1.66 | 16.06 2.42 | 17757 623 | 12.61 1.79 |
| (-2.92) | ( 20.4%) | (-2.10) | (-1.95) | ( 14.9%) | (-0.98) | (-2.42) | ( 19.2%) | (-1.26) | |
| TokenSqueeze | 81.37 2.18 | 2196 131 | 77.40 1.90 | 41.69 2.22 | 9670 200 | 35.03 1.38 | 19.09 0.97 | 11677 305 | 15.54 0.81 |
| (-2.68) | ( 35.5%) | (-1.02) | (-0.08) | ( 21.5%) | (+2.17) | (+0.61) | ( 21.6%) | (+1.67) | |
| Method | AMC23 | AIME24 | AIME25 | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Acc (%) | Token | AUC (%) | Acc (%) | Token | AUC (%) | Acc (%) | Token | AUC (%) | |
| Base | 90.31 2.48 | 6285 516 | 76.95 2.07 | 50.83 6.61 | 13493 1367 | 40.33 5.00 | 37.92 5.62 | 15134 920 | 30.29 3.82 |
| Preference source | |||||||||
| Global | 90.94 2.65 | 5957 562 | 77.66 2.42 | 54.17 5.56 | 12002 870 | 42.57 4.23 | 40.42 5.47 | 12740 1079 | 32.46 3.90 |
| (+0.63) | ( 5.2%) | (+0.71) | (+3.34) | ( 11.1%) | (+2.24) | (+2.50) | ( 15.8%) | (+2.17) | |
| GPT-5.4 Cont. | 90.62 2.59 | 4083 261 | 81.46 2.17 | 52.92 6.53 | 9204 823 | 44.11 5.54 | 39.58 6.53 | 9690 709 | 33.56 4.78 |
Efficient Language Model Reasoning
Efficient language model reasoning studies how to improve problem-solving accuracy while reducing inference, memory, latency, and training costs.
See all 388 papers