TL;DR
The paper introduces CureFuzz, a novel curiosity-driven black-box fuzz testing framework designed to uncover safety vulnerabilities in Deep Learning-based Sequential Decision Makers (SDMs). By leveraging a lightweight curiosity mechanism inspired by reinforcement learning, CureFuzz efficiently explores high-dimensional state spaces to detect a larger and more diverse set of crash-triggering scenarios than state-of-the-art baselines. Furthermore, the authors demonstrate that the discovered edge cases can be successfully used to retrain and repair the underlying models, reducing subsequent failures by up to 73%.
What Problem Does This Paper Address?
Sequential Decision-Making Processes (SDPs) govern complex, safety-critical systems like autonomous driving, robotics, and traffic management. While Deep Learning (DL) has dramatically improved the performance of these systems, these models remain prone to learning unsafe behaviors that can lead to catastrophic real-world failures.
Testing these systems thoroughly is notoriously difficult due to the "curse of dimensionality"—their state spaces are continuous and high-dimensional. Existing automated testing methods fall short: density-based approaches suffer from high computational complexity, while topological similarity methods often only evaluate the final termination state, completely missing critical anomalies hidden within intermediate states. There is a clear need for an efficient testing framework that can explore uncharted territories of an environment to find a diverse set of unique failure modes.
Methods
CureFuzz addresses this challenge by combining black-box fuzz testing with a curiosity mechanism to guide the search toward novel scenarios.
The core components of the architecture include:
- Curiosity Mechanism (Random Network Distillation): CureFuzz uses a pair of neural networks—a fixed, randomly initialized target network and a trainable predictor network. The predictor network attempts to guess the target network's output for any given state. The prediction error (Mean Squared Error) serves as an intrinsic reward (novelty score). If the error is high, the scenario is unfamiliar, sparking the fuzzer's "curiosity" to explore it further.
- Multi-Objective Seed Selection: To balance exploration and exploitation, CureFuzz calculates a seed's "energy" using three factors:
- Cumulative Reward: Prioritizes scenarios where the agent performs poorly (low reward), as they are more likely to yield crashes.
- Robustness: Measures how sensitive the agent's final state is to tiny perturbations in the initial state. High sensitivity indicates a high potential for diverse behaviors.
- Intrinsic Reward: Prioritizes highly novel states.
- Black-Box Mutation: CureFuzz applies small, random perturbations to selected initial states to generate new test cases, ensuring they remain within legitimate state boundaries without requiring access to the agent's internal logic or code.
Datasets
The authors evaluated CureFuzz across four distinct sequential decision-making environments, spanning various deep learning architectures (DNN, DRL, MARL, and IL):
- CARLA: An open-source urban driving simulator used to test both Deep Reinforcement Learning (DRL) and Imitation Learning (IL) autonomous driving agents.
- ACAS Xu: A DNN-based aircraft collision avoidance system consisting of 45 distinct neural networks.
- Coop Navi: A Multi-Agent Reinforcement Learning (MARL) video game environment where multiple agents must cooperate to reach landmarks without colliding.
- BipedalWalker: An OpenAI Gym robotics environment challenging a two-legged robot to navigate rough terrain using bipedal locomotion.
Key Insights and Ideas
- Linear Complexity Scaling: Unlike traditional density-based novelty measures that become computationally prohibitive in complex environments, the RND-based curiosity mechanism scales linearly with environmental complexity. This makes it highly practical for complex setups like CARLA.
- Exploiting Intermediate States: By calculating curiosity across the entire sequence of states rather than just the termination state, CureFuzz captures rich behavioral information that other models miss.
- Diverse Failure Modes vs. Boundary Exploitation: The authors found that while model-based generators (like G-Model) tend to cluster failure cases heavily around the strict boundaries of valid inputs, CureFuzz discovers a much more evenly distributed and diverse set of failures across the entire valid input space.
Key Results
CureFuzz significantly outperformed the state-of-the-art baselines (MDPFuzz and G-Model) across multiple metrics:
- Crash Detection Performance: CureFuzz achieved a massive 422% increase in detected crashes for the BipedalWalker environment and more than doubled the crash count in the CARLA environments.
- Diversity of Failures: As shown in the evaluation metrics, CureFuzz discovered substantially more unique types of crash-triggering scenarios (up to 200% more distinct types in CARLA IL under a 100-bin discretization analysis).
- Analysis Speedup: CureFuzz proved to be incredibly lightweight. Its average analysis time per iteration was typically under 0.01 seconds—representing an 81.8% to 99.5% speedup over MDPFuzz.
- Model Repair: Using the failure cases discovered by CureFuzz to fine-tune the ACAS Xu model resulted in a 73% reduction in total crashes during subsequent testing rounds, validating its utility for model optimization.
Limitations and Future Work
The authors acknowledge a few key limitations:
- Simulation-to-Reality Gap: Testing was conducted entirely within simulated environments. Real-world deployments introduce sensor noise and environmental unpredictability that could lead to false positives or missed edge cases.
- Resource Constraints on Complex Inputs: Scaling the framework to systems that process massive, high-resolution multi-modal inputs (e.g., combining high-res camera feeds with raw LiDAR/radar data) will demand significantly more computational overhead.
Future work will focus on evaluating CureFuzz in even more advanced, large-scale environments and exploring ways to combine its spread-out exploration style with boundary-focused testing methods.
Summary updated