arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.18080cs.CLcs.AI
收藏

迈向 LLM 推理的测试时计算思维最优缩放

Towards Thinking-Optimal Scaling of Test-Time Compute for LLM Reasoning

Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学人工智能学院);Microsoft Research(微软研究院)

Wenkai Yang, Shuming Ma, Yankai Lin, Furu Wei

AI总结:

针对过度延长思维链可能损害 LLM 推理性能的问题,提出思维最优缩放策略,利用种子数据训练模型自适应推理努力程度并自我改进,在数学基准上超越同类模型并媲美教师模型。

摘要:

近期研究表明,让模型通过更长的思维链(CoTs)进行更长时间的思考,能够使其在复杂推理任务中获得显著提升。尽管当前研究持续探索通过延长大型语言模型(LLMs)的 CoT 长度来增加测试时计算量的益处,但我们担忧当前追求测试时缩放背后隐藏着一个潜在问题:过度缩放 CoT 长度是否实际上会对模型的推理性能产生不利影响?我们在数学推理任务上的探索揭示了一个出人意料的发现:使用更长的 CoT 进行缩放确实会在某些领域削弱 LLMs 的推理性能。此外,我们发现存在一个最优缩放长度分布,且该分布在不同领域间存在差异。基于这些洞察,我们提出了一种思维最优缩放策略。我们的方法首先使用一组具有不同响应长度分布的少量种子数据,教导模型采用不同的推理努力程度进行深度思考。随后,模型在额外问题上,于不同推理努力程度下选择其最短的正确响应以实现自我改进。我们基于 Qwen2.5-32B-Instruct 构建的自我改进模型,在各种数学基准测试中均优于其他基于蒸馏的 32B o1-like 模型,并且其性能与生成种子数据的教师模型 QwQ-32B-Preview 不相上下。

英文摘要:

Recent studies have shown that making a model spend more time thinking through longer Chain of Thoughts (CoTs) enables it to gain significant improvements in complex reasoning tasks. While current researches continue to explore the benefits of increasing test-time compute by extending the CoT lengths of Large Language Models (LLMs), we are concerned about a potential issue hidden behind the current pursuit of test-time scaling: Would excessively scaling the CoT length actually bring adverse effects to a model's reasoning performance? Our explorations on mathematical reasoning tasks reveal an unexpected finding that scaling with longer CoTs can indeed impair the reasoning performance of LLMs in certain domains. Moreover, we discover that there exists an optimal scaled length distribution that differs across different domains. Based on these insights, we propose a Thinking-Optimal Scaling strategy. Our method first uses a small set of seed data with varying response length distributions to teach the model to adopt different reasoning efforts for deep thinking. Then, the model selects its shortest correct response under different reasoning efforts on additional problems for self-improvement. Our self-improved models built upon Qwen2.5-32B-Instruct outperform other distillation-based 32B o1-like models across various math benchmarks, and achieve performance on par with the teacher model QwQ-32B-Preview that produces the seed data.

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

↑