Safe Reinforcement Learning for Autonomous Vehicles through Parallel Constrained Policy Optimization*

Lu Wen, Jingliang Duan, Shengbo Eben Li, Shaobing Xu, Huei Peng

Introduction

Reinforcement Learning (RL) offers a powerful framework for complex control tasks like autonomous driving. However, the standard "trial and error" nature of RL poses significant safety risks. In a real-world setting, a vehicle cannot afford to "learn" that a collision is undesirable by experiencing it thousands of times. Existing "Safe RL" methods often suffer from excessive caution, leading to slow convergence, or "infeasibility," where an agent gets stuck in a state with no mathematically safe update path.

To address these challenges, researchers have introduced Parallel Constrained Policy Optimization (PCPO). This algorithm ensures safety throughout the training process while significantly improving learning efficiency by leveraging a dedicated risk network and parallelized exploration.

The Actor-Critic-Risk Architecture

The core of PCPO is the Actor-Critic-Risk (ACR) architecture. Unlike standard RL, which uses an Actor to decide actions and a Critic to estimate rewards, PCPO adds a third component: the Risk Network.

The Actor-Critic-Risk (ACR) architecture incorporates a dedicated Risk Network to predict and constrain dangerous outcomes.

Key technical innovations include:

  • Constrained Optimization: Safety is treated as a hard constraint. The agent maximizes rewards only if the predicted risk remains below a predefined threshold.
  • Trust Region Constraints: To ensure stable learning, updates to the driving policy are restricted using KL-divergence, preventing erratic behavior.
  • Synchronized Parallel Learning: This "secret sauce" involves running multiple agents in parallel. By aggregating data from various "scouts," the algorithm can find safe and effective update steps even when individual agents encounter "infeasible" local states.

Experimental Evaluation

PCPO was tested in two high-fidelity simulation scenarios:

  1. Lane-Keeping: A vehicle must maintain its center on a closed-loop track at 50 km/h without crossing lane boundaries.
  2. Intersection Crossing: Three vehicles must coordinate their accelerations to navigate an unsignalized intersection safely and efficiently.

Performance and Safety Results

The results demonstrate that PCPO provides robust safety guarantees without sacrificing performance. In the lane-keeping task, PCPO maintained the vehicle within boundaries throughout the entire learning process, whereas standard algorithms like PPO frequently failed.

Comparison of risk levels across different algorithms in the intersection scenario. PCPO maintains low risk while converging faster than CPO and PPO.

Key findings include:

  • Superior Speed: PCPO improved learning speed by approximately 35% compared to its predecessor, Constrained Policy Optimization (CPO), and by over 70% compared to PPO.
  • Optimality: In the complex intersection task, PCPO reached the theoretical maximum return significantly faster and more reliably than competing methods.

Conclusion and Future Directions

PCPO demonstrates that treating risk as a "first-class citizen" and utilizing parallel learners can overcome the traditional trade-offs between safety and efficiency in RL. While highly effective in simulation, future work will focus on automating risk definitions to reduce reliance on expert design and bridging the "sim-to-real" gap by accounting for sensor noise and mechanical latency in physical vehicles.

Summary updated

BibTeX
@inproceedings{wen2020safe,
  author = {Lu Wen and Jingliang Duan and Shengbo Eben Li and Shaobing Xu and Huei Peng},
  title = {{Safe Reinforcement Learning for Autonomous Vehicles through Parallel Constrained Policy Optimization*}},
  booktitle = {ITSC},
  year = {2020},
  doi = {10.1109/itsc45102.2020.9294262},
}
Figure