HDDLGym: A Tool for Studying Multi-Agent Hierarchical Problems Defined in HDDL with OpenAI Gym
Ngoc La, Ruaridh Mon-Williams, Julie A. Shah
TL;DR
HDDLgym addresses the gap between hierarchical planning and reinforcement learning by automatically converting HDDL domains and problems into OpenAI Gym environments, enabling RL policies to guide hierarchical planning in both single- and multi-agent settings. The framework introduces an agent-centric HDDL extension, a planner that uses RL outputs to assemble action hierarchies, and a flexible observation/action encoding that supports centralized or decentralized planning. Key contributions include the HDDLGym tool, a protocol for extending HDDL domains to multi-agent configurations, and demonstrations in the Transport and Overcooked domains with thorough evaluation and visualization facilities. This approach enables systematic study of RL within hierarchical planning, with practical impact for multi-agent coordination and complex, long-horizon tasks.
Abstract
In recent years, reinforcement learning (RL) methods have been widely tested using tools like OpenAI Gym, though many tasks in these environments could also benefit from hierarchical planning. However, there is a lack of a tool that enables seamless integration of hierarchical planning with RL. Hierarchical Domain Definition Language (HDDL), used in classical planning, introduces a structured approach well-suited for model-based RL to address this gap. To bridge this integration, we introduce HDDLGym, a Python-based tool that automatically generates OpenAI Gym environments from HDDL domains and problems. HDDLGym serves as a link between RL and hierarchical planning, supporting multi-agent scenarios and enabling collaborative planning among agents. This paper provides an overview of HDDLGym's design and implementation, highlighting the challenges and design choices involved in integrating HDDL with the Gym interface, and applying RL policies to support hierarchical planning. We also provide detailed instructions and demonstrations for using the HDDLGym framework, including how to work with existing HDDL domains and problems from International Planning Competitions, exemplified by the Transport domain. Additionally, we offer guidance on creating new HDDL domains for multi-agent scenarios and demonstrate the practical use of HDDLGym in the Overcooked domain. By leveraging the advantages of HDDL and Gym, HDDLGym aims to be a valuable tool for studying RL in hierarchical planning, particularly in multi-agent contexts.
