Abstract
Reinforcement Learning (RL) in safety-critical domains often relies on "shields" that trigger conservative backup policies, leading to high "recovery regret" where safety comes at the cost of task progress. We present Dynamic Model Predictive Shielding (DMPS), which replaces task-oblivious backups with a local planner. DMPS achieves 29% higher rewards and reduces safety interventions by 76% compared to state-of-the-art methods while maintaining formal safety guarantees.
Introduction: The Safety-Progress Trade-off
In autonomous systems, learning through trial and error is risky. Provably Safe RL (PSRL) uses a shield to intercept dangerous actions and execute a backup policy. However, traditional backup policies often act like emergency brakes, causing the agent to stall or deviate significantly from its goal. This inefficiency, termed recovery regret, prevents agents from completing tasks effectively in complex environments.
Methods: Dynamic Model Predictive Shielding
DMPS addresses recovery regret by integrating a dynamic local planner into the shielding mechanism. Instead of a static "stop" command, DMPS uses a continuous variant of Monte Carlo Tree Search (MCTS) to find a safe path that still moves toward the goal.
The system operates on three key pillars:
- Synergistic Objective: The planner evaluates paths using both immediate safety and the neural policy’s Q-function. This allows the short-horizon planner to account for long-term task rewards.
- Learning from Recovery: The agent's policy is trained to imitate the successful recovery trajectories found by the planner, allowing it to eventually internalize safe maneuvers.
- Theoretical Safety: DMPS provides formal guarantees that the agent remains within a safe state space throughout training and execution.
Experimental Evaluation
The authors evaluated DMPS across 13 benchmarks, including static navigation and dynamic environments with moving obstacles or narrow gates (e.g., double-gate+). These tests utilized different agent dynamics, such as Differential Drive (DD) and Double Integrator (DI).
Key Results
DMPS significantly outperforms standard Model Predictive Shielding (MPS) and other safety-constrained RL methods like CPO or PPO-Lagrangian.
- Efficiency: DMPS triggered the shield 76% less frequently than MPS in dynamic environments.
- Performance: The method achieved 29% higher episodic returns.
- Shield Attrition: As shown in the results, the number of interventions decreases over time as the agent learns to avoid dangerous states by imitating the planner's efficient recovery strategies.
Conclusion and Future Work
DMPS demonstrates that safety mechanisms can be task-aware and serve as teachers for the underlying policy. While highly effective, the current implementation assumes a perfect environment model and carries a computational overhead due to real-time planning. Future research will focus on extending DMPS to stochastic environments and optimizing the planner for real-time deployment.
Summary updated