Rigorous Simulation-based Testing for Autonomous Driving Systems - Targeting the Achilles' Heel of Four Open Autopilots

Changwen Li, Joseph Sifakis, Rongjie Yan, Jian ZhangarXiv 2024 · DOI

Abstract

Validating the safety of Autonomous Driving Systems (ADSs) remains a significant hurdle due to the complexity of real-world environments and the "black-box" nature of AI perception modules. This paper introduces a rigorous simulation-based testing framework that targets the "critical transition" between cautious behavior and active progression. By decomposing driving into fundamental "vistas" and utilizing mathematical models of vehicle dynamics, the researchers uncovered nearly 4,000 defects—including accidents and software crashes—across four major open-source autopilots: Apollo, Autoware, Carla, and LGSVL.

Introduction

The industry currently relies heavily on simulation-based testing to validate ADSs. However, random simulations are often inefficient, failing to capture rare but catastrophic edge cases. This research addresses the need for a more systematic approach to define "coverage" and identify critical scenarios based on the physical limits of the vehicle, such as braking and acceleration capabilities.

Methodology: A Systematic Testing Framework

The authors propose a "divide and conquer" approach to ADS validation. The framework bridges multiple autopilot systems with simulators like Carla and LGSVL, using high-definition (HD) maps to create realistic testing environments.

Overview of the systematic testing framework architecture.

The core methodology relies on three pillars:

  1. Vistas: Complex routes are decomposed into three fundamental patterns: straight roads, merging lanes, and crossings (intersections).
  2. Critical Transitions: The generator specifically targets the moment an autopilot switches from a caution phase (e.g., yielding) to a progress phase (e.g., accelerating into traffic).
  3. A/D Functions: Mathematical models of acceleration and deceleration ensure that test cases are physically realistic. This ensures that any failure is a result of a faulty software decision rather than a physically impossible demand on the vehicle.
Visualization of vehicle trajectories and visibility zones within a driving vista.

Key Insights: The "Irrationality" of Autopilots

The study revealed several counter-intuitive behaviors in modern autopilots:

  • The Progress Trap: Most defects occur during the transition to the progress phase, where systems often overestimate their acceleration or fail to account for traffic light timing.
  • Irrationality: Autopilots occasionally pass difficult test cases but fail physically easier ones (e.g., failing when a lead vehicle is further away).
  • Non-Linear Braking: Most systems lack "additive" braking functions, meaning they struggle to accurately predict safe stopping distances across different speed intervals.
  • Over-caution: Systems like Autoware sometimes exhibit excessive caution, refusing to move in safe conditions, which negatively impacts traffic flow.

Results and Performance Analysis

The framework detected 3,962 defects across 14,506 test cases, representing a 27.31% failure rate.

  • Crossing Scenarios: Intersections with yield signs proved most dangerous, with a 50.22% defect rate.
  • Merging Scenarios: These resulted in a 16.66% accident rate. LGSVL was the most accident-prone (31.55% failure), while Apollo was the most robust (0.80% failure).
  • Software Stability: Apollo faced significant issues during lane changes, with a 24.81% software failure rate where the system either crashed or became unresponsive.

Conclusion and Future Directions

While highly effective, the authors note that future work should expand scenario variety to include complex patterns like roundabouts. Additionally, improving the precision of vehicle dynamics (A/D estimation) and formally proving "compositional" safety—where safety in individual vistas guarantees safety for an entire route—remain key areas for development.

Summary updated

BibTeX
@misc{li2024rigorous,
  author = {Changwen Li and Joseph Sifakis and Rongjie Yan and Jian Zhang},
  title = {{Rigorous Simulation-based Testing for Autonomous Driving Systems - Targeting the Achilles' Heel of Four Open Autopilots}},
  year = {2024},
  eprint = {2405.16914},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.16914},
}
Figure