Introduction
Reinforcement learning (RL) has demonstrated remarkable potential in solving complex control tasks, yet its reliance on trial-and-error exploration poses significant risks in safety-critical applications. In real-world scenarios, such as autonomous driving, a single violation of safety constraints can lead to catastrophic failure. Traditional constrained RL methods often struggle with "high relative-degree" constraints—situations where there is a temporal lag between an action (e.g., braking) and its impact on a safety metric (e.g., position). This paper introduces GCBF-MBPO (Model-Based Policy Optimization with Generalized Control Barrier Functions), a framework designed to ensure safety during the learning process by anticipating and penalizing the trend toward constraint violations.
Methodology: GCBF-MBPO
The core of the proposed framework is the Generalized Control Barrier Function (GCBF). Unlike standard safety methods that only react when a state is deemed unsafe, GCBF enforces a mathematical condition that prevents the agent from approaching the danger zone.
Addressing High Relative-Degree and Lag
A key innovation is the handling of high relative-degree systems. The "Generalized" aspect of GCBF allows the algorithm to look ahead exactly $m$ steps, where $m$ is the system's relative degree. This is the minimum number of steps required to observe the effect of an action on a constraint, making the approach significantly more efficient than arbitrary long-horizon rollouts.
Adaptive Safety and Optimization
To maintain a balance between exploration and safety, the framework incorporates Adaptive Conservativeness. A coefficient $\alpha$ adjusts the "stiffness" of the safety boundaries; if violations occur, $\alpha$ increases to enforce stricter behavior. The policy is updated by solving a constrained optimization problem using an approximate Lagrangian solution, ensuring stable and feasible updates.
Experimental Setup
The GCBF-MBPO framework was evaluated in two distinct environments:
- SUMO Simulation: A high-fidelity traffic simulator where the agent navigated a complex six-lane intersection with random traffic flow.
- Real-World Digital Twin: The algorithm was deployed on a Chang-An CS55 autonomous vehicle. To maintain safety, the car interacted with "ghost" traffic generated via a digital twin system, allowing for real-world physical testing without the risk of actual collisions.
Key Results and Insights
The proposed method significantly outperformed state-of-the-art baselines, including Constrained Policy Optimization (CPO) and standard Model-Based Policy Optimization (MBPO).
- Enhanced Safety: GCBF-MBPO achieved a 73.83% reduction in constraint violations during the training phase compared to baseline methods.
- Accelerated Convergence: The agent reached target performance levels 3.36 times faster than standard model-based constrained RL approaches.
- Complex Maneuvering: In real-world tests, the policy successfully learned sophisticated behaviors, such as waiting for gaps in traffic, accelerating to pass safely, and deviating to bypass obstacles.
Conclusion and Future Work
By shifting the focus from "learning from mistakes" to "learning from foresight," GCBF-MBPO provides a robust path toward safe RL. While the method drastically reduces violations, the authors note that the use of approximate Lagrangian techniques means violations are not yet zero. Future research will explore Augmented Lagrangian methods and improving the robustness of learned dynamics models in highly non-linear environments to further strengthen safety guarantees.
Summary updated