1. Introduction
Deep Neural Networks (DNNs) have become foundational in safety-critical domains, including autonomous driving and medical diagnostics. Despite their impressive performance, DNNs often exhibit unexpected behaviors when encountering "corner cases"—rare inputs that fall outside the typical training distribution. Traditional testing methodologies, which often rely on random sampling from existing datasets, are frequently insufficient for identifying these vulnerabilities. Coverage-Guided Fuzzing (CGF) has emerged as a promising alternative, aiming to discover such cases by iteratively mutating inputs to maximize code or neuron coverage. However, existing DNN fuzzers often employ random mutation strategies, leading to inefficiencies as model complexity increases. DeepSmartFuzzer addresses these limitations by framing mutation selection as a strategic search problem.
2. The DeepSmartFuzzer Framework
DeepSmartFuzzer replaces the "spray and pray" tactics of random fuzzing with a reward-guided approach to intelligently explore the input space. By treating the selection of data mutations as a strategic game, the tool can efficiently identify inputs that trigger previously unexplored internal states of a neural network.
2.1 System Architecture
The framework consists of several integrated components: an Input Chooser, a Mutation Selector, an Input Mutator, and a Coverage Criterion evaluator. The process begins with a seed corpus of inputs. The Input Chooser selects a batch, which is then passed to the Mutation Selector.
As shown in Figure 1, the Mutation Selector utilizes Monte Carlo Tree Search (MCTS) to determine the most effective sequence of perturbations. The resulting mutated batch is evaluated against structural coverage criteria (e.g., neuron coverage). If new coverage is achieved, the mutated inputs are added to the "Best Batch" and used to provide a reward signal back to the MCTS engine, guiding future iterations.
2.2 Mutation Selection via MCTS
The core innovation of DeepSmartFuzzer is modeling the mutation process as a two-player game. In this game, Player I selects a specific spatial region of the input (such as a grid cell in an image), and Player II selects a mutation type (e.g., brightness adjustment, blurring, or contrast changes).
The MCTS algorithm follows a four-stage cycle: Selection, Expansion, Simulation, and Backpropagation. This allows the fuzzer to balance exploration—investigating new mutation combinations—with exploitation—refining sequences that have historically yielded high coverage rewards. By dividing inputs into regions, the fuzzer mimics the spatial processing of Convolutional Neural Networks (CNNs), allowing for granular and realistic perturbations that are more likely to trigger edge-case behaviors.
3. Experimental Evaluation
The authors evaluated DeepSmartFuzzer using two standard benchmarks: MNIST (handwritten digits) and CIFAR-10 (colored images). These were tested against several model architectures, including LeNet variants and a 20-layer CNN. The tool was compared against state-of-the-art fuzzers, including TensorFuzz and DeepHunter, across multiple structural coverage metrics such as Neuron Coverage (NC) and K-Multisection Neuron Coverage (KMNC).
4. Results and Key Insights
DeepSmartFuzzer consistently outperformed baseline tools in terms of both coverage speed and final coverage depth. For instance, on the CIFAR-10 model using the TFC metric, DeepSmartFuzzer achieved a 42.33% increase in coverage, significantly higher than DeepHunter's 16% and TensorFuzz's 0%.
Beyond coverage, the tool proved effective at discovering adversarial vulnerabilities. In tests on the MNIST dataset, up to 17.94% of the high-coverage inputs generated by the fuzzer were found to be adversarial examples, causing the model to misclassify the input despite the perturbations being relatively minor. This suggests that structural coverage is a valid proxy for identifying model weaknesses.
5. Conclusion and Future Directions
DeepSmartFuzzer demonstrates that strategic mutation selection using MCTS is far more efficient than random fuzzing for DNN testing. By treating the search for corner cases as a reward-guided game, the framework can uncover complex vulnerabilities that traditional methods miss. Future research directions include addressing the "cold start" problem, where MCTS may struggle initially before finding a reward signal, and exploring more sophisticated reward functions based on the magnitude of neuron activations.
Summary updated