NL2Plan: Robust LLM-Driven Planning from Minimal Text Descriptions

Elliot Gestrin, Marco Kuhlmann, Jendrik Seipp

TL;DR

NL2Plan is the first domain-agnostic, offline system that translates short natural-language task descriptions into complete PDDL models and executable plans. By decomposing the problem into an incremental multi-step extraction pipeline with automated validation, self-critique, and a symbolic classical planner, it solves 10 out of 15 benchmark tasks compared to just 2 solved by zero-shot chain-of-thought LLM prompting.

What Problem Does This Paper Address?

Classical automated planners (such as Fast Downward) are fast, sound, and mathematically guaranteed to find valid plans, but they require problems specified in formal declarative languages like PDDL (Planning Domain Definition Language). Manually authoring PDDL domain and problem files is tedious, error-prone, and requires specialized expertise.

Conversely, Large Language Models (LLMs) excel at processing natural language, but make notoriously unreliable planners: they frequently hallucinate preconditions, lose track of state changes over long horizons, and output physically impossible action sequences. While prior hybrid systems used LLMs to help formulate PDDL, they still required hand-crafted domain files, structured examples, or domain-specific templates. NL2Plan bridges this gap by automatically converting unstructured, minimal text descriptions into full PDDL domain and problem specifications with zero domain-specific fine-tuning.

Methods

NL2Plan breaks PDDL generation into a five-step LLM extraction pipeline (powered by GPT-4) followed by symbolic planning:

  1. Type Extraction: The LLM identifies key entities (e.g., Truck, Location, Package) from natural text.
  2. Hierarchy Construction: The LLM organizes types into a taxonomy/tree structure, inferring general parent types (e.g., Vehicle) when helpful.
  3. Action Extraction: The LLM defines required capabilities as natural-language action descriptions with usage examples.
  4. Action Construction: Actions are translated into formal PDDL schemas (parameters, preconditions, effects), dynamically synthesizing the predicate set. Notably, NL2Plan supports expressive non-STRIPS features (such as forall preconditions and conditional effects).
  5. Task Extraction: Given a specific scenario, the LLM instantiates concrete objects, initial states, and goal conditions into a PDDL problem file.
  6. Planning: An off-the-shelf classical planner (the LAMA heuristic search planner within the Scorpion framework) solves the generated PDDL model.
Natural Language Task 
  → [Type Extraction] → [Hierarchy Construction] 
  → [Action Extraction] → [Action Construction] 
  → [Task Extraction] 
  → Classical Planner (LAMA) → Plan / Unsolvable

To maintain correctness, NL2Plan incorporates two feedback loops:

  • Rule-Based Syntax Validator: Programmatically checks PDDL syntax, typing, and predicate usage (e.g., catching undeclared predicates or invalid arities).
  • LLM-Driven Feedback: In each extraction step, an LLM critique agent reviews the draft against domain-agnostic checklists (using 3-shot Chain-of-Thought prompting) before finalizing changes.

Datasets

The authors evaluated NL2Plan across four domains spanning different reasoning requirements, testing three difficulty levels per domain (easy = ~4 actions, medium = ~8 actions, hard = ~12 actions):

  • Blocksworld: Classic international planning competition (IPC) block-stacking task.
  • Tyreworld: IPC tool-use domain involving wheel and tyre replacement.
  • Household: Domestic embodied robot tasks derived from ALFWorld and VirtualHome.
  • Independent Set Reconfiguration (ISR): A graph-theoretic problem requiring transitions between independent vertex sets without violating adjacency constraints. A prompt-guided variant (ISR Assisted) was also tested.

Note: All prompt development was performed exclusively on a separate domain (Logistics) using GPT-4-1106-preview to prevent prompt overfitting.

Key Insights and Ideas

  • Modularity rescues LLM reasoning: LLMs struggle to reason about holistic multi-step plan trajectories, but are surprisingly competent when evaluating actions and preconditions in isolation. Decoupling domain modeling from search execution leverages the LLM's semantic knowledge while outsourcing combinatorial search to a symbolic planner.
  • Fail-safe, explainable outputs: When pure LLMs fail, they confidently output invalid plans. In contrast, when NL2Plan encounters modeling flaws, the classical planner returned "No plan found" in 40% of failure cases. This failure detection is crucial for real-world robotics where running an invalid plan is dangerous.
  • PDDL as an intermediate, editable representation: Because the system generates readable PDDL, it doubles as an assistive modeling tool. A human practitioner can easily inspect, verify, or fix subtle logical edge cases.

Key Results

  • Task Success: NL2Plan correctly solved 10 of 15 tasks (66.7%). By comparison, the baseline (Zero-Shot Chain-of-Thought) solved only 2 of 15, failing primarily by generating impossible compound moves (e.g., lifting an entire stack of blocks at once).
  • Assisted Modeling: In the complex ISR graph domain, giving the LLM a short hint to model changes in two alternating stages (add vs. remove) boosted NL2Plan's success rate from 1/3 to 3/3.
  • Automated Validation Impact: The syntax validator caught errors in 77.8% of generated actions in Step 4 and 13.3% of tasks in Step 5, successfully preventing fatal PDDL parse errors before invoking the planner.

Limitations and Future Work

  • High Token Consumption: Because of iterative prompt schemas and verification passes, NL2Plan consumes significantly more tokens than simple prompt baselines (averaging ~106k tokens per domain, dominated by Action Construction at 70.8%).
  • Imperfect LLM Feedback: LLM self-feedback occasionally provided flawed suggestions (harmful in 21.1% of action reviews and 25% of task reviews).
  • Future Directions: Amortizing token costs by re-using domain models across multiple problem instances, integrating external neurosymbolic translators (such as TIC), and exploring interactive human-in-the-loop interfaces for PDDL authoring.

Summary updated

BibTeX
@inproceedings{gestrin2024nl,
  author = {Elliot Gestrin and Marco Kuhlmann and Jendrik Seipp},
  title = {{NL2Plan: Robust LLM-Driven Planning from Minimal Text Descriptions}},
  booktitle = {HAXP @ ICAPS},
  year = {2024},
  url = {https://openreview.net/forum?id=NmzHuV101q},
}
Figure