[Paper Review] Leveraging Pre-trained Large Language Models to Construct and Utilize World Models for Model-based Task Planning
This paper proposes a model-based planning framework that uses GPT-4 to construct explicit PDDL world models from natural descriptions, then corrects them via feedback and uses external planners to generate plans.
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.
Motivation & Objective
- Motivate the shift from using LLMs as planners to extracting explicit PDDL world models via LLMs.
- Show how LLMs can translate between PDDL and natural language to enable corrective feedback from validators and humans.
- Demonstrate a complete pipeline: PDDL construction, error correction, and planning using domain-independent planners.
- Evaluate across IPC and Household domains to assess quality and corrigibility of the PDDL models.
Proposed method
- Prompt LLMs (GPT-4) with domain context, action descriptions, and a dynamically updated predicate list to generate PDDL action models.
- Iteratively refine generated PDDL through two passes: action-by-action construction and a second pass with the full predicate set.
- Use PDDL validators (VAL) and human feedback to identify syntax and factual errors, and incorporate corrections via LLM-mediated dialogues.
- Translate PDDL into natural language for user inspection and collect corrective feedback that is then re-incorporated into the domain model.
- Ground initial states via natural language grounding or vision-language models, and translate user instructions into PDDL goals for planning.
- Option 1: solve with a classical domain-independent planner (e.g., Fast Downward) using the LLM-acquired PDDL model; Option 2: use LLM-planned outputs with VAL feedback to iteratively refine plans.
Experimental results
Research questions
- RQ1Can GPT-4 generate high-quality, executable PDDL models for complex domains with hundreds of literals and actions?
- RQ2How effectively can natural-language feedback from validators and humans correct initial PDDL models?
- RQ3To what extent can LLM-derived PDDL models enable successful planning with standard planners in household and IPC domains?
- RQ4What are the limitations of LLMs in learning causal/action relationships, and how does external validation impact plan correctness?
Key findings
- GPT-4 produces high-quality PDDL models with over 400 literals for 41 actions across domains, with GPT-4 making 59 total errors (mostly factual; 3 syntax) in Household-level prompts.
- GPT-4 can correct factual errors and syntax errors through natural-language feedback, requiring 59 feedback messages to address 56 factual errors in Household domain.
- Classical planners (Fast Downward) achieve 95% plan success in Household and 100% in Logistics when using LLM-acquired PDDL models, whereas vanilla LLM planners perform poorly.
- Incorporating VAL feedback improves plan correctness compared to using the LLM planner alone, though performance still lags behind fully symbolic planning in some tasks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.