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

Lin Guan, Karthik Valmeekam, Sarath Sreedharan, Subbarao Kambhampati

Introduction

Large Language Models (LLMs) have demonstrated an impressive capacity for reasoning and world knowledge. However, when tasked with complex planning—sequencing actions to achieve a goal—they frequently falter, hallucinating physical impossibilities or failing to manage long-term dependencies. This paper proposes a paradigm shift: instead of using LLMs as planners, we should use them as "Model Constructors" to build symbolic world models in Planning Domain Definition Language (PDDL). By using LLMs as a natural language bridge for human and automated feedback, the authors create a pipeline that combines the broad knowledge of LLMs with the rigorous, provable correctness of classical AI planners.

The Planning Challenge: Modeling vs. Searching

The core challenge in automated planning is that it requires two distinct skills: modeling (understanding that a fridge must be open before taking out milk) and searching (finding the exact sequence of dozens of steps to achieve a complex goal). LLMs are remarkably good at the former—possessing vast latent knowledge about how the world works—but they struggle with the combinatorial explosion inherent in the latter.

Current attempts to fix LLM planning usually involve "online" feedback, where a robot attempts a plan, fails, and tries again. This is expensive, potentially dangerous, and inefficient. This research aims to "tease out" world knowledge into a formal structure that traditional, logic-based planners can solve with mathematical certainty.

Methodology: The LLM as a Model Constructor

The authors introduce a framework that treats the LLM as a translator and constructor rather than a decision-maker. The process follows three main steps:

  1. PDDL Construction: The LLM is prompted with natural language descriptions of a robot's skills (e.g., "pick up an object"). It then generates a formal PDDL model, defining parameters, preconditions (what must be true before the action), and effects (what changes after).
  2. Iterative Refinement: Since initial PDDL drafts often contain syntax or logic errors, the system uses two feedback loops:
  3. Automated: A PDDL validator (VAL) checks for syntax errors.
  4. Human-in-the-Loop: The LLM translates the cryptic PDDL code back into natural language for human review. If a human identifies a missing constraint (e.g., "the robot needs to be holding a knife to slice the apple"), the LLM updates the underlying PDDL code accordingly.
  5. Model-Based Planning: Once verified, the model is handed to a classical planner (such as Fast Downward). This planner performs a rigorous search to find a guaranteed-correct plan. Alternatively, the PDDL model can be used to "back-prompt" an LLM planner, providing the formal constraints it needs to remain logically consistent.

Experimental Evaluation

The framework was evaluated on three distinct domains:

  • Tyreworld & Logistics: Classic benchmarks from the International Planning Competition (IPC).
  • Household Domain: A complex environment featuring a single-arm robot with 22 diverse skills (e.g., mashing food, vacuuming, heating items). This domain is significantly more constrained and complex than common benchmarks like ALFWorld.

Key Results and Insights

The results highlight a massive performance gap between "raw" LLM prompting and the proposed model-based approach:

  • Success Rates: In the complex Household domain, a "Vanilla" LLM planner succeeded only 15% of the time. Using the LLM-generated PDDL model with a classical planner boosted the success rate to 95%.
  • Model Quality: GPT-4 proved significantly more capable than GPT-3.5 at maintaining logical consistency, producing high-quality models with over 400 literals for 41 different actions.
  • Efficiency of Correction: The authors argue it is more efficient to correct the world model once than to correct individual plans. Once the model is accurate, every subsequent plan generated from it is guaranteed to be correct.

Limitations and Future Work

While promising, the framework has clear boundaries. It currently relies on a human to catch "factual" errors that an LLM might miss (e.g., forgetting that a blender needs to be plugged in). Furthermore, the model assumes full observability, meaning the robot knows the state of every object at the start, which is rarely the case in real-world robotics.

Future research may focus on automating factual error checking by linking the LLM to physics simulators or using vision-language models to ground PDDL predicates in real-world visual data, bridging the gap between high-level logic and low-level perception.

Summary updated

BibTeX
@inproceedings{guan2023leveraging,
  author = {Lin Guan and Karthik Valmeekam and Sarath Sreedharan and Subbarao Kambhampati},
  title = {{Leveraging Pre-trained Large Language Models to Construct and Utilize World Models for Model-based Task Planning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=zDbsSscmuj},
}
Figure