Dance of the ADS: Orchestrating Failures through Historically-Informed Scenario Fuzzing

Tong Wang, Taotao Gu, Huan Deng, Hu Li, Xiaohui Kuang, Gang Zhao

TL;DR

This paper introduces ScenarioFuzz, a novel fuzz testing framework for autonomous driving systems (ADS) that generates realistic, high-risk scenarios without relying on pre-defined ones. By leveraging historical data and a graph neural network, it significantly improves the efficiency and effectiveness of discovering ADS bugs.

What Problem Does This Paper Address?

Verifying the safety of increasingly complex autonomous driving systems (ADS) is a major challenge. Traditional testing methods often rely on predefined scenarios, which are time-consuming to create and may not cover the vast range of real-world situations. This can lead to critical safety vulnerabilities being missed. The authors aim to address this by developing a method that can automatically generate diverse and challenging scenarios to uncover these hidden flaws.

Methods

ScenarioFuzz employs a multi-stage approach:

  • Scenario Seed Corpus Generation: It starts by "crawling" map road networks (like OPENDRIVE) to extract essential data, forming a foundational "seed corpus." This corpus provides the necessary context and boundaries for generating scenarios without needing explicit starting points.
  • Two-Stage Mutation Strategy: Specialized "mutators" are used to alter various aspects of these seeds, including weather, object properties, and mission parameters. This is done in two stages: a random mutation followed by a "random neighbor" strategy that explores the vicinity of promising seeds.
  • Scenario Evaluation Model (SEM): A Graph Neural Network (GNN) is trained on historical test data to predict which mutated seeds are most likely to lead to ADS errors. This acts as a filter, prioritizing high-risk scenarios and optimizing the fuzzing process.
  • Execution and Monitoring: The filtered high-risk scenarios are then simulated, and an ADS misbehavior detector identifies critical events like crashes, red-light running, or speeding.
  • Self-Supervised Collision Trajectory Clustering: A method is proposed to analyze and categorize collision scenarios, identifying 54 high-risk categories.

Datasets

The authors utilize the CARLA simulator and its associated map data (e.g., Town01-Town05) for generating and testing scenarios. Historical test data from various ADS systems is used to train the Scenario Evaluation Model (SEM).

Key Insights and Ideas

  • "Choreographer" Analogy: The paper frames fuzzing as a choreographer understanding past "performances" (historical data) to create new, challenging "dances" (scenarios) for the ADS. This highlights the intelligent use of past data.
  • Corpus as Foundation: The creation of a scenario seed corpus from map data is a crucial innovation, providing a grounded starting point for fuzzing without manual scenario design.
  • SEM for Efficiency: Using a GNN to predict high-risk scenarios is key to overcoming the computational cost of extensive fuzzing, focusing efforts on the most promising test cases.
  • Historical Data is Gold: The effectiveness of the SEM is shown to improve with more historical data, emphasizing the value of learning from past testing efforts.

Key Results

  • Efficiency Gains: ScenarioFuzz reduces execution time by an average of 60.3% and increases the number of error scenarios discovered per unit of time by 103% compared to DriveFuzz.
  • Bug Discovery: The framework successfully uncovered 58 bugs across six tested ADS systems.
  • Code Coverage: ScenarioFuzz achieved better code coverage in perception, planning, and control modules compared to DriveFuzz.
  • SEM Performance: The SEM demonstrated good generalization capabilities across different ADS systems and improved with more training data.
  • Scenario Diversity: The method generates a more diverse set of error scenarios, particularly in complex situations like crossroads and T-intersections, compared to existing methods like AV-Fuzzer and SAMOTA.

Limitations and Future Work

  • False Negatives: The authors acknowledge that the SEM may miss some error scenarios, particularly those occurring outside expected boundaries or involving unique error types.
  • Model Enhancement: Future work will focus on enhancing the SEM's structure, enriching input graph data with more features, and expanding the dataset to improve its ability to capture and predict complex error behaviors.
  • Scenario Complexity: While the clustering method identifies 54 high-risk categories, further work is needed to fully represent the nuances of these scenarios, such as variations in context, weather, and object properties.

Summary updated

BibTeX
@misc{wang2024dance,
  author = {Tong Wang and Taotao Gu and Huan Deng and Hu Li and Xiaohui Kuang and Gang Zhao},
  title = {{Dance of the ADS: Orchestrating Failures through Historically-Informed Scenario Fuzzing}},
  year = {2024},
  eprint = {2407.04359},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.04359},
}

Loading related content...

Figure