Abstract
As Deep Neural Networks (DNNs) are increasingly integrated into safety-critical systems, ensuring their reliability through rigorous testing is paramount. Traditional fuzzing techniques often fail to balance multiple coverage metrics or maintain the semantic validity of mutated inputs. This paper introduces DeepSearch, a many-objective optimization framework that leverages the SPEA2 algorithm, Monte Carlo Tree Search (MCTS), and a novel frequency-based sampling strategy. DeepSearch effectively navigates the trade-offs between diverse neuron coverage criteria while preserving input realism. Experimental results across MNIST, CIFAR-10, and ImageNet benchmarks show coverage increases of up to 40% and superior adversarial sample detection compared to state-of-the-art tools.
Introduction
The transition of DNNs into domains like autonomous driving and medical diagnostics necessitates a shift from "black-box" testing to more rigorous "white-box" approaches. Unlike traditional software, where logic is explicit, DNN behavior is emergent from millions of weights and activations. Current coverage-guided fuzzing—which mutates inputs to trigger new internal states—faces three critical challenges:
- Inefficiency: Random mutations often produce "garbage" inputs that fail to increase coverage.
- Conflicting Objectives: Maximizing different neuron coverage metrics (e.g., k-multisection vs. boundary coverage) often involves inherent trade-offs.
- Semantic Loss: Excessive mutation can render an image unrecognizable, creating invalid test cases.
To address these, the authors frame test generation as a many-objective optimization problem, aiming to maximize multiple coverage metrics simultaneously while ensuring semantic integrity.
The DeepSearch Framework
The DeepSearch framework integrates several advanced techniques to automate and optimize DNN testing. The system architecture is designed to handle the entire pipeline from data preprocessing to adversarial analysis.
Many-Objective Optimization (SPEA2)
Instead of optimizing for a single metric, DeepSearch employs the Strength Pareto Evolutionary Algorithm 2 (SPEA2). This allows the system to identify a "Pareto front" of test cases that achieve high performance across multiple criteria, including k-multisection neuron coverage (KMNC), neuron boundary coverage (NBC), and strong neuron activation coverage (SNAC).
Frequency-Based Fuzz Sampling
To avoid the bottleneck of repeatedly mutating the same "seed" images, the authors implement a frequency-based strategy. The probability of selecting a specific image for mutation decreases as it is used more frequently, encouraging the exploration of "fresher" seeds and preventing the search from stalling in local optima.
MCTS and Semantic Preservation
A key innovation is the use of Monte Carlo Tree Search (MCTS) for local neighborhood exploration within the optimization loop. While global mutations provide diversity, they often degrade image quality. MCTS performs fine-grained, pixel-level adjustments to find valid, recognizable versions of inputs that still satisfy coverage requirements.
Decomposition-Based Archiving
To manage the computational complexity of many-objective search, the framework divides the objective space into subspaces using weight vectors. This decomposition-based approach allows for efficient management of a diverse archive of high-performing test cases, significantly reducing search time.
Experimental Evaluation
DeepSearch was evaluated on standard benchmarks:
- MNIST: LeNet1, LeNet4, and LeNet5 architectures.
- CIFAR-10: Custom CIFAR-CNN.
- ImageNet: VGG16 and VGG19 large-scale models.
Key Results
- Coverage Gains: The framework achieved a 12% coverage increase on complex VGG16 networks and a 40% increase on simpler LeNet models.
- Adversarial Discovery: DeepSearch outperformed existing tools like DeepHunter and TensorFuzz in generating adversarial samples—inputs that appear normal to humans but trigger incorrect model predictions.
- Efficiency: The decomposition-based archiving strategy reduced search time by approximately 100 minutes on VGG networks compared to standard SPEA2 implementations.
Discussion and Conclusion
The study highlights that neuron coverage metrics are often in competition; a many-objective approach is essential for a balanced assessment of DNN reliability. Furthermore, the integration of MCTS proves vital for maintaining semantic constraints during the fuzzing process.
Despite its successes, the framework currently focuses on image data and CNNs. Future research is required to adapt these mutation strategies for other modalities like audio or natural language. Additionally, while decomposition improves speed, the computational cost for very large models remains a challenge for rapid CI/CD pipelines. Finally, the community must continue to investigate the degree to which neuron coverage metrics truly correlate with real-world safety and robustness.
Summary updated