Skip to main content
QUICK REVIEW

[论文解读] LLM+P: Empowering Large Language Models with Optimal Planning Proficiency

Bo Liu, Yuqian Jiang|arXiv (Cornell University)|Apr 22, 2023
Topic Modeling被引用 84
一句话总结

LLM+P 将大语言模型与经典规划器结合,将自然语言规划问题翻译为 PDDL,通过规划器进行最优求解,并将计划翻译回自然语言,在常规 LLMs 上实现更出色的规划性能。

ABSTRACT

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.

研究动机与目标

  • Motivate the need for reliable long-horizon planning in robotics and demonstrate how classical planners can provide optimal solutions.
  • Propose a pipeline (LLM+P) that converts natural language planning problems into PDDL, leverages a classical planner, and translates back to natural language.
  • Show that LLM+P outperforms LLM-only planning and LLM-based search methods across diverse robot planning domains.
  • Provide a realistic robot demonstration to validate practical applicability in home robotics.

提出的方法

  • Use an LLM to translate a natural language planning problem into a PDDL problem file (domain and problem).
  • Use a supplied domain PDDL (from a human expert) and feed the generated problem PDDL to a classical planner to obtain a plan, optimally when possible.
  • Translate the generated PDDL plan back into natural language for user understanding or action execution.
  • Comparison with baselines: LLM-as-P and Tree of Thoughts to assess planning feasibility and optimality.
  • Evaluate with seven IPC-inspired domains and 20 tasks per domain, plus a real-robot tidying task demonstration.
Figure 1 : LLM+P makes use of a large language model (LLM) to produce the PDDL description of the given problem, then leverages a classical planner for finding an optimal plan, then translates the raw plan back to natural language using the LLM again.
Figure 1 : LLM+P makes use of a large language model (LLM) to produce the PDDL description of the given problem, then leverages a classical planner for finding an optimal plan, then translates the raw plan back to natural language using the LLM again.

实验结果

研究问题

  • RQ1Can state-of-the-art LLMs directly solve long-horizon planning problems (planning feasibility and optimality)?
  • RQ2Does integrating a classical planner via LLM+P improve planning success and optimality across multiple domains?
  • RQ3How crucial is context (example problem and problem PDDL) for LLM+P performance?
  • RQ4Can LLM+P enable a home robot to perform realistic manipulation tasks efficiently from natural language prompts?

主要发现

  • LLM-as-P often produces plans in natural language that are not feasible due to lack of precondition reasoning.
  • LLM+P yields optimal plans for the majority of problems; most failures are due to mis-specified problem files rather than planner limitations.
  • Context (problem-example pair) is crucial for LLM+P to generate correct PDDL problem files.
  • LLM+P demonstrates practical effectiveness in a real home-robot tidying task, achieving lower cost than an LLM-only approach.
(a) grasp bottle
(a) grasp bottle

更好的研究,从现在开始

从阅读论文到最终审阅,大幅缩短您的研究时间。

无需绑定信用卡

本解读由 AI 生成,并经人工编辑审核。