Abstract
Two common approaches to sequential decision-making are AI planning (AIP) and reinforcement learning (RL). Each has strengths and weaknesses. AIP is interpretable, easy to integrate with symbolic knowledge, and often efficient, but requires an up-front logical domain specification and is sensitive to noise; RL only requires specification of rewards and is robust to noise but is sample inefficient and not easily supplied with external knowledge. We propose an integrative approach that combines high-level planning with RL, retaining interpretability, transfer, and efficiency, while allowing for robust learning of the lower-level plan actions. Our approach defines options in hierarchical reinforcement learning (HRL) from AIP operators by establishing a correspondence between the state transition model of AI planning problem and the abstract state transition system of a Markov Decision Process (MDP). Options are learned by adding intrinsic rewards to encourage consistency between the MDP and AIP transition models. We demonstrate the benefit of our integrated approach by comparing the performance of RL and HRL algorithms in both MiniGrid and N-rooms environments, showing the advantage of our method over the existing ones.
Introduction
Reinforcement Learning (RL) is a powerful paradigm for learning complex behaviors through interaction, yet it is notoriously sample inefficient. In environments with sparse rewards, agents often require millions of steps to discover successful action sequences. Conversely, AI Planning (AIP) excels at high-level reasoning and efficiency but relies on rigid, noise-sensitive symbolic models.
This paper introduces PaRL (Planning annotated Reinforcement Learning), a framework designed to bridge this gap. PaRL utilizes symbolic AI planning models to automatically decompose complex tasks into manageable sub-tasks, or "options," within a Hierarchical RL (HRL) architecture. By using planning as a scaffold, the system leverages high-level logic to guide low-level "muscle memory" learning, achieving significant gains in sample efficiency in environments where standard RL methods often fail.
Methodology: The PaRL Framework
PaRL treats an AI planning task as an abstraction of the underlying Markov Decision Process (MDP). The integration is achieved through several key mechanisms:
- Automatic Option Derivation: Instead of manual sub-task definition, PaRL derives options directly from planning operators (e.g.,
pickup-key,unlock-door). Each operator in the symbolic domain corresponds to a learnable option in the HRL setup. - High-Level Planning Controller: The agent employs an off-the-shelf AI planner (such as A*) to determine the optimal sequence of options based on the current abstract state. This removes the need to learn a high-level policy from scratch.
- Frame-Penalized MDP: To ensure consistency between the abstract plan and the low-level execution, the authors introduce "frame-based" intrinsic rewards. In symbolic logic, the "frame" consists of state variables that should remain unchanged by an action. PaRL penalizes the agent if it alters state variables not specified in the planning operator's effects (e.g., dropping a key while moving). This stabilizes learning by preventing non-stationary behavior.
- Implementation: The framework was implemented using PPO and Double DQN, resulting in HplanPPO and HplanDDQN.
Experimental Setup
The researchers evaluated PaRL across two primary benchmark sets: the Modified MiniGrid and N-rooms Navigation. MiniGrid tasks were scaled from simple "Door Key" tasks to complex "4 Rooms" and "9 Rooms" layouts featuring locked doors and distracting objects to test the limits of standard RL algorithms.
Results and Discussion
The experimental results highlight the substantial advantages of integrating planning with RL:
- Solving Complex Tasks: In the most challenging MiniGrid environments (4 and 9 rooms), standard "flat" RL (PPO/DDQN) and even advanced HRL methods like Hierarchical Reward Machines (HRM) failed to achieve stable learning. In contrast, HplanPPO consistently solved these tasks.
- Sample Efficiency: In N-rooms navigation, PaRL reached high success rates significantly faster than standard PPO. As shown in the performance metrics, the average episode length drops rapidly as the agent learns to utilize the planning scaffold.
- Option Reuse: A key strength of the approach is the ability to reuse learned options. Once an option like
move-between-roomsis mastered, it can be applied across dozens of different problem instances, resulting in a 30x-40x improvement in sample efficiency over time.
Conclusion and Future Work
PaRL demonstrates that imperfect, abstract planning models can effectively structure the learning process for RL agents. By using the "frame" of a symbolic action to provide intrinsic rewards, the framework ensures that low-level policies remain aligned with high-level strategic goals. While the current framework requires a manually defined mapping between raw observations and symbolic states, future work aims to automate this knowledge extraction, moving closer to fully autonomous, sample-efficient agents.
Summary updated