Automating the Generation of Prompts for LLM-based Action Choice in PDDL Planning

Katharina Stein, Daniel Fišer, Jörg Hoffmann, Alexander Koller

Abstract

Large language models (LLMs) have shown potential in reasoning and planning, but their performance in formal PDDL (Planning Domain Definition Language) environments often depends on manual translation into natural language (NL). This paper introduces PDDL2NL, a method to automate this conversion. By leveraging LLMs to generate NL prompts from PDDL, the researchers achieved performance comparable to manual engineering while enabling a broad evaluation across 41 domains. The study reveals that LLMs excel when used as step-by-step "policies" with environmental feedback rather than one-shot "planners."

Introduction

The gold standard for describing planning problems is PDDL, a formal logic-based language. However, LLMs struggle with its "dry" syntax. Previous work showed that translating PDDL into NL (e.g., changing a predicate like (on ?a ?b) to "Block A is on top of Block B") significantly improves LLM performance. The bottleneck has been the manual effort required for these translations. PDDL2NL removes this hurdle, allowing for the first large-scale evaluation of LLMs as general-purpose planners.

The PDDL2NL Pipeline

The authors developed PDDL2NL to translate formal planning domains into descriptive prose in three stages: predicate translation, action schema translation, and task composition.

Examples of PDDL2NL translation, showing how formal PDDL predicates and action schemas are converted into natural language descriptions.

This pipeline enables the testing of various action choice mechanisms by providing a consistent way to describe the initial state, the goal, and the "rules of the world" to the LLM. Interestingly, the study found that LLMs rely heavily on the semantic meaning of words; replacing descriptive terms with nonsense labels (e.g., "action1" instead of "drive") causes performance to tank.

Action Choice Mechanisms

The researchers evaluated four mechanisms, categorized into two main approaches: LLM planning (one-shot) and LLM policy (step-by-step).

The overall system architecture, contrasting the 'LLM planning' approach (one-shot plan generation) with the 'LLM policy' approach (step-by-step action selection with simulator feedback).
  1. Basic: The LLM generates a full plan (a sequence of actions) in one go.
  2. Chain-of-Thought (CoT): The LLM generates reasoning steps before outputting the full plan.
  3. Act: The LLM acts as a policy, choosing only the next single action. A simulator updates the state and provides feedback for the next step.
  4. ReAct: A combination of CoT and Act, where the LLM "thinks" before choosing each individual action based on simulator feedback.

Key Insights: Policies vs. Planners

A striking finding is that LLMs are far more effective as policies than as planners. By acting as a policy (Act/ReAct), the LLM receives feedback from a simulator after every step, reducing the cognitive load of predicting long-term state changes. This interactive loop allows the LLM to focus on the immediate next move rather than holding an entire future plan in its context window.

Results and Evaluation

The study utilized a primary benchmark of 13 classical domains and a massive IPC benchmark with 675 instances across 41 domains—the first evaluation of this scale.

  • Overall Performance: ReAct was the clear winner, solving 194 out of 260 tasks in the primary benchmark, compared to only 100 for the "Basic" one-shot approach.
  • Comparison to Symbolic Planners: While symbolic planners (like FF) still dominate, ReAct outperformed optimal planners (like LM-cut) in 6 out of 13 domains on small instances and showed better scaling properties on larger problems.

Conclusion

Automating PDDL-to-NL translation enables broad benchmarking and reveals that LLMs are best suited for interactive, step-by-step decision-making. Future work points toward Neurosymbolic Planning, where LLMs provide intuitive heuristics to guide rigorous symbolic search engines, combining the LLM's intuition with the symbolic planner's formal guarantees.

Summary updated

BibTeX
@inproceedings{stein2025automating,
  author = {Katharina Stein and Daniel Fišer and Jörg Hoffmann and Alexander Koller},
  title = {{Automating the Generation of Prompts for LLM-based Action Choice in PDDL Planning}},
  booktitle = {Proceedings of the International Conference on Automated Planning and Scheduling},
  year = {2025},
  doi = {10.1609/icaps.v35i1.36126},
}
Figure