少想,本地化:面向推理压缩的本地偏好学习

·

研究论文 · 2026/11/04

大型推理模型在挑战性任务上表现优异,但长思维链常在信息充足后仍持续推理,导致推理成本高昂。现有推理压缩方法主要作用于推理轨迹,较少关注给定当前状态是否需要进一步推理的局部决策。我们提出LoCo,一种用于推理压缩的局部偏好学习方法。LoCo从模型自身轨迹中检测候选过度思考状态,冻结相应推理前缀,从相同状态重新生成更短的已验证续写,并用DPO在所得状态条件偏好对上训练。该形式教会模型何时继续推理、何时结束,而非简单鼓励整体更短轨迹。我们完全从自生成的数学轨迹构建训练数据,并在五个数学和三个代码生成基准上评估LoCo。LoCo在数学上减少完成长度41.7%–45.4%,在代码上减少23.4%–36.3%,同时保持或提高准确率,并在所有代码基准上取得最佳AUC。LoCo在数学上持续改善准确率-效率权衡,并尽管仅用数学训练,仍有效迁移到代码生成,展示了局部偏好学习用于推理压缩的跨域通用性。代码和模型将在https://github.com/MuyaoYuan/LoCo公开。

该研究提出了一种新颖的局部偏好学习方法,有效压缩推理长度而不损失准确率,且仅用数学数据训练即可迁移到代码任务,具有重要的实用价值和跨域通用性。

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.

阅读原文

参与讨论