Introduction: The Challenge of Highway Merging
Reinforcement Learning (RL) has shown great promise in training autonomous agents for complex tasks. However, in high-stakes scenarios like highway ramp merging, safety cannot be treated merely as a "suggestion" through negative rewards. Traditional rule-based systems often suffer from the "frozen robot" problem—becoming overly conservative due to unpredictable human behavior. Conversely, standard Control Barrier Functions (CBFs) provide mathematical safety guarantees but typically rely on perfect analytical models, which are unattainable in messy, real-world dynamics.
This paper introduces SAPO-RM (Safety Assured Policy Optimization for Ramp Merging), a framework that addresses these gaps by embedding Probabilistic Control Barrier Functions (PCBFs) directly into the RL policy. This approach accounts for model uncertainty, ensuring safety with a rigorous, "chance-constrained" guarantee.
Methodology: SAPO-RM
The core innovation of SAPO-RM lies in its ability to balance aggressive performance with strict safety boundaries by modeling the world's inherent unpredictability.
Probabilistic Control Barrier Functions (PCBFs)
Instead of assuming deterministic states, SAPO-RM models uncertainty as a Gaussian distribution. By using chance-constrained optimization, the system ensures safety within a specific probability threshold (e.g., 99%), effectively creating a "safety buffer" that adapts to noise in the environment. This allows the agent to navigate curved ramps using 2D dynamics rather than just simple longitudinal movement.
Constrained RL Pipeline
Building on Constrained Policy Optimization (CPO), the RL agent (the "Actor") maximizes a reward function—such as reaching a destination efficiently—while remaining strictly bounded by linear constraints derived from the PCBFs. To manage the computational complexity of dual-optimization, the authors employ a "retrieval policy." If the agent enters a state where no safe action is immediately apparent, an iterative line search forces the policy back into a safe region.
Experimental Evaluation
The researchers evaluated SAPO-RM across two distinct domains to ensure robustness:
- CARLA Simulator (Online): Using a modified "Town-06" environment, the team tested the agent's real-time reactions on curved highway on-ramps against varying host vehicle speeds (20, 30, and 40 kph).
- NGSIM Database (Offline): To validate the model against real-world human behavior, they extracted approximately 100,000 data points from the US I-80 highway dataset, focusing on one-on-one merging scenarios.
Key Results and Insights
The experiments demonstrated that SAPO-RM successfully bridges the gap between high-fidelity simulation and noisy real-world data.
- Safety as a Hard Boundary: In CARLA, the ego vehicle maintained a consistent 8-meter safety buffer. When approaching this limit, the policy automatically prioritized braking over rewards, regardless of the target speed.
- Behavioral Adaptation: The agent demonstrated the ability to "wait out" host vehicles when gaps were insufficient, transitioning to full throttle only once safety constraints were satisfied. This "character" can be tuned via the $\alpha$ parameter to make the agent more or less aggressive.
- Correcting Human Error: In NGSIM offline tests, the RL policy successfully learned to deviate from original human trajectories when those paths were deemed "unsafe" by the PCBF constraints, effectively "correcting" potential human errors.
Conclusion and Future Work
SAPO-RM provides a robust framework for safe autonomous merging by integrating probabilistic safety constraints into reinforcement learning. While effective in one-on-one scenarios, future research will focus on extending the model to multi-vehicle interactions and more complex vehicle dynamics, such as the "bicycle model," to further enhance realism and scalability in dense traffic.
Summary updated