TL;DR
While large language models (LLMs) often stumble on formal symbolic planning, PDDL-INSTRUCT bridges this gap by instruction-tuning models to reason through explicit state-action-state transitions using feedback from a formal validator. Instead of relying on expensive, prompt-only feedback loops at test time, it updates model parameters directly during training, boosting planning accuracy up to 94% on standard benchmarks and reducing test-time verifier queries up to 7.1×.
What Problem Does This Paper Address?
Classical automated planning—formalized in representations like the Planning Domain Definition Language (PDDL)—is computationally hard (PSPACE-complete). While LLMs excel at fluent text generation, they struggle with the strict mathematical consistency required to track action preconditions, state effects, and goal satisfaction over multi-step horizons.
Recent neuro-symbolic methods like the LLM-Modulo framework pair LLMs with symbolic verifiers in an iterative Generate–Test–Critique loop. However, standard LLM-Modulo setups only pass validator critiques as in-context text prompts during inference. The LLM never updates its weights, repeatedly falling into the same reasoning traps and requiring costly test-time iterations. Standard fine-tuning, on the other hand, frequently overfits to specific problem formats and loses the ability to generalize.
Methods
The authors propose PDDL-INSTRUCT, a two-phase instruction tuning pipeline that directly integrates formal verification into gradient updates:
┌───────────────────────────────────────────────┐
│ Phase 2: Chain-of-Thought Instruction Tuning │
┌──────────────┐ │ ┌─────────────┐ ┌───────────────┐ │ ┌───────────────┐
│ Phase 1: │──┼──>│ Generate │ s-a-s│ External │ │─>│ Final Model │
│ Initial SFT │ │ │ Plan Chains │──────>│ Validator VAL │ │ │ (Multi-Domain │
│ (Valid + │ │ └─────────────┘ └───────┬───────┘ │ │ Evaluated on │
│ Faulty Ex.) │ │ ▲ │ feedback │ │ PDDL Tasks) │
└──────────────┘ │ │ Two-Stage Gradients│ │ └───────────────┘
│ └── [Reasoning & Task] ◄─────────────┘
└───────────────────────────────────────────────┘
- Phase 1 (Initial Instruction Tuning): The base LLM is fine-tuned on planning problems paired with structured explanations of valid and deliberately broken plans (e.g., precondition violations, frame axiom failures) along with diagnostic logs from VAL, an off-the-shelf automated plan validator.
- Phase 2 (CoT Instruction Tuning Loop): For up to $\eta$ iterations, the model generates explicit step-by-step state-action-state candidate chains $\langle s_{i-1}, a_i, s_i \rangle$. These chains are verified by VAL using either binary (valid/invalid) or detailed semantic error feedback. A two-stage optimization process then updates model parameters:
- Stage 1 (Reasoning Chain Loss, $\mathcal{L}_{\text{reasoning}}$): Penalizes state mismatches ($d_{\text{state}}$ symmetric predicate difference between predicted and ground-truth states) and validator-flagged violations (preconditions, effects, goal failures).
- Stage 2 (Final Performance Loss, $\mathcal{L}_{\text{final}}$): Penalizes overall plan failure and optimizes cross-entropy over predicted plan validity.
Datasets
The authors evaluate on PlanBench, using task generators to split problems into disjoint training ($D_1$, $D_2$) and evaluation sets ($D_{\text{test}}$, 100 test tasks per domain; all validated as solvable by the Fast Downward planner):
- Blocksworld: Classical block-stacking with clear, on-table, and holding relations.
- Logistics: Multi-city package delivery utilizing trucks and airplanes.
- Mystery Blocksworld: An isomorphic variant of Blocksworld where predicates and actions have obfuscated, semantically meaningless names.
A single model per architecture was trained across all three domains simultaneously to test multi-domain learning.
Key Insights and Ideas
- Feedback Belonging in Gradients, Not Just Prompts: Incorporating validator outputs directly into parameter optimization teaches LLMs foundational logical mechanics (e.g., world invariants and effect propagation), preventing the recurring failures common in inference-only self-correction.
- Detailed Feedback Trumps Pass/Fail: Training on granular error feedback (e.g., exact unmet preconditions) consistently outperformed binary feedback, showing up to a 16 percentage-point advantage.
- Decoupled Reasoning & Performance Objectives: Separating state-transition loss ($\mathcal{L}_{\text{reasoning}}$) from goal-satisfaction loss ($\mathcal{L}_{\text{final}}$) creates a stable curriculum: the model first masters transition mechanics before optimizing for end-to-end plan generation.
- Semantic Obfuscation Bottleneck: Analysis revealed that in Mystery Blocksworld, errors were dominated by incorrect effect application (12.4% vs. 1.4% in Blocksworld), proving that symbol grounding—rather than logical deduction—is the primary obstacle when familiar natural language semantics are removed.
Key Results
Evaluated on Llama-3-8B, GPT-4, and Gemma-3-270M:
| Domain | Model | Baseline Accuracy | Phase 1 Only | PDDL-INSTRUCT (Detailed, $\eta=15$) |
|---|---|---|---|---|
| Blocksworld | Llama-3-8B<br>GPT-4 | 28%<br>35% | 78%<br>41% | 94%<br>91% |
| Mystery BW | Llama-3-8B<br>GPT-4 | 1%<br>3% | 32%<br>17% | 64%<br>59% |
| Logistics | Llama-3-8B<br>GPT-4 | 11%<br>6% | 23%<br>27% | 79%<br>78% |
- Ablation Evidence: Phase 1 alone yielded 78% on Blocksworld; Phase 2 alone managed 72%. Combining them in PDDL-INSTRUCT achieved 94% (a +66% absolute jump over the base model).
- Cross-Domain Generalization: When trained exclusively on Blocksworld and Logistics and evaluated on held-out Mystery Blocksworld, Llama-3 dropped only 5–6 percentage points (from 64% in-domain to 58% cross-domain), exhibiting minimal degradation.
- Efficiency Boost for Hybrid Systems: When plugged back into an LLM-Modulo Generate-Test-Critique loop, PDDL-INSTRUCT required 3.6× to 7.1× fewer validator iterations to produce a valid plan compared to untuned baselines.
Limitations and Future Work
- Restricted PDDL Expressivity: The current formulation supports STRIPS-style classical planning and excludes complex features like conditional effects, continuous durative actions, and non-uniform action costs.
- Reliance on External Oracles: Training depends on an external validator (VAL); developing internal self-verification without external feedback remains an open challenge.
- Degradation Over Long Horizons: Accuracy noticeably declines on longer plan lengths (e.g., dropping to 57% on 21–30 step plans in Logistics for Llama-3).
- Fixed Iteration Budgets: The parameter $\eta$ is statically fixed rather than dynamically adapted to the difficulty of individual planning instances.
Summary updated