Abstract
Large language models (LLMs) have revolutionized a large variety of NLP tasks. An active debate is to what extent they can do reasoning and planning. Prior work has assessed the latter in the specific context of PDDL planning, based on manually converting three PDDL domains into natural language (NL) prompts. Here we automate this conversion step, showing how to leverage an LLM to automatically generate NL prompts from PDDL input. Our automatically generated NL prompts result in similar LLM-planning performance as the previous manually generated ones. Beyond this, the automation enables us to run much larger experiments, providing for the first time a broad evaluation of LLM planning performance in PDDL. Our NL prompts yield better performance than PDDL prompts and simple template-based NL prompts. Compared to symbolic planners, LLM planning lags far behind; but in some domains, our best LLM configuration scales up further than A* using LM-cut.
Introduction
In the field of automated planning, the Planning Domain Definition Language (PDDL) serves as the standard for describing goals, objects, and action schemas. While symbolic planners are highly efficient at solving these logic-based problems, there is significant interest in whether Large Language Models (LLMs) can perform similar reasoning. However, LLMs typically struggle with raw PDDL code, performing better when tasks are presented in natural language (NL).
Previously, evaluating LLMs on planning required labor-intensive manual translation of PDDL into English stories. This "automation bottleneck" has limited the scope of research to a handful of domains. This paper introduces PDDL2NL, a system designed to automatically translate any PDDL file into high-quality natural language prompts, enabling large-scale evaluation of LLM planning capabilities.
The PDDL2NL Pipeline
The PDDL2NL system utilizes a multi-stage translation process to convert formal logic into readable text while preserving the underlying structure. The process begins with Predicate Translation, where an LLM (such as GPT-4o) converts abstract predicates like (at ?obj ?loc) into natural snippets like {?obj} is at {?loc}.
Following predicate translation, the system performs Action Schema Translation. It composes the translated predicates to describe the preconditions and effects of actions (e.g., explaining that to drive a truck, it must be at the starting location). Finally, Task Composition assembles these domain rules, the initial state, and the goal into a cohesive narrative prompt for the planning LLM.
System Architecture and Interaction Modes
The research evaluates two primary ways an LLM can interact with a planning task: as a "Planner" (generating a complete sequence of actions) or as a "Policy" (selecting one action at a time based on environmental feedback).
To facilitate this, the architecture employs a dual-LLM setup. The P-LLM (Planning LLM) generates instructions in natural language. These are then passed to a T-LLM (Translation LLM), which converts the NL instructions back into formal PDDL actions. These actions are validated by a PDDL simulator, which provides feedback (observations) back to the P-LLM in the policy mode.
The study tested four specific configurations:
- Basic: The LLM generates the entire plan in one go.
- Chain-of-Thought (CoT): The LLM "thinks" step-by-step before outputting the plan.
- Act (Policy): The LLM picks one action, receives feedback from the simulator, and repeats.
- ReAct: A combination of CoT and the Policy approach, where the LLM reasons before each action choice.
Experimental Results
The authors conducted an extensive evaluation across 13 classical planning domains and 675 instances from International Planning Competition (IPC) benchmarks.
Key Findings:
- Automation Parity: Automatically generated NL prompts performed as well as manually crafted ones, proving that the translation bottleneck can be effectively automated.
- Policy Superiority: The "Policy" approach (Act/ReAct) significantly outperformed "Plan Generation" (Basic/CoT). In a 13-domain benchmark, ReAct solved 194/260 tasks, while the Basic approach solved only 100. This suggests LLMs are better at reactive decision-making than long-term sequence visualization.
- Naturalness Matters: LLMs performed better on PDDL2NL's natural descriptions than on rigid, template-based translations, likely by leveraging linguistic common sense about physical domains.
- Scaling and the Symbolic Gap: While symbolic planners (like the FF heuristic) still solve nearly 100% of tasks almost instantly, the ReAct configuration showed surprising scaling properties, outperforming optimal symbolic planners (A with LM-cut) in specific domains like Blocksworld and Ferry* as problem complexity increased.
Conclusion
PDDL2NL successfully bridges the gap between formal planning languages and the linguistic strengths of LLMs. While LLMs currently lag behind specialized symbolic planners in general efficiency, the ability to act as a policy with environmental feedback shows promise. Future work may lie in neurosymbolic approaches, where LLMs suggest actions to guide symbolic search or assist in plan repair.
Summary updated