Abstract
Deploying Reinforcement Learning (RL) in safety-critical robotics is often hindered by the "exploration vs. safety" trade-off, where trial-and-error learning can lead to catastrophic failures. This paper introduces a framework for Discrete-Time Control Barrier Function (CBF) overrides designed for non-convex systems, such as fixed-wing aircraft and autonomous vehicles. By utilizing computationally efficient approximate safety overrides, the authors demonstrate that RL agents can achieve zero safety violations during training while maintaining performance levels comparable to unconstrained agents.
Introduction
Reinforcement Learning (RL) has shown remarkable success in optimizing complex robotic behaviors. However, its inherent reliance on exploration—often involving random actions—poses significant risks in real-world applications. To mitigate this, Control Barrier Functions (CBFs) are frequently employed as mathematical "wrappers" to override unsafe commands. Traditional CBF theory, however, often assumes system dynamics are linear or convex and operates in continuous time. Real-world physics, such as aerodynamic drag or vehicle steering, are frequently non-convex, and RL agents typically operate in discrete time steps, making optimal safe action selection computationally expensive.
Methodology: Barrier Function Overrides
The authors propose a framework for Barrier Function Overrides tailored for non-convex, discrete-time systems. They derive specific Discrete-Time Exponential CBFs (DT-ECBFs) for two primary domains:
- Fixed-Wing UAVs: Constraints include stall prevention (minimum speed), structural limits (maximum speed), pitch limits, and altitude floors.
- Self-Driving Cars: Constraints encompass lane-keeping, speed limits, and maintaining safe headway distances during multi-car merges.
To address the computational complexity of finding the mathematically optimal safe action in non-convex settings, three tractable override alternatives were evaluated:
- BF LAG: Employs a Lagrangian neural network to learn a safe mapping.
- BF Line: Conducts a simple line search between the agent's desired action and a known-safe "evasive" maneuver.
- BF SINGLE: A "hard" override that immediately switches to a safe maneuver if the agent's command is deemed risky.
Multiple safety constraints are unified into a single barrier function using min/max operators.
Experimental Environments
The framework was validated in two custom-simulated environments:
Fixed-Wing UAV Flight
In the UAV environment, built using the SCRIMMAGE simulator, the agent must navigate to random waypoints while adhering to a strict flight envelope.
Autonomous Highway Merging
The car environment simulates a two-lane highway where an agent must merge and maintain cruise control speed without colliding with lead vehicles that exhibit unpredictable speed changes.
Key Results and Discussion
The experimental results highlight several critical advantages of the proposed approach:
- Guaranteed Safety: In both environments, the barrier overrides ensured zero safety violations throughout the entire training process. In contrast, standard Safe RL baselines (e.g., CPO or FAC) experienced thousands of unsafe episodes before converging.
- Performance Retention: Agents using "BF LAG" and "BF Single" achieved cumulative rewards nearly identical to unconstrained TRPO agents, indicating that safety guarantees do not necessitate significant performance trade-offs.
- Computational Efficiency: By avoiding complex non-convex optimization at every step, these methods proved to be 1.7x to 3x faster than existing Safe RL baselines.
- RL Adaptation: Interestingly, RL agents eventually "learned" the safety boundaries. Since the override is integrated into the environment's dynamics, the policy naturally shifts to avoid being overridden, effectively shaping the policy toward safety.
Conclusion
This work demonstrates that "good enough" approximate overrides can provide robust safety guarantees for complex, non-convex robotic systems in discrete time. While the current approach depends on accurate mathematical models of system dynamics, it paves the way for future research into Robust CBFs that can handle model uncertainty and sensor noise in physical deployments.
Summary updated