TL;DR
This paper introduces AutoFuzz, a novel technique that uses a neural network-guided evolutionary approach to automatically discover traffic violations in autonomous vehicle (AV) simulations. By intelligently exploring complex driving scenarios, AutoFuzz significantly outperforms existing methods in finding diverse safety-critical events, leading to improved AV controller robustness.
What Problem Does This Paper Address?
Ensuring the safety and reliability of autonomous vehicles (AVs) is paramount before widespread adoption. While real-world testing is expensive and limited in its ability to uncover rare "corner case" scenarios, existing simulation-based testing methods often struggle to generate complex, semantically valid driving situations that can expose subtle AV controller flaws. These methods also tend to focus on simple scenarios and don't scale well for the intricate interactions between AVs, pedestrians, and other vehicles that characterize real-world driving. The challenge lies in efficiently searching a vast space of possible driving scenarios to find those that trigger traffic violations, especially those that are diverse and not just minor variations of already found issues.
Methods
AutoFuzz employs a grammar-guided evolutionary fuzzing approach. It leverages the API grammar of AV simulators (like CARLA) to generate semantically and temporally valid driving scenarios. The core innovation lies in its neural network (NN)-guided evolutionary search.
Here's a breakdown of the key components:
- Grammar-Based Scenario Generation: AutoFuzz uses the simulator's API specifications to construct a grammar that defines valid driving scenes. This ensures that generated scenarios are realistic and executable.
- Evolutionary Fuzzing Framework: The system operates within an evolutionary algorithm framework, iteratively generating and evaluating test scenarios (seeds).
- NN-Guided Seed Selection: A crucial aspect is the use of a trained neural network to predict which generated seeds are most likely to lead to unique traffic violations. This allows the fuzzer to prioritize promising scenarios and avoid wasting resources on less fruitful ones.
- Constrained Gradient-Guided Mutation: To further enhance the search, AutoFuzz applies a mutation strategy inspired by adversarial attacks. It iteratively perturbs selected seeds based on the NN's gradients to increase their likelihood of causing violations, while ensuring these mutations remain within the grammar's constraints.
- Unique Violation Definition: The paper defines "unique violations" based on a configurable percentage of changeable fields differing between two violation-inducing scenarios, promoting the discovery of diverse failure modes.
Datasets
The paper uses the CARLA simulator (version 0.9.9) and the SVL simulator (version 2021.3) for its experiments. The scenarios are inspired by the National Highway Traffic Safety Administration (NHTSA) report [7], focusing on common pre-crash functional scenarios. No new datasets were introduced; rather, existing simulators and scenario typologies were utilized.
Key Insights and Ideas
- NNs as Intelligent Guides for Fuzzing: The most significant insight is that neural networks can effectively guide the complex search process of fuzzing for AVs. By learning from past test results, the NN can predict promising areas of the scenario space, dramatically improving efficiency.
- The Power of "Unique" Violations: Focusing on finding unique traffic violations, rather than just any violation, is crucial for thoroughly understanding an AV's limitations. This approach helps uncover a broader spectrum of failure modes.
- Gradient-Guided Mutation for Targeted Exploration: Adapting techniques from adversarial machine learning (gradient-guided mutation) proves effective in pushing the system towards violation-inducing scenarios, especially when combined with NN guidance.
- Grammar as a Safety Net: The use of simulator API grammars is essential for ensuring that generated scenarios are not only complex but also realistic and executable, preventing wasted computational effort on invalid inputs.
- Repairing AVs with Found Violations: The study demonstrates that the traffic violations discovered by AutoFuzz can be directly used to fine-tune and improve AV controllers, showing a practical application of the fuzzing results.
Key Results
- Superior Violation Discovery: AutoFuzz consistently found 10-39% more unique traffic violations on average compared to the best-performing baseline methods across various scenarios and controllers.
- High Uniqueness Rate: AutoFuzz achieved a high percentage of unique violations, with some scenarios reaching 100% uniqueness, indicating effective diversity in its findings.
- Controller Improvement: Fine-tuning a learning-based controller (lbc) with violations found by AutoFuzz resulted in a 75-100% reduction in failure cases on held-out test data.
- Generalizability: The approach demonstrated effectiveness across different AV controllers (learning-based, rule-based, industrial) and simulators (CARLA, SVL).
Limitations and Future Work
- Simulator Realism: The authors acknowledge that reported violations might be influenced by simulator limitations or interactions, rather than solely controller flaws. They mitigate this by using multiple simulators and controllers.
- Defining Uniqueness: While the paper proposes a configurable definition for unique violations, they note that a more desirable definition might be based on the internal system fault causing the violation, which is challenging in a black-box setting.
- Road Infrastructure: The current work uses default road infrastructures in simulators. Future work could explore the impact of different road infrastructures, especially those designed for AVs or with support for connected autonomous vehicles (CAVs).
- Temporal Dynamics: The integration of more complex temporal developments into scenario generation is suggested for future work.
- Root Cause Analysis: Assigning responsibility for violations to specific AV components at different time steps remains a challenge, and a deeper study into this is proposed.
Summary updated