TL;DR
PDDLLM is a novel framework that enables robots to learn complex, long-horizon tasks from a single human demonstration. By combining the reasoning capabilities of Large Language Models (LLMs) with physical simulation, it automatically generates the symbolic logic (PDDL) required for reliable task and motion planning. This approach outperforms standard LLM planners by over 20% in success rates while significantly reducing token costs.
The Challenge of Long-Horizon Planning
Roboticists have long struggled with "long-horizon" tasks—complex sequences like cooking a meal or assembling a structure where a single early mistake can derail the entire process.
Currently, there are two primary approaches to handling these tasks, both with significant drawbacks:
- LLM-based Planning: A model like GPT-4 is prompted to write a list of steps. While highly flexible, these models often hallucinate physically impossible actions or lose track of the environment's state over time.
- Task and Motion Planning (TAMP): This method uses symbolic logic (typically the Planning Domain Definition Language, or PDDL) to guarantee mathematical and physical correctness. However, writing these "planning domains"—manually defining every possible predicate (e.g.,
is_on(cube, table)) and action (e.g.,pick)—is an expert-level chore that scales poorly to new tasks.
To bridge this gap, researchers introduce PDDLLM, a framework that uses an LLM to automatically "derive" the planning domain from a single demonstration, effectively eliminating the need for human-engineered logic.
How PDDLLM Works
The PDDLLM framework operates in three main stages to translate a human demonstration into executable robotic actions.
- Predicate Imagination: Instead of relying on a human to define spatial relationships like "on top of," the system runs thousands of parallel physical simulations. It samples object states, verifies them for physical feasibility, and prompts an LLM to summarize these interactions into logical predicates (e.g.,
is_on,smaller_than). It can even derive higher-order logic, such as "for all objects, none are above the target." - Action Invention: The system takes the human demonstration and "grounds" it into the newly imagined predicates. By analyzing the state of the environment before and after a move, the LLM defines the PDDL action's parameters, preconditions, and effects.
- Logical Constraint Adapter (LoCA): This component acts as the bridge connecting high-level logic to the robot's motors. LoCA automatically translates symbolic effects into mathematical inequalities that a low-level motion planner can solve to generate a safe, executable trajectory.
To ensure reliability, the framework employs Parallel Prompting with Feedback. It generates multiple candidate domains and uses a "majority vote" system combined with execution checks to filter out logical errors.
Evaluation and Datasets
The authors rigorously evaluated PDDLLM across a massive suite of 1,200 tasks in nine distinct environments, covering a wide range of robotic capabilities:
- Basic Manipulation: Stacking, unstacking, and alignment.
- Complex Reasoning: Tower of Hanoi and burger cooking.
- Structural Tasks: Bridge building and parts assembly.
Crucially, they deployed the system on three physical robot platforms (the Agilex Piper, Franka Panda, and UR5e), proving that domains learned in simulation successfully transfer to the real world.
Key Insights
- Simulation as a Knowledge Base: LLMs excel at summarization but struggle with raw physics. By using a simulator to provide "ground truth" data, the authors create a world model that is both physically accurate and human-readable.
- Feature Discretization: LLMs often fail to process raw continuous coordinates. By partitioning the feature space into discrete intervals, the LLM can more easily detect stable relational patterns.
- One-Time Inference: Unlike "Chain-of-Thought" planners that require expensive LLM calls for every single step of a plan, PDDLLM uses the LLM just once to build the domain. Afterward, a traditional symbolic solver takes over, making execution faster, cheaper, and more reliable.
Key Results
PDDLLM demonstrated significant improvements over existing baselines across multiple metrics:
- Superior Success Rates: PDDLLM achieved an overall success rate of 93.3%, outperforming the best LLM-based baseline (LLMTAMP-FF) by over 40% in overall performance.
- Scalability: While standard LLM planners saw their performance plummet as the number of objects increased, PDDLLM maintained high success rates even in highly cluttered scenarios involving up to 20 objects.
- Token Efficiency: In complex tasks like "Rearrangement," PDDLLM used roughly 1/3 to 1/4 of the tokens compared to reasoning-heavy models like OpenAI’s o1 or DeepSeek-R1. Because the domain is derived once, it doesn't need to "re-think" the logic for every new task instance.
- Cross-Task Knowledge: The system successfully combined knowledge from different demonstrations. For example, after seeing one demo of "stacking" and one of "alignment," it could autonomously solve a novel "bridge building" task.
Limitations and Future Work
Despite its strong performance, PDDLLM has a few limitations that pave the way for future research:
- Complex Predicate Omission: The system occasionally misses highly specific, "common sense" predicates (like
all_bases_finished) that enforce a specific order in complex construction tasks, which can lead to inefficient backtracking. - Deformable Objects: The current framework relies on structured models (like URDF/CAD). It struggles with fluids, cloth, or highly non-rigid materials where physics is harder to simulate and discretize.
- Vision Integration: Currently, the system assumes it has access to perfect object states (poses). Future work aims to integrate raw sensory input (like RGB-D video) directly into the domain derivation process to improve robustness against perception noise.
Summary updated