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

Q*: 通过深思熟虑的规划提升大语言模型的多步推理能力

Q*: Improving Multi-step Reasoning for LLMs with Deliberative Planning

Skywork AI(天工开物AI);Nanyang Technological University(南洋理工大学)

Chaojie Wang, Yanchen Deng, Zhiyi Lyu, Liang Zeng, Jujie He, Shuicheng Yan, Bo An

AI总结:

本文提出Q*框架,将多步推理视为启发式搜索,通过学习Q值模型指导解码,无需微调即可提升开源LLMs在GSM8K、MATH和MBPP上的推理性能。

摘要:

大语言模型(LLMs)在许多自然语言任务中展现出了令人印象深刻的能力。然而,自回归生成过程使得LLMs在执行多步推理时容易产生错误、幻觉和不一致的陈述。在本文中,通过将LLMs的多步推理视为一个启发式搜索问题,我们旨在通过引入Q*来缓解这一病理现象,Q*是一个通用、多才多艺且敏捷的框架,用于指导LLMs的解码过程,实现深思熟虑的规划。通过学习一个即插即用的Q值模型作为启发式函数来估计预期未来奖励,我们的Q*能够有效引导LLMs选择最有希望的下一步推理,而无需针对当前任务微调LLMs,这避免了显著的计算开销和在其他任务上性能退化的潜在风险。在GSM8K、MATH和MBPP上的大量实验证明了我们方法的优越性,有助于提升现有开源LLMs的推理性能。

英文摘要:

Large Language Models (LLMs) have demonstrated impressive capability in many natural language tasks. However, the auto-regressive generation process makes LLMs prone to produce errors, hallucinations and inconsistent statements when performing multi-step reasoning. In this paper, by casting multi-step reasoning of LLMs as a heuristic search problem, we aim to alleviate the pathology by introducing Q*, a general, versatile and agile framework for guiding LLMs decoding process with deliberative planning. By learning a plug-and-play Q-value model as heuristic function for estimating expected future rewards, our Q* can effectively guide LLMs to select the most promising next reasoning step without fine-tuning LLMs for the current task, which avoids the significant computational overhead and potential risk of performance degeneration on other tasks. Extensive experiments on GSM8K, MATH and MBPP demonstrate the superiority of our method, contributing to improving the reasoning performance of existing open-source LLMs.

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

↑