[Paper Review] PDDLGym: Gym Environments from PDDL Problems
PDDLGym is an open-source framework that automatically generates OpenAI Gym environments from PDDL domain and problem files, enabling relational reinforcement learning and sequential decision-making research. It supports diverse, customizable benchmarks with built-in environments ranging from Sokoban to TSP, demonstrating significant variation in planning and model-learning difficulty.
We present PDDLGym, a framework that automatically constructs OpenAI Gym environments from PDDL domains and problems. Observations and actions in PDDLGym are relational, making the framework particularly well-suited for research in relational reinforcement learning and relational sequential decision-making. PDDLGym is also useful as a generic framework for rapidly building numerous, diverse benchmarks from a concise and familiar specification language. We discuss design decisions and implementation details, and also illustrate empirical variations between the 20 built-in environments in terms of planning and model-learning difficulty. We hope that PDDLGym will facilitate bridge-building between the reinforcement learning community (from which Gym emerged) and the AI planning community (which produced PDDL). We look forward to gathering feedback from all those interested and expanding the set of available environments and features accordingly. Code: https://github.com/tomsilver/pddlgym
Motivation & Objective
- Bridge the gap between reinforcement learning (RL) and classical AI planning by unifying Gym and PDDL.
- Enable researchers to rapidly create and compare benchmarks for relational sequential decision-making using a standardized, symbolic specification language.
- Facilitate cross-community research by allowing RL and planning researchers to evaluate methods on identical, well-defined environments.
- Support advanced research in relational RL, hierarchical policy learning, and state abstraction through a unified, extensible framework.
- Provide a foundation for learning symbolic transition models and discovering relational structures from interaction data.
Proposed method
- Automatically constructs Gym environments from PDDL domain and problem files using a Python library.
- Represents observations as sets of ground relational predicates (e.g., on(plate, table)) and actions as grounded operator templates (e.g., pick(plate)).
- Implements Gym’s standard API (step, reset, action_space, observation_space) with PDDL-defined transition models on the environment side.
- Supports custom rendering for 11 of 20 built-in domains to improve visualization and interpretability.
- Uses Fast-Forward planning and FOLDT learning to evaluate planning and model-learning difficulty across environments.
- Enables integration with external PDDL repositories via URL-based loading, supporting extensibility and community contributions.
Experimental results
Research questions
- RQ1How can PDDL-based planning problems be systematically transformed into standardized Gym environments for RL research?
- RQ2To what extent do PDDL-based environments vary in planning difficulty and model-learning complexity?
- RQ3Can PDDLGym serve as a common benchmark platform to unify and accelerate research in relational RL and symbolic planning?
- RQ4What are the challenges in learning accurate transition models from interaction data in relational environments?
- RQ5How can PDDLGym support the development of hierarchical, goal-conditioned, and lifted policy learning methods?
Key findings
- The 20 built-in PDDLGym environments exhibit substantial variation in planning difficulty, with the Depot domain requiring two orders of magnitude more time than the TSP domain.
- Fast-Forward planning time ranged from under 1 second (TSP) to over 1000 seconds (Depot), indicating a wide spectrum of problem complexity.
- Model-learning difficulty varied significantly: FOLDT learning succeeded on 5 domains but failed to converge on others like Baking, Depot, and Sokoban within reasonable timeframes.
- The average frames per second (FPS) across environments ranged from 155 (Sokoban) to 1688 (TSP), indicating performance variability under random policies.
- Custom rendering was implemented for 11 of the 20 domains, enhancing visualization and interpretability for research and debugging.
- Empirical results confirm that even 'simple' domains like TSP and Blocks present non-trivial challenges for learning, such as operator discovery and state abstraction.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.