This paper, recently presented at AAAI, explores the intersection of Large Language Models (LLMs) and formal automated planning. The researchers tackle a major bottleneck in evaluating LLMs: the manual effort required to translate formal planning problems into natural language that a model can understand.
TL;DR
The authors introduce PDDL2NL, a system that automatically converts formal PDDL planning tasks into natural language prompts. Their findings reveal that using LLMs as step-by-step "action policies" with reasoning (ReAct) significantly outperforms asking them to generate entire plans at once, even rivaling symbolic planners in specific scaling scenarios.
What Problem Does This Paper Address?
In the world of AI planning, PDDL (Planning Domain Definition Language) is the standard for describing "domains" (the rules of the world, like how a robot moves) and "problems" (the specific starting state and goal). While symbolic planners excel at solving these, they lack the common-sense reasoning of LLMs.
Conversely, LLMs struggle with the raw, bracket-heavy syntax of PDDL. Previous research into "LLM planning" relied on humans manually writing natural language descriptions for a handful of domains (like Blocksworld). This manual process is slow, prone to bias, and makes it impossible to run large-scale benchmarks across the hundreds of existing PDDL domains. The authors set out to automate this translation to enable a truly broad evaluation of LLM reasoning.
Methods
The researchers developed a pipeline called PDDL2NL to bridge the gap between formal logic and natural language.
- Automatic Translation (PDDL2NL): They use an LLM (GPT-4o) to generate natural language "snippets" for PDDL predicates and actions. For example, a formal action like
(drive-truck ?t ?from ?to ?c)might be translated to"drive truck {?t} from location {?from} in city {?c} to location {?to}". These snippets are then assembled using a rule-based system to ensure the underlying logic remains intact. - Action Choice Mechanisms: They compared four ways of using the LLM:
- Basic Planning: The LLM gets the description and is asked to output a full sequence of actions.
- CoT (Chain of Thought): Similar to Basic, but the LLM is prompted to "think step-by-step" between actions.
- Act (Policy): The LLM acts as a policy, choosing only the next action. A simulator then updates the state and gives the LLM feedback.
- ReAct (Policy + CoT): The LLM generates a reasoning thought and the next action, receiving environmental feedback at every step.
- The T-LLM: Since the LLM outputs natural language, they use a second "Translator LLM" to convert those actions back into formal PDDL so a standard plan validator can check if the plan actually works.
Datasets
The authors conducted a massive evaluation using:
- 13 Classical Domains: Including standard benchmarks like Blocksworld, Logistics, and Depots.
- IPC Benchmarks: 675 instances across 41 domains from the International Planning Competition.
- Scaled Benchmarks: Custom-generated larger problems to test where LLMs and symbolic planners break.
- Comparison to Manual Prompts: They tested their automated prompts against the gold-standard manual prompts from the "PlanBench" dataset.
Key Insights and Ideas
- Automation is as good as humans: The automatically generated prompts performed just as well as (and sometimes better than) the hand-crafted ones. This proves that LLMs can effectively "self-translate" formal logic into intuitive descriptions.
- Policies beat Plans: The most striking finding was that LLMs are much better at being "reactive policies" than "deliberative planners." Asking for one action at a time with feedback (Act/ReAct) yielded a massive performance boost over generating a whole plan (Basic/CoT).
- Reasoning is the "Secret Sauce": Adding Chain-of-Thought reasoning (ReAct) consistently dominated all other LLM configurations.
- Semantic Names Matter: The authors found that if they replaced meaningful names (like "truck") with generic ones (like "object1"), LLM performance plummeted to zero. This confirms that LLMs rely heavily on the semantic knowledge baked into words during pre-training, rather than just pure logical reasoning.
Key Results
- Coverage: In the primary experiment of 260 tasks, the ReAct mechanism solved 194, while the Basic plan generation solved only 100.
- Beating Search: In specific domains like Ferry and Grippers, the ReAct configuration actually outperformed the state-of-the-art optimal symbolic planner (
lmc) as the problems scaled up. This is because the LLM could "see" the simple policy needed without performing the exhaustive search that symbolic planners require. - General Performance: While LLMs still lag far behind the best "satisficing" planners (like the FF planner, which solved all 260 tasks), they soundly beat random action selection, proving they are extracting genuine utility from the task descriptions.
Limitations and Future Work
- Cost: Running these experiments is expensive. The authors noted that for some IPC domains, the API costs for GPT-4o would have exceeded $150 per domain.
- No Guarantees: Unlike symbolic planners, LLMs provide no guarantee that a plan is correct or optimal. They can still "hallucinate" invalid actions.
- Complexity Limits: PDDL2NL currently struggles with complex PDDL features like conditional effects or quantifiers, and LLMs fail when actions have too many parameters.
- Future Direction: The authors suggest the next step is Neurosymbolic Planning: using LLMs to suggest promising actions to a symbolic planner, combining the LLM's intuition with the symbolic planner's rigorous search and correctness guarantees.
Summary updated