Abstract
Deep Neural Networks (DNNs) are increasingly used in safety-critical applications, necessitating rigorous testing beyond standard accuracy metrics. DeepSmartFuzzer is a novel coverage-guided fuzzing framework that employs Monte Carlo Tree Search (MCTS) to strategically mutate inputs. By framing mutation selection as a game-theoretic search, DeepSmartFuzzer efficiently explores the input space to maximize structural coverage. Experimental results on MNIST and CIFAR-10 show that DeepSmartFuzzer significantly outperforms existing tools like DeepHunter and TensorFuzz, particularly as model complexity increases.
Introduction
As DNNs move into domains like autonomous driving, traditional testing—checking accuracy on a held-out set—is insufficient. We must ensure models are robust against corner cases and that their internal structures are thoroughly exercised. Coverage-Guided Fuzzing (CGF), a staple in software engineering, is difficult to apply to DNNs because the mutation search space is vast. Random mutations often fail to trigger complex internal behaviors in deep models.
Methods
DeepSmartFuzzer replaces random mutation with a guided search strategy. The framework consists of several key components: an Input Chooser for seed selection, an MCTS-based Mutation Selector, an Input Mutator, and a Coverage Criterion feedback loop.
The system uses a "grey-box" approach, utilizing internal state information (coverage) to guide the search without requiring full mathematical gradients. Instead of changing the whole image at once, the mutator applies changes to specific $3 \times 3$ grid regions, inducing a bias toward local features that are natural for Convolutional Neural Networks (CNNs).
MCTS-Guided Mutation Selection
The core innovation is framing mutation as a two-player game. Player I selects a specific region of the image, and Player II selects the mutation type (e.g., brightness, contrast, blur). This locality-aware approach mimics how CNNs process information.
The MCTS loop—Selection, Expansion, Simulation, and Backpropagation—identifies sequences of mutations that yield the highest "reward," defined as an increase in structural coverage metrics like Neuron Coverage (NC), k-multisection neuron coverage (KMN), or TensorFuzz Coverage (TFC).
Results and Discussion
Evaluation on MNIST (LeNet architectures) and CIFAR-10 demonstrated that DeepSmartFuzzer consistently achieves superior coverage. Notably, for the TFC metric on MNIST-LeNet1, DeepSmartFuzzer achieved a score of 204.67, vastly exceeding DeepHunter’s 29.00.
The performance gap between DeepSmartFuzzer and random methods widens as models become more complex, suggesting that guided search is vital for modern deep architectures. However, the framework faces a "cold start" challenge: if initial mutations provide no reward, the search effectively reverts to random behavior. Future work will explore sophisticated reward shaping to navigate these coverage plateaus.
Conclusion
DeepSmartFuzzer demonstrates that treating fuzzing as a strategic search rather than a random process leads to more effective DNN testing. By leveraging MCTS and local mutations, it provides a scalable and efficient way to uncover edge cases in deep learning models.
Summary updated