PDDLStream: Integrating Symbolic Planners and Blackbox Samplers via Optimistic Adaptive Planning

Caelan Reed Garrett, Tomás Lozano-Pérez, Leslie Pack Kaelbling

TL;DR

This paper introduces PDDLStream, a novel planning framework that bridges the gap between symbolic planning (like PDDL) and black-box sampling procedures for continuous variables. They propose an "optimistic adaptive planning" approach that efficiently explores and exploits potential solutions, significantly improving performance on complex robotic manipulation tasks.

What Problem Does This Paper Address?

Robotic manipulation tasks often involve planning in high-dimensional, continuous spaces with intricate constraints (e.g., robot kinematics, object poses, collision avoidance). Traditional symbolic planners struggle with these continuous aspects, while specialized sampling procedures (like inverse kinematics or motion planners) are often treated as black boxes. The challenge is to integrate these two worlds: how can a symbolic planner leverage these black-box samplers to find feasible and efficient plans in continuous domains, especially when the search space is vast and constraints are tight? Existing methods often require extensive manual engineering or are limited to pre-discretized problems, making them inflexible for new domains.

Methods

The core contribution is PDDLStream, an extension of the Planning Domain Definition Language (PDDL). PDDLStream introduces streams as a declarative interface for black-box sampling procedures. These streams have:

  • Procedural Component: A function that takes input values and generates a (potentially infinite) sequence of output values.
  • Declarative Component: Specifies preconditions (domain facts) that must hold for the inputs and postconditions (certified facts) that are guaranteed to hold for the outputs.

This allows a PDDL planner to reason about the conditions under which streams can be used and the properties of their outputs, without needing to know their internal implementation.

The paper then presents several algorithms for solving PDDLStream problems:

  • Incremental Algorithm: Iteratively increases the "level" of facts considered, essentially expanding the search space incrementally.
  • Focused Algorithm: Evaluates stream instances that are directly required by a candidate plan.
  • Binding Algorithm: Propagates stream outputs as inputs to subsequent streams, attempting to bind optimistic objects to concrete values.
  • Adaptive Algorithm: This is the key novel contribution. It dynamically balances exploring new candidate plans (searching) with exploiting existing promising plans (sampling/binding). It uses a priority queue to manage potential bindings and adaptively allocates time between search and sampling to efficiently find solutions, especially for tightly constrained problems.

Datasets

The paper evaluates PDDLStream on three simulated robotic planning domains:

  1. Domain 1: Mobile manipulation task requiring a PR2 robot to tightly pack blocks into a region.
  2. Domain 2: PR2 robot placing a block in a region while minimizing robot travel distance, involving an obstruction.
  3. Domain 3: Multi-robot surveying domain with 3D visibility, distance, and reachability constraints.

They also validate their approach on four real-world robotic tasks performed by a PR2 robot, including "serve a meal," "cook," "stack," and "coffee."

Key Insights and Ideas

  • Streams as a Unified Interface: The concept of streams elegantly bridges the gap between symbolic planning and continuous sampling procedures, allowing for a declarative specification of complex procedural components.
  • Optimistic Planning: By planning with "optimistic objects" (hypothetical stream outputs that might not be satisfiable), the algorithms can identify promising plan structures before committing to expensive stream evaluations. This is crucial for efficiency.
  • Adaptive Exploration-Exploitation: The Adaptive algorithm's ability to dynamically balance searching for new plans and exploiting promising ones is key to its superior performance on challenging, constrained problems. It avoids getting stuck in local optima or wasting time on unproductive searches.
  • Turing Completeness and Undecidability: The paper acknowledges that PDDLStream is theoretically undecidable due to Turing-complete stream generators, but demonstrates that it is semi-decidable and that their algorithms are semi-complete for feasible instances.

Key Results

  • Adaptive Algorithm Dominance: The Adaptive algorithm significantly outperforms the Incremental, Focused, and Binding algorithms, particularly on tightly-constrained and cost-sensitive simulated domains. For example, in Domain 1, Adaptive shows higher success rates and better mean runtimes as the number of blocks increases.
  • Real-World Success: PDDLStream, with its Adaptive algorithm, successfully planned and executed complex real-world robotic tasks, demonstrating its practical applicability.
  • Efficiency Gains: The optimistic and adaptive approaches lead to substantial improvements in planning efficiency compared to baseline methods.

Limitations and Future Work

  • Undecidability: As mentioned, PDDLStream planning is theoretically undecidable. The algorithms are semi-complete, meaning they will find a solution if one exists and they are given enough time, but they might not terminate if no solution exists.
  • Stream Output Uniqueness: The presented algorithms assume that stream outputs are unique to a single stream instance. While this is often true in practice due to the nature of sampling from continuous spaces, the paper discusses modifications needed if this assumption is violated.
  • Future Work: The paper suggests that PDDLStream can be used for planning in more complex scenarios, and the adaptive nature of their algorithms can be further explored for more sophisticated exploration strategies. The real-world validation hints at broader applications beyond manipulation.

Summary updated

Abstract

Many planning applications involve complex relationships defined on high-dimensional, continuous variables. For example, robotic manipulation requires planning with kinematic, collision, visibility, and motion constraints involving robot configurations, object poses, and robot trajectories. These constraints typically require specialized procedures to sample satisfying values. We extend PDDL to support a generic, declarative specification for these procedures that treats their implementation as black boxes. We provide domain-independent algorithms that reduce PDDLStream problems to a sequence of finite PDDL problems. We also introduce an algorithm that dynamically balances exploring new candidate plans and exploiting existing ones. This enables the algorithm to greedily search the space of parameter bindings to more quickly solve tightly-constrained problems as well as locally optimize to produce low-cost solutions. We evaluate our algorithms on three simulated robotic planning domains as well as several real-world robotic tasks.
BibTeX
@inproceedings{garrett2020pddlstream,
  author = {Caelan Reed Garrett and Tomás Lozano-Pérez and Leslie Pack Kaelbling},
  title = {{PDDLStream: Integrating Symbolic Planners and Blackbox Samplers via Optimistic Adaptive Planning}},
  booktitle = {ICAPS},
  year = {2020},
}
Figure