2025-02-14 · 进阶 · 自然语言处理 · 机器学习

CoT-Valve: Length-Compressible Chain-of-Thought Tuning

CoT-Valve通过可调节推理路径长度,提高了推理模型的效率和可解释性。

更新于 2025-02-14。作者:Xinyin Ma、Guangnian Wan、Runpeng Yu、Gongfan Fang、Xinchao Wang。

中文摘要

思维链(Chain-of-Thought)显著提升了模型的推理能力,但同时也因为长链的存在而带来了推理成本的显著增加。观察到在简单任务中推理路径可以轻易压缩,但在困难任务中则难以压缩,我们探讨了仅用一个模型弹性控制推理路径长度的可行性,从而根据任务难度动态降低推理模型的推理开销。我们引入了一种新的调整和推理策略,名为CoT-Valve,旨在允许模型生成不同长度的推理链。为了实现这一点,我们提出在参数空间中找到一个方向,当对其进行操作时,可以有效地控制生成的CoT长度。此外,我们表明这一特性对于压缩推理链非常有价值。我们构建了包含从长到短链的相同问题的数据集,并探索了两种针对CoT-Valve的增强策略:(1)一种精确长度可压缩的CoT调整方法,以及(2)一种渐进式链长度压缩方法。我们的实验表明,CoT-Valve成功实现了链的可控性和可压缩性,并且比基于提示的控制方法表现更好。我们将此方法应用于QwQ-32B-Preview,将GSM8K上的推理链从741个token减少到225个token,性能略有下降(从95.07%降至94.92%),在AIME上的推理链从6827个token减少到4629个token,仅增加了一个错误答案。

英文摘要

Chain-of-Thought significantly enhances a model's reasoning capability, but it also comes with a considerable increase in inference costs due to long chains. With the observation that the reasoning path can be easily compressed under easy tasks but struggle on hard tasks, we explore the feasibility of elastically controlling the length of reasoning paths with only one model, thereby reducing the inference overhead of reasoning models dynamically based on task difficulty. We introduce a new tuning and inference strategy named CoT-Valve, designed to allow models to generate reasoning chains of varying lengths. To achieve this, we propose to identify a direction in the parameter space that, when manipulated, can effectively control the length of generated CoT. Moreover, we show that this property is valuable for compressing the reasoning chain. We construct datasets with chains from long to short for the same questions and explore two enhanced strategies for CoT-Valve: (1) a precise length-compressible CoT tuning method, and (2) a progressive chain length compression approach. Our experiments show that CoT-Valve successfully enables controllability and compressibility of the chain and shows better performance than the prompt-based control. We applied this method to QwQ-32B-Preview, reducing reasoning chains on GSM8K from 741 to 225 tokens with a minor performance drop (95.07% to 94.92%) and on AIME from 6827 to 4629 tokens, with only one additional incorrect answer.

解读

一句话总结

CoT-Valve通过可调节推理路径长度,提高了推理模型的效率和可解释性。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt