Introduction
Large Language Models (LLMs) have demonstrated remarkable capabilities in informal reasoning tasks, yet they consistently struggle with formal planning in grounded environments. In domains like robotics or logistics, every action must adhere to strict preconditions and produce verifiable effects. Traditional approaches have attempted to use LLMs as direct planners, but these models often fail to maintain the long-term state tracking and look-ahead reasoning required for complex tasks.
This research explores an alternative paradigm: LLM-as-Formalizer. Instead of generating a plan directly, the LLM translates natural language descriptions into a structured format like the Planning Domain Definition Language (PDDL). This formal representation is then processed by a deterministic symbolic solver to find a guaranteed valid plan.
The Two Paradigms: Planner vs. Formalizer
The study contrasts two primary methodologies for leveraging LLMs in planning tasks. While the planner approach relies on the model's internal reasoning to find a solution, the formalizer approach uses the LLM's linguistic strengths to bridge the gap between human language and symbolic logic.
- LLM-as-Planner: The model receives a domain and problem description and is expected to output a step-by-step plan directly.
- LLM-as-Formalizer: The model acts as a translator, converting natural language into a Domain File (defining rules) and a Problem File (defining the initial state and goal). A specialized planner then computes the final sequence of actions.
The Formalization Pipeline
A key contribution of this work is testing the "limit" of formalization by requiring models to generate the entire PDDL representation from scratch, rather than filling in templates. The researchers evaluated this across varying levels of linguistic complexity, from "Heavily Templated" text that mirrors PDDL structure to "Natural" human-like descriptions.
As shown in the pipeline, the LLM must extract predicates, actions, and initial conditions from the text. In "Natural" descriptions, the model must also infer "common-sense" constraints that humans typically omit, such as the requirement that a block must be clear before it can be moved.
Experimental Methodology and Results
The models were benchmarked on four classic domains from the International Planning Competition (IPC), including BlocksWorld and Logistics. They also tested "Mystery BlocksWorld," a version where all names are obfuscated (e.g., "pickup" becomes "glop") to prevent the model from relying on semantic memorization.
Key Findings
- Translation Over Reasoning: LLMs are significantly more effective at extracting structural information and translating it into code than they are at performing search-based reasoning. For instance, GPT-4o's performance nearly doubled when switching from a direct planning approach (33% correctness) to a formalizer approach (60%) in BlocksWorld.
- Robustness to Lexical Perturbation: The formalizer approach proved exceptionally robust to weird naming conventions. In the "Mystery BlocksWorld" task, the LLM-as-Planner baseline dropped to 0% accuracy, while the LLM-as-Formalizer maintained a 70% success rate.
- The "Naturalness Tax": Performance degrades as descriptions become more human-like. Moving from "Heavily Templated" to "Natural" text caused a significant drop in correctness (from 89% to 60% for GPT-4o) because models struggle to re-insert implicit constraints omitted by humans.
Conclusion
While LLMs are not yet reliable autonomous planners, they are powerful tools for formalizing informal requirements. The primary bottleneck for current models is not the reasoning itself, but the sensitivity to formal syntax and the ability to infer implicit environmental constraints. Future improvements in constrained decoding and fine-tuning on formal languages may further push the boundaries of LLM-driven planning systems.
Summary updated