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

DOTS:通过最优推理轨迹搜索实现大语言模型动态推理

DOTS: Learning to Reason Dynamically in LLMs via Optimal Reasoning Trajectories Search

George Mason University(乔治·马歇尔大学);Tencent AI Lab(腾讯AI实验室)

Murong Yue, Wenlin Yao, Haitao Mi, Dian Yu, Ziyu Yao, Dong Yu

AI总结:

本文提出DOTS方法,通过搜索最优推理轨迹,使大语言模型能根据问题特征动态规划推理动作,在八个推理任务上优于静态推理方法。

摘要:

近年来,增强大语言模型(LLMs)的推理能力已获得显著关注。先前的研究已证明多种提示策略(称为“推理动作”)在辅助LLMs推理方面的有效性,例如逐步思考、回答前反思、用程序求解及其组合。然而,这些方法通常对所有问题统一应用静态、预定义的推理动作,未考虑每个问题的具体特征或任务求解LLM的能力。在本文中,我们提出DOTS,一种通过最优推理轨迹搜索使LLMs能够动态推理的方法,该方法针对每个问题的具体特征和任务求解LLM的固有特性进行定制。我们的方法包括三个关键步骤:i)定义可组合成各种推理动作轨迹的原子推理动作模块;ii)通过针对特定任务求解LLM的迭代探索和评估,为每个训练问题搜索最优动作轨迹;iii)使用收集的最优轨迹训练一个LLM,为未见问题规划推理轨迹。特别地,我们提出了两种学习范式,即微调外部LLM作为规划器来指导任务求解LLM,或直接微调任务求解LLM,使其具备推理动作规划的内在能力。我们在八个推理任务上的实验表明,我们的方法始终优于静态推理技术和普通指令微调方法。进一步分析显示,我们的方法使LLMs能够根据问题复杂度调整计算量,为较难的问题分配更深入的思考和推理。

英文摘要:

Enhancing the capability of large language models (LLMs) in reasoning has gained significant attention in recent years. Previous studies have demonstrated the effectiveness of various prompting strategies in aiding LLMs in reasoning (called "reasoning actions"), such as step-by-step thinking, reflecting before answering, solving with programs, and their combinations. However, these approaches often applied static, predefined reasoning actions uniformly to all questions, without considering the specific characteristics of each question or the capability of the task-solving LLM. In this paper, we propose DOTS, an approach enabling LLMs to reason dynamically via optimal reasoning trajectory search, tailored to the specific characteristics of each question and the inherent capability of the task-solving LLM. Our approach involves three key steps: i) defining atomic reasoning action modules that can be composed into various reasoning action trajectories; ii) searching for the optimal action trajectory for each training question through iterative exploration and evaluation for the specific task-solving LLM; and iii) using the collected optimal trajectories to train an LLM to plan for the reasoning trajectories of unseen questions. In particular, we propose two learning paradigms, i.e., fine-tuning an external LLM as a planner to guide the task-solving LLM, or directly fine-tuning the task-solving LLM with an internalized capability for reasoning actions planning. Our experiments across eight reasoning tasks show that our method consistently outperforms static reasoning techniques and the vanilla instruction tuning approach. Further analysis reveals that our method enables LLMs to adjust their computation based on problem complexity, allocating deeper thinking and reasoning to harder problems.

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

↑