ReasonFlux: Hierarchical LLM Reasoning via Scaling Thought Templates
ReasonFlux通过扩展思维模板,实现分层LLM推理,有效优化推理搜索空间,并在数学推理能力上超越OpenAI o1-preview和DeepSeek V3等强大LLM。
更新于 2025-02-11。作者:Ling Yang、Zhaochen Yu、Bin Cui、Mengdi Wang。
中文摘要
我们提出,通过扩展思维模板进行分层LLM推理可以有效优化推理搜索空间,并超越像OpenAI o1-preview和DeepSeek V3这样的强大LLM的数学推理能力。我们使用仅8个GPU训练我们的ReasonFlux-32B模型,并引入了三项创新:(i)一个结构化和通用的思维模板库,包含约500个高级思维模板,能够泛化到类似或相关的推理问题;(ii)在一系列思维模板上执行分层强化学习,而不是在长CoTs上,优化基础LLM以规划出最佳的模板轨迹,逐步处理复杂问题;(iii)一个全新的推理扩展系统,通过在推理时自适应扩展思维模板,实现了分层LLM推理。我们的ReasonFlux-32B模型通过包含连续思维模板的模板轨迹,显著提升了数学推理能力,达到了行业领先水平。值得注意的是,在MATH基准测试中,它达到了91.2%的准确率,超过了o1-preview 6.7%。在USA数学奥林匹克(AIME)基准测试中,ReasonFlux-32B平均解决了56.7%的问题,分别比o1-preview和DeepSeek-V3高出27%和45%。代码:https://github.com/Gen-Verse/ReasonFlux
英文摘要
We present that hierarchical LLM reasoning via scaling thought templates can effectively optimize the reasoning search space and outperform the mathematical reasoning capabilities of powerful LLMs like OpenAI o1-preview and DeepSeek V3. We train our ReasonFlux-32B model with only 8 GPUs and introduces three innovations: (i) a structured and generic thought template library, containing around 500 high-level thought templates capable of generalizing to similar or relevant reasoning problems; (ii) performing hierarchical reinforcement learning on a sequence of thought templates instead of long CoTs, optimizing a base LLM to plan out an optimal template trajectory for gradually handling complex problems; (iii) a brand new inference scaling system that enables hierarchical LLM reasoning by adaptively scaling thought templates at inference time. With a template trajectory containing sequential thought templates, our ReasonFlux-32B significantly advances math reasoning capabilities to state-of-the-art levels. Notably, on the MATH benchmark, it achieves an accuracy of 91.2% and surpasses o1-preview by 6.7%. On the USA Math Olympiad (AIME) benchmark, ReasonFlux-32B solves an average of 56.7% of problems, surpassing o1-preview and DeepSeek-V3 by 27% and 45%, respectively. Code: https://github.com/Gen-Verse/ReasonFlux
解读
一句话总结
ReasonFlux通过扩展思维模板,实现分层LLM推理,有效优化推理搜索空间,并在数学推理能力上超越OpenAI o1-preview和DeepSeek V3等强大LLM。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:大型语言模型(LLM)在复杂推理任务中表现出色,但在解决复杂问题如数学问题求解时,仍面临挑战,需要更精细的搜索和更深入的思考。
- 现有方案不足:现有的推理方法,如Tree of Thoughts(ToT)和Graph of Thoughts(GoT),以及基于奖励模型的方法,在处理复杂推理任务时,存在计算成本高、泛化能力有限等问题。
- 研究目标:提出一种新的分层LLM推理框架ReasonFlux,通过扩展思维模板,实现高效、可扩展的复杂推理能力。
问题2:论文的核心创新点是什么?
- 技术创新:构建了一个结构化和通用的思维模板库,包含约500个高级思维模板,能够泛化到类似的推理问题。
- 方法改进:对思维模板序列进行分层强化学习,优化基础LLM以规划出最优的模板轨迹,逐步处理复杂问题。
- 优势:通过自适应扩展思维模板,实现分层LLM推理,有效平衡探索和利用,提高推理效率和准确性。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在MATH和AIME基准测试中,ReasonFlux-32B实现了91.2%的准确率,在MATH基准测试中超越了o1-preview 6.7%,在AIME基准测试中解决了56.7%的问题,分别超越了o1-preview和DeepSeek-V3 27%和45%。
- 性能提升:在MATH基准测试中,ReasonFlux-32B的准确率比基线模型提高了6.7%,在AIME基准测试中提高了27%和45%。
- 对比结果:ReasonFlux在多个数学推理基准测试中均优于基线模型,证明了其有效性和泛化能力。
问题4:这个研究的实际应用价值是什么?
- 应用场景:ReasonFlux可以应用于需要复杂推理的任务,如数学问题求解、代码生成等。
- 实施建议: ReasonFlux可以与不同的基础模型结合使用,以适应不同的应用场景。
- 局限与展望:ReasonFlux的模板库主要基于公开数据集构建,未来可以进一步扩展模板库,提高模型的泛化能力。此外,可以探索将ReasonFlux应用于其他领域的复杂推理任务。
来源
机器可读索引:llms.txt