Introduction
In the development of safety-critical systems, such as autonomous vehicles, the primary challenge lies in balancing performance—reaching a destination efficiently—with strict safety guarantees. Traditional control methods often rely on Model Predictive Control (MPC) for look-ahead planning and Control Barrier Functions (CBFs) to provide mathematical "shields" that keep the system within safe states.
However, these methodologies frequently encounter two significant hurdles: the "Tuning Trap" and "Myopia." The parameters governing CBFs and MPC cost weights are typically hand-tuned. If these parameters are too conservative, the system becomes inefficient; if they are too aggressive, the controller may face "infeasibility," where no mathematical solution exists that satisfies all constraints simultaneously. Furthermore, standard CBF implementations often only consider the immediate next state, failing to account for complex future interactions.
This paper introduces a bilevel control framework that leverages Reinforcement Learning (RL) to adaptively tune MPC and CBF parameters in real-time, significantly reducing infeasibility and enhancing system efficiency.
The Proposed Framework: Bilevel Optimization
The authors propose a hierarchical architecture that decouples high-level parameter optimization from low-level control execution.
1. Upper-Level: RL Meta-Tuning
The upper level utilizes a Soft Actor-Critic (SAC) Reinforcement Learning agent. This agent observes the environment and outputs optimal parameters ($\theta$). By acting as a "meta-tuner," the RL agent learns to adjust the "slope" of the safety functions and the weights of the MPC objective based on the current traffic context. This allows the system to be flexible in complex scenarios without violating hard safety boundaries.
2. Lower-Level: MPC-CBF Controller
The lower level receives the parameters from the RL agent and solves a Quadratic Program (QP) to determine the actual control inputs, such as acceleration and steering. By treating the MPC as a parameterized block rather than differentiating through the entire solver, the authors maintain computational efficiency suitable for real-time applications.
Adaptive Safety and High-Order Dynamics
A core innovation of this work is the Adaptive Control Barrier Function (AdaCBF). Unlike fixed safety margins, AdaCBF allows the RL agent to relax or tighten constraints dynamically. To handle realistic vehicle dynamics—where control inputs like acceleration do not directly affect position in a single derivative—the framework employs High-Order CBFs (HOCBF). This ensures safety is maintained across multiple levels of physical derivatives (e.g., position, velocity, and acceleration).
Experimental Evaluation
The framework was evaluated in a custom-built Python simulation environment focusing on a complex multi-lane merging scenario for Connected and Automated Vehicles (CAVs). The simulation involved both longitudinal and lateral control challenges. The researchers utilized CasADi for optimization and SOLVE-IVP for modeling vehicle dynamics. The RL agent was trained on a single-vehicle scenario and then tested for its ability to generalize to multi-agent environments.
Key Results and Insights
The proposed RL-based adaptive controller was compared against four heuristic baselines ranging from conservative to aggressive. The results demonstrated significant improvements across several metrics:
- Reduction in Infeasibility: The RL-based approach reduced total infeasible cases by nearly 65% compared to the best-performing heuristic baseline (71 cases versus 185–259). This suggests that many "failures" in traditional control are actually artifacts of rigid constraint tuning rather than a lack of safe paths.
- Enhanced Efficiency: The system achieved a lower average travel time (10.94s vs. ~11.8s) and reduced fuel consumption compared to all baselines.
- Safety-Performance Balance: In edge-case simulations where traditional controllers caused vehicles to "freeze" due to rigid constraints, the RL-tuned controller successfully navigated the merge by adaptively adjusting its safety margins while maintaining mathematical safety bounds.
Conclusion and Future Work
By placing Reinforcement Learning above the MPC-CBF layer, the authors utilize RL’s optimization strengths while relying on the MPC-CBF’s formal safety guarantees. This hybrid approach effectively solves the infeasibility problem common in safety-critical control.
Future research will focus on addressing the assumptions of vehicle homogeneity and exploring "mixed traffic" scenarios involving unpredictable human-driven vehicles. Additionally, the authors aim to investigate more explicit coordination between multiple RL agents in highly congested environments to further improve scalability.
Summary updated