Skip to main content
QUICK REVIEW

[Paper Review] Neural Network Guided Evolutionary Fuzzing for Finding Traffic Violations of Autonomous Vehicles

Ziyuan Zhong, Gail E. Kaiser|arXiv (Cornell University)|Sep 13, 2021
Software Testing and Debugging TechniquesComputer Science60 references10 citations
TL;DR

This paper proposes AutoFuzz, a grammar-guided, neural network–enhanced evolutionary fuzzing technique that generates semantically valid, complex driving scenarios to uncover traffic violations in autonomous vehicle (AV) controllers. By leveraging simulator API grammars and optimizing search via a constrained neural network, AutoFuzz discovers 10–39% more unique traffic violations than baseline methods across four AV controllers in high-fidelity simulations.

ABSTRACT

Self-driving cars and trucks, autonomous vehicles (AVs), should not be accepted by regulatory bodies and the public until they have much higher confidence in their safety and reliability -- which can most practically and convincingly be achieved by testing. But existing testing methods are inadequate for checking the end-to-end behaviors of AV controllers against complex, real-world corner cases involving interactions with multiple independent agents such as pedestrians and human-driven vehicles. While test-driving AVs on streets and highways fails to capture many rare events, existing simulation-based testing methods mainly focus on simple scenarios and do not scale well for complex driving situations that require sophisticated awareness of the surroundings. To address these limitations, we propose a new fuzz testing technique, called AutoFuzz, which can leverage widely-used AV simulators' API grammars to generate semantically and temporally valid complex driving scenarios (sequences of scenes). To efficiently search for traffic violations-inducing scenarios in a large search space, we propose a constrained neural network (NN) evolutionary search method to optimize AutoFuzz. Evaluation of our prototype on one state-of-the-art learning-based controller, two rule-based controllers, and one industrial-grade controller in five scenarios shows that AutoFuzz efficiently finds hundreds of traffic violations in high-fidelity simulation environments. For each scenario, AutoFuzz can find on average 10-39% more unique traffic violations than the best-performing baseline method. Further, fine-tuning the learning-based controller with the traffic violations found by AutoFuzz successfully reduced the traffic violations found in the new version of the AV controller software.

Motivation & Objective

  • Address the lack of scalable and effective testing methods for detecting rare, complex traffic violations in autonomous vehicle (AV) controllers during simulation.
  • Overcome limitations of real-world testing (cost, coverage) and traditional simulation-based testing (limited scenario diversity, poor scalability).
  • Develop a fuzzing framework that generates semantically and temporally valid driving scenarios by leveraging simulator API grammars.
  • Optimize the search for violation-inducing scenarios using a constrained neural network within an evolutionary algorithm framework.
  • Demonstrate the effectiveness of the approach in identifying diverse, realistic traffic violations and improving AV controller robustness through retraining.

Proposed method

  • Leverage the API grammar of widely used AV simulators to generate valid initial scene configurations as seed inputs for fuzzing.
  • Apply grammar-guided mutation to generate new test cases that preserve semantic and temporal validity in driving scenarios.
  • Employ an evolutionary algorithm to guide the search process, with fitness defined by the diversity and severity of detected traffic violations.
  • Integrate a constrained neural network to model the search space and prioritize promising input mutations, improving convergence and coverage.
  • Use black-box simulation to evaluate each generated scenario, detecting traffic violations such as collisions, unsafe lane changes, and failure to yield.
  • Apply a configurable uniqueness metric with parameters $th_1$ and $th_2$ to quantify and filter distinct violations, reducing redundancy.

Experimental results

Research questions

  • RQ1Can a grammar-guided, neural network–enhanced evolutionary fuzzer effectively generate semantically valid, complex driving scenarios for AV testing?
  • RQ2To what extent can such a fuzzer discover more unique traffic violations compared to existing baseline methods in high-fidelity simulation environments?
  • RQ3Can traffic violations discovered by the fuzzer be used to improve the robustness of learning-based AV controllers through retraining?
  • RQ4How effective is the constrained neural network in guiding the evolutionary search toward violation-inducing scenarios without violating semantic constraints?
  • RQ5What is the impact of varying scenario complexity and environmental factors (e.g., weather, traffic density) on the detection rate of traffic violations?

Key findings

  • AutoFuzz discovered hundreds of unique, realistic traffic violations across five complex driving scenarios in high-fidelity simulation environments.
  • For each scenario, AutoFuzz found 10–39% more unique traffic violations than the best-performing baseline method, demonstrating superior coverage and diversity.
  • The method successfully identified violations involving sudden stops, failure to yield, and collision with pedestrians or obstacles, closely resembling real-world crash scenarios.
  • Retraining a learning-based AV controller using the violations discovered by AutoFuzz led to a measurable reduction in the number of similar violations in the updated version.
  • The constrained neural network significantly improved search efficiency by focusing on promising regions of the input space, reducing the generation of invalid or redundant test cases.
  • The approach is effective across diverse AV controllers, including one industrial-grade system (Apollo 6.0), indicating broad applicability to real-world AV software stacks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.