arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2310.04406cs.AIcs.CLcs.CVcs.LG
收藏

语言智能体树搜索统一了语言模型中的推理、行动与规划

Language Agent Tree Search Unifies Reasoning Acting and Planning in Language Models

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Lapis Labs(拉皮斯实验室)

Andy Zhou, Kai Yan, Michal Shlapentokh-Rothman, Haohan Wang, Yu-Xiong Wang

AI总结:

本文提出语言智能体树搜索(LATS)框架,将蒙特卡洛树搜索与语言模型的推理、行动和规划能力相结合,并引入外部环境反馈机制,在编程、问答、网页导航和数学等任务上验证了其决策有效性与通用性。

摘要:

尽管语言模型(LMs)在一系列决策任务中展现出潜力,但它们对简单行动过程的依赖限制了其作为自主智能体的广泛部署。在本文中,我们提出了语言智能体树搜索(LATS)——这是第一个将语言模型在推理、行动和规划方面的能力协同起来的通用框架。通过利用语言模型的上下文学习能力,我们将蒙特卡洛树搜索集成到LATS中,使语言模型能够作为智能体运行,同时借助语言模型驱动的价值函数和自我反思来实现高效的探索和增强的决策。我们方法的一个关键特点是引入了用于外部反馈的环境,这提供了一种更具深思熟虑性和适应性的问题解决机制,超越了现有技术的局限。我们在编程、交互式问答(QA)、网页导航和数学等多个领域的实验评估验证了LATS在决策中的有效性和通用性,同时保持了具有竞争力或有所提升的推理性能。值得注意的是,LATS在使用GPT-4的HumanEval编程任务上取得了最先进的pass@1准确率(92.7%),并在使用GPT-3.5的WebShop网页导航任务上展示了与基于梯度的微调相当的无梯度性能(平均得分75.9)。代码可在https://github.com/lapisrocks/LanguageAgentTreeSearch获取。

英文摘要:

While language models (LMs) have shown potential across a range of decision-making tasks, their reliance on simple acting processes limits their broad deployment as autonomous agents. In this paper, we introduce Language Agent Tree Search (LATS) -- the first general framework that synergizes the capabilities of LMs in reasoning, acting, and planning. By leveraging the in-context learning ability of LMs, we integrate Monte Carlo Tree Search into LATS to enable LMs as agents, along with LM-powered value functions and self-reflections for proficient exploration and enhanced decision-making. A key feature of our approach is the incorporation of an environment for external feedback, which offers a more deliberate and adaptive problem-solving mechanism that surpasses the constraints of existing techniques. Our experimental evaluation across diverse domains, including programming, interactive question-answering (QA), web navigation, and math, validates the effectiveness and generality of LATS in decision-making while maintaining competitive or improved reasoning performance. Notably, LATS achieves state-of-the-art pass@1 accuracy (92.7%) for programming on HumanEval with GPT-4 and demonstrates gradient-free performance (average score of 75.9) comparable to gradient-based fine-tuning for web navigation on WebShop with GPT-3.5. Code can be found at https://github.com/lapisrocks/LanguageAgentTreeSearch

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

↑