Abstract
Simulation-based fuzzing is essential for testing Autonomous Driving Systems (ADSs), yet current methods often fail to account for the causal relationships between environmental inputs and system outputs. We present Causal-Fuzzer, a novel testing framework that models the causal flow from environmental scenes to vehicle actions and safety violations. By utilizing causal graph discovery and causality-driven mutation, Causal-Fuzzer significantly improves the efficiency and diversity of safety-critical scenario generation. Experimental results on Baidu Apollo 7.0 demonstrate a 132% improvement in bug diversity and a 2x speedup in finding the first system failure compared to state-of-the-art baselines.
Introduction
The safety of Autonomous Driving Systems (ADSs) is paramount, yet real-world testing is prohibitively expensive and risky. Simulation-based "fuzzing"—generating a high volume of diverse driving scenarios to stress-test software—has emerged as a viable alternative. However, traditional fuzzers treat input variables (e.g., NPC positions) and output behaviors (e.g., braking) as independent data points, ignoring the causal interrelationships between them. This "causal blindness" leads to redundant testing of scenarios that trigger identical logic paths and misses critical edge cases where subtle changes in influential actors cause system failure.
Methodology: The Causal-Fuzzer Framework
Causal-Fuzzer addresses these limitations by shifting from simple diversity metrics to a causality-aware approach. The framework operates through a continuous loop of scenario generation, observation, and causal discovery.
1. Scenario Vectorization and Graph Discovery
To process complex 3D environments, Causal-Fuzzer partitions the area around the "ego" vehicle into a grid, encoding the presence of Non-Player Characters (NPCs), ego vehicle actions, and safety violations into a unified vector. Using the Linear Non-Gaussian Acyclic Model (LiNGAM), the system automatically discovers a Directed Acyclic Graph (DAG) representing the causal flow: Scene → Action → Violation.
2. Causality-based Feedback and Mutation
The framework introduces two key metrics derived from the causal graph:
- Testing Sufficiency: Evaluates whether a new test case activates previously unobserved causal links.
- Violation Diversity: Quantifies whether a collision stems from a unique combination of environmental factors and maneuvers.
Instead of random mutations, the fuzzer calculates the Average Causal Effect (ACE) of each NPC. By prioritizing the mutation of "influential" NPCs—those with the highest probability of altering the ego vehicle's behavior—the system focuses its search on the most promising areas for bug discovery.
Experimental Evaluation
The researchers evaluated Causal-Fuzzer using the Baidu Apollo 7.0 platform and the LGSVL Simulator across four functional scenarios: straight roads, lane changes, non-signalized intersections, and left turns.
Key Results
Causal-Fuzzer was compared against random testing, AV-Fuzzer, and DoppelTest.
- Bug Diversity: Identified an average of 98.4 unique violations, a 132% improvement over the best baseline (42.4).
- Testing Efficiency: Found the first critical safety violation in an average of 32.1 scenarios, compared to 71.5 for the best baseline.
- Coverage: Achieved a testing sufficiency score of 12.9, nearly doubling the coverage of causal relationships compared to existing methods.
Discussion and Future Work
Causal-Fuzzer demonstrates that identifying "influential" actors is more effective than exhaustive random mutation. By grouping bugs semantically through causal edges, it provides developers with actionable insights into root causes. While currently optimized for multi-module ADSs, future work will explore causal discovery in end-to-end neural driving models and integrate more complex semantic features like weather and traffic regulations.
Summary updated