让大模型像人一样分步思考,提升复杂问题解决能力
HDFlow: Enhancing LLM Complex Problem-Solving with Hybrid Thinking and Dynamic Workflows
- 用动态工作流自动拆解难题并调用专用工具
- 根据问题难易度切换快慢思考模式,准确率更高
- 适合想提升大模型推理能力的研究者和开发者
尽管大语言模型在复杂推理任务上取得进展,但其在需要多步思维和多种技能结合的任务中表现仍有限。为此,我们提出新型框架 HDFlow,通过自适应融合快速与慢速思考模式来增强复杂推理能力。该方法包含两个核心组件:1)动态工作流(Dynamic Workflow),一种新的慢速、深思熟虑的推理方式,能自动将复杂问题分解为更易处理的子任务,并动态设计工作流,调用专门的大模型或符号推理工具求解;2)混合思维(Hybrid Thinking),一种基于问题复杂度动态切换快慢思考的通用框架。此外,我们提出一种可扩展的方法,自动生成包含27,000个挑战性推理题的大规模数据集,并设计了一种混合思维微调方法,使小型模型在该数据集上训练后内化快慢混合推理策略。在四个推理基准数据集上的实验表明,采用动态工作流的慢速思考显著优于链式思维(Chain-of-Thought),而混合思维在准确率和计算效率之间达到最佳平衡。使用该方法微调的开源语言模型,其复杂推理能力也得到显著提升。结果展示了慢速思考、动态工作流和混合思维在拓展大模型复杂问题求解边界方面的潜力。
原文摘要 · Abstract (English)
Despite recent advancements in large language models (LLMs), their performance on complex reasoning problems requiring multi-step thinking and combining various skills is still limited. To address this, we propose a novel framework HDFlow for complex reasoning with LLMs that combines fast and slow thinking modes in an adaptive manner. Our approach consists of two key components: 1) a new approach for slow, deliberate reasoning called Dynamic Workflow, which automatically decomposes complex problems into more manageable sub-tasks and dynamically designs a workflow to assemble specialized LLM or symbolic reasoning tools to solve sub-tasks; 2) Hybrid Thinking, a general framework that dynamically combines fast and slow thinking based on problem complexity. Finally, we propose an easy-to-scale method for automatically synthesizing a large-scale dataset of 27K challenging reasoning problems for complex reasoning and a hybrid thinking tuning method that trains smaller LLMs on this dataset to internalize the fast/slow hybrid reasoning strategies. Experiments on four reasoning benchmark datasets demonstrate that our slow thinking with dynamic workflows significantly outperforms Chain-of-Thought, and hybrid thinking achieves the highest accuracy while providing an effective balance between computational efficiency and performance. Fine-tuning using our hybrid thinking approach also significantly boosts the complex reasoning capabilities of open-source language models. The results showcase the promise of slow thinking, dynamic workflows, and hybrid thinking in expanding the frontier of complex problem-solving with LLMs\footnote{Code and data will be released at \url{https://github.com/wenlinyao/HDFlow}.}.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。