Realistic Safety-critical Scenarios Search for Autonomous Driving System via Behavior Tree

Ping Zhang, Lingfeng Ming, Tingyi Yuan, Cong Qiu, Yang Li, Xinhua Hui, Zhiquan Zhang, Chao HuangarXiv 2023 · DOI

Abstract

Testing Autonomous Driving Systems (ADSs) requires identifying rare, safety-critical "corner cases" within a massive search space. Traditional methods often suffer from the curse of dimensionality or generate unrealistic scenarios that do not accurately test system logic. This paper presents Matrix-Fuzzer, a testing framework that leverages Behavior Trees (BTs) to abstract driving logs into high-level semantic behaviors. By employing a hybrid search strategy combining Bayesian Optimization and Genetic Algorithms, Matrix-Fuzzer identifies diverse and valid failure modes with 70% fewer simulations than state-of-the-art baselines, significantly improving the efficiency and realism of ADS safety testing.

Introduction

The validation of Autonomous Driving Systems (ADSs) is fundamentally a "rare event" problem. While real-world safety-critical incidents occur once every millions of miles, simulation offers a safer, faster alternative. However, simulation-based testing faces three primary hurdles: the curse of dimensionality in complex spatial-temporal environments, the generation of unrealistic scenarios (e.g., "teleporting" agents) that do not test ADS logic, and a heavy reliance on expert knowledge for manual scenario design.

The Matrix-Fuzzer Framework

To address these challenges, we introduce Matrix-Fuzzer, which shifts the testing focus from raw coordinate-based trajectories to high-level semantic behaviors.

The Matrix-Fuzzer architecture, illustrating the pipeline from Logical Scenario (LS) construction to the adaptive fuzzing engine and evaluation.

The framework consists of four main components:

  1. LS Construction: Utilizes expert knowledge and a novel log2BT algorithm to generate Behavior Trees from real-world data.
  2. Fuzzing Engine: An adaptive system that selects between Bayesian Optimization (BO) for low-dimensional spaces and Genetic Algorithms (GA) for high-dimensional spaces to optimize search efficiency.
  3. Matrix Simulator: A custom interactive environment for executing generated test cases.
  4. Evaluation Engine: A reasonability-aware module that calculates fitness scores based on safety metrics (e.g., minDist) while penalizing unrealistic adversarial behavior.

Semantic Abstraction via log2BT

A core innovation of Matrix-Fuzzer is the log2BT algorithm, which converts raw driving logs into structured Behavior Trees. Instead of defining a trajectory as a series of coordinates, the system identifies sequences of behaviors such as "Track," "Lane Change," and "Cruise."

The log2BT process: partitioning raw trajectories into classified behaviors to generate a structured Behavior Tree.

This process uses a Frenet-based approximate trajectory partition to detect transitions between behaviors based on velocity and lateral offset. This "semantic compression" reduces storage overhead by 100x and drastically narrows the search space for the fuzzing engine, allowing it to focus on the parameters that actually trigger crashes.

Experimental Results

Matrix-Fuzzer was evaluated against NGSIM highway data and proprietary real-world logs. Key findings include:

  • Efficiency: The framework generated only 30% of the total scenarios required by baselines like AV-Fuzzer while discovering a wider variety of violations.
  • Quality and Validity: The ratio of critical violations to total scenarios improved by at least 10x. Crucially, the framework reduced "invalid" (unrealistic) scenarios by over 58% by penalizing reckless adversarial maneuvers.
  • Reconstruction Accuracy: The log2BT method maintained high fidelity to original trajectories, with longitudinal and lateral errors kept under 0.7m and 0.3m, respectively.

Conclusion

Matrix-Fuzzer demonstrates that semantic abstraction via Behavior Trees is a powerful tool for ADS testing. By focusing on behavior-space rather than state-space, the framework effectively navigates the curse of dimensionality to find realistic, safety-critical edge cases. Future work will focus on expanding the behavioral vocabulary and exploring multi-agent dynamic interactions.

Summary updated

BibTeX
@misc{zhang2023realistic,
  author = {Ping Zhang and Lingfeng Ming and Tingyi Yuan and Cong Qiu and Yang Li and Xinhua Hui and Zhiquan Zhang and Chao Huang},
  title = {{Realistic Safety-critical Scenarios Search for Autonomous Driving System via Behavior Tree}},
  year = {2023},
  eprint = {2305.06603},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.06603},
}
Figure