Reinforcement Learning with Probabilistic Guarantees for Autonomous Driving

Maxime Bouton, Jesper Karlsson, Alireza Nakhaei, Kikuo Fujimura, Mykel J. Kochenderfer, Jana TumovaarXiv 2019

Abstract

Reinforcement Learning (RL) is a powerful tool for developing autonomous driving policies, yet it notoriously lacks formal safety guarantees. This paper introduces a framework that leverages Linear Temporal Logic (LTL) to pre-calculate "acceptable" actions, constraining an RL agent to explore only those paths that meet a user-defined safety probability. By decoupling safety objectives from performance rewards, the proposed "Safe RL" method achieves a self-driving policy that is both more efficient than human-coded rules and provably safer than standard RL. Experimental results in complex intersection scenarios demonstrate a 0% collision rate while maintaining high operational efficiency.

Introduction

Reinforcement Learning agents typically learn through trial and error. While this is acceptable in simulated games, a single failure in an autonomous vehicle on a busy city street can be catastrophic. Conversely, traditional formal methods like model checking provide rigorous safety proofs but are often too conservative, resulting in the "frozen robot" problem where a vehicle refuses to move in heavy traffic. This research seeks a middle ground: allowing the agent to take calculated, probabilistic risks while enforcing a strict upper bound on the likelihood of failure.

Methods

The authors propose a two-step "Safe RL" approach to bridge the gap between performance and safety:

  1. Identifying Acceptable Actions: Before training, the environment is modeled as a Markov Decision Process (MDP). Safety requirements are defined using Linear Temporal Logic (LTL) (e.g., "Never collide AND eventually reach the goal"). A value iteration algorithm then calculates the maximum probability of satisfying this LTL formula for every possible state-action pair.
  2. Constrained Exploration: During Deep Q-Learning training, the agent’s action space is "masked." At any given state, the agent can only choose actions where the safety probability exceeds a specific threshold (e.g., 99.99%). If no such action exists, it defaults to a pre-defined backup safety policy.
The simulated unsignalized intersection scenario used for evaluation, featuring an ego vehicle, a pedestrian, and other traffic participants.

Experimental Setup

The approach was evaluated using a custom-designed simulated unsignalized intersection. The simulation included an "ego" vehicle (the agent), a pedestrian, and another vehicle. To capture real-world complexity, the simulation incorporated stochastic behaviors, such as pedestrians crossing at random intervals and other cars following the Intelligent Driver Model (IDM) with added noise. The state space was discretized into thousands of physical states to facilitate the initial model-checking phase.

Key Results

The Safe RL agent was compared against standard RL, a rule-based heuristic, and a "Safe Random" agent across three scenarios: Single Pedestrian, Single Car, and a combined Car and Pedestrian scenario.

Quantitative comparison of collision rates and efficiency (time steps) across different control methods.

As shown in the results table, the Safe RL agent achieved a 0.00% collision rate across all 10,000 Monte Carlo test simulations. In contrast, standard RL exhibited collision rates as high as 0.96%. Furthermore, Safe RL proved significantly more efficient than the rule-based approach; in the most complex "Car and Pedestrian" scenario, Safe RL reached the goal in 28.47 steps, compared to 42.05 steps for the rule-based heuristic.

Key Insights and Discussion

  • The Power of Pruning: Constraining the agent actually simplifies training. By preventing the exploration of "obviously" dangerous states, the search space is reduced, allowing the RL algorithm to converge on an efficient policy faster.
  • Probabilistic vs. Deterministic: Unlike previous "shielding" methods that use hard deterministic constraints, this method allows for a "budget" of risk. This is crucial for real-world driving where 100% absolute safety is often mathematically impossible due to the unpredictability of other agents.
  • Reward Decoupling: By handling safety via LTL filters, researchers can focus the RL reward function purely on performance (e.g., speed), preventing the agent from "cheating" the reward function at the expense of safety.

Limitations and Future Work

While promising, the initial model-checking step relies on a discretized grid, which faces the "curse of dimensionality" as more vehicles or complex geometries are added. Additionally, the safety guarantees are dependent on the accuracy of the MDP model. Future directions include scaling the approach using local approximation strategies and extending the framework to handle partially observable environments where the intentions of other drivers are unknown.

Summary updated

BibTeX
@misc{bouton2019reinforcement,
  author = {Maxime Bouton and Jesper Karlsson and Alireza Nakhaei and Kikuo Fujimura and Mykel J. Kochenderfer and Jana Tumova},
  title = {{Reinforcement Learning with Probabilistic Guarantees for Autonomous Driving}},
  year = {2019},
  eprint = {1904.07189},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1904.07189},
}
Figure