Abstract
This paper introduces the Reconnaissance and Planning (RP) framework for solving Constrained Markov Decision Processes (CMDPs). By decoupling safety evaluation (Reconnaissance MDP) from reward maximization (Planning MDP), the RP-algorithm pre-computes a "threat function" to define a pool of safe actions. This approach ensures strict safety constraints are met during both training and execution, achieving competitive rewards with significantly lower computational overhead than Model Predictive Control (MPC) and superior robustness in dynamic environments.
Introduction
In real-world applications of Reinforcement Learning (RL), such as autonomous driving or robotics, a naive reward-maximizing policy can lead to catastrophic failures. These tasks are typically formulated as Constrained Markov Decision Processes (CMDPs), where an agent must maximize rewards while keeping the probability of entering dangerous states below a strict threshold.
The core challenge lies in the computational cost of evaluating safety during policy updates, especially in dynamic environments with moving obstacles. Existing solutions often fall short: Lagrange multiplier methods only enforce safety softly, allowing crashes during training; Trust Region methods are computationally heavy; and Model Predictive Control (MPC), while safe, is prohibitively slow due to its multi-step lookahead requirements at every action.
Methodology: The RP-Algorithm
The authors propose the RP-algorithm, which solves the CMDP by splitting it into two distinct stages:
- Reconnaissance MDP (R-MDP): This stage focuses exclusively on safety. The algorithm uses a baseline policy to explore the environment and learn a threat function—a value function measuring expected future danger. Using theoretical bounds based on total variation distance, the authors construct a strict "pool" of guaranteed-safe actions.
- Planning MDP (P-MDP): Once the safe pool is defined, the agent uses standard RL (e.g., DQN) to maximize rewards. Crucially, the action space is dynamically restricted at every step; the agent is only permitted to choose actions authorized as safe by the R-MDP.
Key Innovations
- Decoupling Safety and Reward: Safety is pre-calculated and baked into the action space, removing the need to relearn constraints when the reward function changes.
- Compositional Safety: For environments with multiple moving obstacles, the authors prove that the total threat can be upper-bounded by summing individual threat functions. This allows training a threat function for a single obstacle and scaling it to many, bypassing the curse of dimensionality.
Experimental Evaluation
The RP-algorithm was evaluated on three custom 2D simulated environments: Point Gather (collecting items while avoiding bombs), Circuit (lap completion without crashing), and Jam (navigating a room with 8 randomly moving obstacles).
Key Results
- Superior Safety and Reward: In the "Circuit" and "Jam" tasks, the RP-algorithm achieved the highest average rewards and the lowest crash rates compared to baselines like Constrained Policy Optimization (CPO) and DQN with Lagrange penalties.
- Efficiency: By utilizing a pre-computed threat function neural network, RP is drastically faster than lookahead search. In the "Jam" environment, RP took 1.2 seconds per episode, compared to 285 seconds for a 3-step MPC.
- Zero-Shot Robustness: Policies trained with RP safely navigated modified, unseen environments without retraining. As shown in Figure 1, the RP agent maintained safety in a narrowed circuit where penalized DQN suffered a 100% crash rate.
Conclusion
The RP-algorithm offers a robust framework for safe RL by separating the physics of survival from task objectives. While the method prioritizes absolute safety over maximum possible reward—potentially leading to slightly suboptimal rewards in some edge cases—its computational efficiency and zero-shot robustness make it a highly promising path for real-world robotic applications. Future work will focus on tightening theoretical bounds for the threat function and scaling the framework to higher-dimensional robotic environments.
Summary updated