DoubtLess:面向高效推理的免训练对比解码

·

研究论文 · 2026/10/14

推理模型通过长思维链(CoT)取得强大性能,但往往消耗比解决问题所需更多的token。现有缩短CoT的方法需要为每个模型额外训练、在模型隐藏状态中添加固定引导向量,或使用提前停止、禁止“wait”等词等解码启发式方法,这些可能降低准确率。我们提出DoubtLess,一种无需训练的对比解码方法,让一个小得多的推理模型引导大模型走向简洁。小模型两次读取大模型目前的CoT,一次被提示要简洁(简洁思考者),一次被提示要冗长(冗长思考者),其两个logit向量之差按强度缩放后,在CoT的每一步加到大型模型的logits上。在竞赛数学、研究生水平科学和竞争性编程的七个基准上,DoubtLess将Qwen3-32B的CoT缩短31%且准确率不变,优于五个推理时基线。我们还表明,在自调试编码代理中,DoubtLess将每轮思考token减少20%且任务性能不变。它还能泛化到另外两个模型家族且准确率不变。与基于训练的压缩结合时,它能进一步缩短已为简洁训练的模型的CoT。消融和行为分析表明,DoubtLess减少了重复检查,大部分token节省发生在正确答案首次出现在CoT之后。我们的代码见https://github.com/leoluolol/DoubtLess。

该研究提出了一种无需训练即可缩短推理模型思维链的方法,在保持准确率的同时显著减少token消耗,具有实际应用价值,且方法通用性强,可与其他压缩技术结合。

Reasoning models achieve strong performance through long chains of thought (CoT), but often spend more tokens than needed to solve a problem. Existing ways to shorten the CoT require additional training for each model, add a fixed steering vector to the model's hidden states, or use decoding heuristics such as stopping early or banning words like "wait", which can reduce accuracy. We propose DoubtLess, a training-free decoding method in which a much smaller reasoning model steers the large one towards brevity. The small model reads the large model's CoT so far twice, once prompted to be brief (the brief thinker) and once prompted to be verbose (the verbose thinker), and the difference between its two logit vectors, scaled by a strength, is added to the large model's logits at every step of the CoT. On seven benchmarks of competition mathematics, graduate-level science and competitive programming, DoubtLess shortens the CoT of Qwen3-32B by 31% with unchanged accuracy, outperforming five inference-time baselines. We also show that DoubtLess reduces thinking tokens per turn by 20% in a self-debugging coding agent with unchanged task performance. It also generalizes to two other model families with unchanged accuracy. When combined with training-based compression, it further shortens the CoT of a model already trained for brevity. Ablations and behavioral analysis show that DoubtLess reduces repeated checking, with most token savings coming after the correct answer first appears in the CoT. Our code is available at https://github.com/leoluolol/DoubtLess.

阅读原文

参与讨论