Skip to main content
QUICK REVIEW

[论文解读] Leveraging Pre-trained Large Language Models to Construct and Utilize World Models for Model-based Task Planning

Lin Guan, Karthik Valmeekam|arXiv (Cornell University)|May 24, 2023
Natural Language Processing TechniquesComputer Science被引用 34
一句话总结

这篇论文提出一个基于模型的规划框架,使用 GPT-4 从自然描述构建显式的 PDDL 世界模型,然后通过反馈校正,并使用外部规划器生成计划。

ABSTRACT

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.

研究动机与目标

  • 推动从将 LLM 作为规划者转向通过 LLM 提取显式 PDDL 世界模型的转变。
  • 展示如何让 LLM 在 PDDL 与自然语言之间进行转换,以便让校验者和人类提供纠正性反馈。
  • 展示一个完整的流水线:PDDL 构建、错误纠正,以及使用领域无关规划器的规划。
  • 在 IPC 和 Household 领域进行评估,以评估 PDDL 模型的质量与可纠错性。

提出的方法

  • 以领域上下文、动作描述和动态更新的谓词列表对 LLM(GPT-4)进行提示,以生成 PDDL 动作模型。
  • 通过两轮迭代对生成的 PDDL 进行细化:逐动作构建和使用完整谓词集的第二轮。
  • 使用 PDDL 验证器(VAL)和人类反馈来识别语法和事实错误,并通过 LLM 主导的对话将纠正整合进来。
  • 将 PDDL 转换为自然语言以供用户检查,并收集纠正性反馈,然后重新并入领域模型。
  • 通过自然语言定位或视觉-语言模型对初始状态进行地基化,并将用户指令转换为用于规划的 PDDL 目标。
  • 选项 1:使用经典的领域无关规划器(如 Fast Downward)利用 LLM 获取的 PDDL 模型求解;选项 2:使用 LLM 规划的输出结合 VAL 反馈进行迭代改进计划。

实验结果

研究问题

  • RQ1GPT-4 能否为具有数百个字面量和动作的复杂领域生成高质量、可执行的 PDDL 模型?
  • RQ2来自校验者和人类的自然语言反馈在多大程度上能够纠正初始 PDDL 模型?
  • RQ3在 Household 与 IPC 领域,LLM 推导的 PDDL 模型在使用标准规划器进行成功规划方面能达到何种程度?
  • RQ4LLMs 在学习因果/行动关系方面的局限性是什么,以及外部验证对计划正确性有何影响?

主要发现

  • GPT-4 在跨领域下生成含有超过 400 个字面量的 41 个动作的高质量 PDDL 模型,在 Household 级提示中,GPT-4 总共犯错 59 次(大多是事实错误;3 次是语法错误)。
  • GPT-4 能通过自然语言反馈纠正事实错误和语法错误,在 Household 领域需要 59 条反馈消息来解决 56 个事实错误。
  • 经典规划器(Fast Downward)在使用 LLM 获得的 PDDL 模型时,在 Household 领域实现 95% 的计划成功,在 Logistics 中达到 100%,而普通的 LLM 规划器表现不佳。
  • 将 VAL 反馈纳入相较于仅使用 LLM 规划器可提高计划正确性,尽管在某些任务上表现仍落后于完全符号化的规划。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。