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

利用预训练大语言模型构建并使用世界模型以进行基于模型的任务规划

Leveraging Pre-trained Large Language Models to Construct and Utilize World Models for Model-based Task Planning

Arizona State University(亚利桑那州立大学);Colorado State University(科罗拉多州立大学)

Lin Guan, Karthik Valmeekam, Sarath Sreedharan, Subbarao Kambhampati

AI总结:

本文提出让 LLM 构建并迭代修正 PDDL 世界模型,再由可靠的独立规划器求解,从而提升规划正确性并减少人类反馈成本。

摘要:

将预训练大语言模型(LLM)应用于规划问题正受到越来越多的关注。然而,目前直接把 LLM 用作规划器的方法并不实用,原因包括若干因素:规划的正确性有限、强烈依赖与模拟器乃至真实环境交互所获得的反馈,以及利用人类反馈的效率低下。在本工作中,我们提出一种新颖的替代范式:用规划领域定义语言(PDDL)构建显式的世界(领域)模型,然后借助可靠的、与领域无关的规划器使用该模型进行规划。针对 LLM 最初可能无法生成功能完整的 PDDL 模型这一事实,我们将 LLM 用作 PDDL 与纠正反馈来源之间的接口,这些来源包括 PDDL 验证器和人类。对于缺乏 PDDL 背景的用户,我们表明 LLM 能够把 PDDL 翻译成自然语言,并将纠正反馈有效地编码回底层领域模型。我们的框架不仅享有外部规划器提供的正确性保证,还通过允许用户在开始时纠正领域模型来减少人类参与,而不是像以往工作那样,通过交互式提示检查并纠正每一个生成的规划。在两个 IPC 领域以及一个 Household 领域上——该领域比 ALFWorld 等常用基准更复杂——我们证明可以利用 GPT-4 为 40 多个动作生成高质量的 PDDL 模型,随后使用经过纠正的 PDDL 模型成功解决 48 个具有挑战性的规划任务。包括源代码在内的资源发布于:https://guansuns.github.io/pages/llm-dm。

英文摘要:

There is a growing interest in applying pre-trained large language models (LLMs) to planning problems. However, methods that use LLMs directly as planners are currently impractical due to several factors, including limited correctness of plans, strong reliance on feedback from interactions with simulators or even the actual environment, and the inefficiency in utilizing human feedback. In this work, we introduce a novel alternative paradigm that constructs an explicit world (domain) model in planning domain definition language (PDDL) and then uses it to plan with sound domain-independent planners. To address the fact that LLMs may not generate a fully functional PDDL model initially, we employ LLMs as an interface between PDDL and sources of corrective feedback, such as PDDL validators and humans. For users who lack a background in PDDL, we show that LLMs can translate PDDL into natural language and effectively encode corrective feedback back to the underlying domain model. Our framework not only enjoys the correctness guarantee offered by the external planners but also reduces human involvement by allowing users to correct domain models at the beginning, rather than inspecting and correcting (through interactive prompting) every generated plan as in previous work. On two IPC domains and a Household domain that is more complicated than commonly used benchmarks such as ALFWorld, we demonstrate that GPT-4 can be leveraged to produce high-quality PDDL models for over 40 actions, and the corrected PDDL models are then used to successfully solve 48 challenging planning tasks. Resources, including the source code, are released at: https://guansuns.github.io/pages/llm-dm.

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

↑