arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.18862cs.CLcs.AIcs.LG
收藏

DoubtLess:用于高效推理的无训练对比解码方法

DoubtLess: Training-Free Contrastive Decoding for Efficient Reasoning

The Chinese University of Hong Kong(香港中文大学);EPFL(洛桑联邦理工学院)

Minghao Luo, Liang Chen

AI总结:

DoubtLess是一种无训练对比解码方法,通过小推理模型引导大模型缩短思维链,在保持准确性的同时,将Qwen3-32B的思维链缩短31%,还适用于编码智能体及其他模型家族。

摘要:

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

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑