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

LLM+P:赋予大型语言模型最优规划能力

LLM+P: Empowering Large Language Models with Optimal Planning Proficiency

The University of Texas at Austin(德克萨斯大学奥斯汀分校);State University of New York at Binghamton(纽约州立大学宾汉姆顿分校);Sony AI(索尼人工智能)

Bo Liu, Yuqian Jiang, Xiaohan Zhang, Qiang Liu, Shiqi Zhang, Joydeep Biswas, Peter Stone

AI总结:

本文提出LLM+P框架,通过将自然语言规划问题转为PDDL并调用经典规划器,再把方案译回自然语言,使LLM获得可靠且最优的长时程规划能力。

摘要:

大型语言模型(LLM)已展现出显著的零样本泛化能力:最先进的聊天机器人能够针对日常生活中出现的许多常见问题给出合理答案。然而,迄今为止,LLM尚不能可靠地解决长时程规划问题。相比之下,经典规划器一旦收到以格式化方式给出的问题,就能利用高效搜索算法快速找到正确甚至最优的规划。为了兼取两者之长,本文提出了LLM+P,这是首个将经典规划器的优势融入LLM的框架。LLM+P接收规划问题的自然语言描述,随后以自然语言返回用于解决该问题的正确(或最优)规划。其工作流程是:首先将语言描述转换为以规划领域定义语言(PDDL)编写的文件,然后利用经典规划器快速找到解决方案,最后将找到的解决方案翻译回自然语言。除LLM+P外,我们还基于常见规划场景定义了一组多样化的不同基准问题。通过在这些基准问题上开展全面实验,我们发现LLM+P能够为大多数问题提供最优解,而LLM对大多数问题甚至无法给出可行规划。代码和结果公开于https://github.com/Cranial-XIX/llm-pddl.git。

英文摘要:

Large language models (LLMs) have demonstrated remarkable zero-shot generalization abilities: state-of-the-art chatbots can provide plausible answers to many common questions that arise in daily life. However, so far, LLMs cannot reliably solve long-horizon planning problems. By contrast, classical planners, once a problem is given in a formatted way, can use efficient search algorithms to quickly identify correct, or even optimal, plans. In an effort to get the best of both worlds, this paper introduces LLM+P, the first framework that incorporates the strengths of classical planners into LLMs. LLM+P takes in a natural language description of a planning problem, then returns a correct (or optimal) plan for solving that problem in natural language. LLM+P does so by first converting the language description into a file written in the planning domain definition language (PDDL), then leveraging classical planners to quickly find a solution, and then translating the found solution back into natural language. Along with LLM+P, we define a diverse set of different benchmark problems taken from common planning scenarios. Via a comprehensive set of experiments on these benchmark problems, we find that LLM+P is able to provide optimal solutions for most problems, while LLMs fail to provide even feasible plans for most problems.\footnote{The code and results are publicly available at https://github.com/Cranial-XIX/llm-pddl.git.

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

↑