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

大语言模型能否借助程序在真实场景中完成推理?

Can LLMs Reason in the Wild with Programs?

Georgia Institute of Technology(佐治亚理工学院);Cisco(思科公司);Monash University(莫纳什大学)

Yuan Yang, Siheng Xiong, Ali Payani, Ehsan Shareghi, Faramarz Fekri

AI总结:

该研究提出真实场景推理任务,构建多类型策略引导推理轨迹数据集,发现现有LLM在模糊混合推理问题上存在严重局限与过拟合,验证了本地LLM微调提升性能的潜力。

摘要:

大语言模型(LLMs)已展现出借助程序解决推理问题的卓越能力。尽管这是一个颇具前景的方向,但大多数此类框架都是在预先知晓任务要求的设置下进行训练与评估的。然而,随着LLMs能力不断增强,有必要在更贴近现实的场景中评估其推理能力——现实世界中许多问题都是开放式的,范围模糊,且往往需要采用多种形式化方法才能解决。\n为探究这一问题,我们提出了“真实场景推理”任务:要求LLM在策略(tactic)的引导下,通过识别子问题及其对应的形式化方法,并编写程序求解每个子问题,来解决类型未知的推理问题。我们构建了一个大规模的策略引导轨迹数据集,其中包含各类推理问题的详细解答,涵盖从定义明确的单一形式推理(如数学、逻辑),到模糊的混合形式推理(如常识、数学与逻辑结合)。这使得我们能够从细粒度层面测试LLMs推理能力的多个维度,例如策略的选择与执行,以及采取不必要捷径的倾向。\n实验中我们发现,现有LLMs在范围模糊且混合的问题上表现严重不佳,暴露出关键的局限性与过拟合问题(例如在GSM8K上的准确率下降至少50%)。我们进一步表明,在策略引导轨迹上对本地LLM进行微调,有望实现更优的性能。项目代码库位于github.com/gblackout/Reason-in-the-Wild。

英文摘要:

Large Language Models (LLMs) have shown superior capability to solve reasoning problems with programs. While being a promising direction, most of such frameworks are trained and evaluated in settings with a prior knowledge of task requirements. However, as LLMs become more capable, it is necessary to assess their reasoning abilities in more realistic scenarios where many real-world problems are open-ended with ambiguous scope, and often require multiple formalisms to solve. To investigate this, we introduce the task of reasoning in the wild, where an LLM is tasked to solve a reasoning problem of unknown type by identifying the subproblems and their corresponding formalisms, and writing a program to solve each subproblem, guided by a tactic. We create a large tactic-guided trajectory dataset containing detailed solutions to a diverse set of reasoning problems, ranging from well-defined single-form reasoning (e.g., math, logic), to ambiguous and hybrid ones (e.g., commonsense, combined math and logic). This allows us to test various aspects of LLMs reasoning at the fine-grained level such as the selection and execution of tactics, and the tendency to take undesired shortcuts. In experiments, we highlight that existing LLMs fail significantly on problems with ambiguous and mixed scope, revealing critical limitations and overfitting issues (e.g. accuracy on GSM8K drops by at least 50\%). We further show the potential of finetuning a local LLM on the tactic-guided trajectories in achieving better performance. Project repo is available at github.com/gblackout/Reason-in-the-Wild

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

↑