Abstract
Deep Reinforcement Learning (DRL) offers powerful capabilities for autonomous navigation but lacks the formal safety guarantees required for real-world deployment. This paper presents a hierarchical framework that bridges the gap between black-box DRL policies and rigorous safety constraints. By employing probabilistic neural network verification to enumerate unsafe state-space regions, the authors automatically construct Control Barrier Functions (CBFs) that act as a "plug-and-play" safety layer. Experimental results across simulated indoor and aquatic environments, as well as real-world robotic platforms, demonstrate that this approach achieves zero collisions without requiring policy retraining.
Introduction
Deploying autonomous robots in the real world requires strict safety guarantees to prevent damage to expensive hardware or the environment. While DRL is excellent for mapless navigation in unknown environments, neural network policies are essentially black boxes. They are vulnerable to adversarial inputs and can execute unexpected, unsafe actions that lead to catastrophic failures.
Existing solutions like Constrained RL (e.g., CMDPs) only guarantee safety "in expectation," which is insufficient for high-stakes deployment. Formal verification can prove safety but scales poorly to high-dimensional spaces. Control Barrier Functions (CBFs) ensure safety but are notoriously difficult to design manually for complex environments. This paper bridges these gaps by using verification techniques to automatically design the safe set for a CBF, creating a rigorous safety filter for DRL agents.
Methodology
The authors propose a hierarchical architecture that separates the learning of navigation from the enforcement of safety. This process occurs in two primary stages: offline design and online deployment.
1. Offline Probabilistic Enumeration
After training a DRL policy, a probabilistic verification tool analyzes the neural network to identify specific regions of the state space where the policy is likely to output unsafe actions. By subtracting these verified unsafe regions from the total state space, the framework defines a mathematically rigorous "safe set."
2. CBF Design and Filtering
A Control Barrier Function (CBF) is constructed based on the distance between the robot and these unsafe boundaries. At deployment, the DRL policy proposes an action (linear and angular velocities). Before execution, a Quadratic Program (QP) checks if the action violates the CBF. If unsafe, the QP modulates the velocities to the closest safe alternative.
Control Architecture
The system integrates the high-level DRL policy with low-level hardware control through a structured pipeline.
As shown in the architecture above, the state $s$ is fed into the Deep Neural Network (DNN) policy. The resulting action $a$ is filtered by the CBF-QP module to produce a safe reference $r$. Finally, a Nonlinear Model Predictive Controller (NMPC) translates these safe reference velocities into optimal hardware commands $u^*$, accounting for the robot's physical dynamics.
Experimental Evaluation
The framework was evaluated in three distinct environments:
- Indoor Mobile Navigation: A simulated Turtlebot3 using LiDAR in a cluttered environment.
- Aquatic Environmental Monitoring: A dynamic simulation of an autonomous surface vehicle (boat) dealing with fluid dynamics and sensor noise.
- Real-World Deployment: A physical Turtlebot3 robot navigating an obstacle course using ROS2.
Key Results and Insights
The framework was tested on top of standard PPO and constrained RL algorithms like PPOLag.
- Zero-Shot Safety: In all tests (simulation and real-world), adding the CBF layer dropped the collision rate to 0%.
- Performance Recovery: Interestingly, the CBF layer helped constrained RL agents recover from local minima. While algorithms like PPOLag often become overly conservative (standing still to avoid penalties), the CBF layer actively steers the agent away from danger, allowing the underlying policy to resume progress toward the goal.
- Robustness: In real-world deployments, where sensor noise caused the baseline PPOLag policy to have a 24.9% collision rate, the CBF-wrapped policy achieved a 100% success rate with zero collisions.
Conclusion
This research demonstrates that formal verification can be used as a powerful design tool for classical control. By mapping the unsafe behaviors of a neural network offline, engineers can deploy a "plug-and-play" safety layer that provides rigorous guarantees without the need for expensive retraining. Future work will focus on extending this to multi-agent settings and dynamic environments with moving obstacles.
Summary updated