Skip to main content
QUICK REVIEW

[Paper Review] Coverage-Guided Fuzzing for Deep Neural Networks.

Xiaofei Xie, Lei Ma|arXiv (Cornell University)|Sep 4, 2018
Adversarial Robustness in Machine LearningComputer Science49 references32 citations
TL;DR

DeepHunter is a coverage-guided fuzzing framework that uses metamorphic mutation and multiple plug-in coverage criteria to automatically detect defects in deep neural networks. It significantly improves test coverage and uncovers erroneous behaviors, especially during model quantization for deployment.

ABSTRACT

In company with the data explosion over the past decade, deep neural network (DNN) based software has experienced unprecedented leap and is becoming the key driving force of many novel industrial applications, including many safety-critical scenarios such as autonomous driving. Despite great success achieved in various human intelligence tasks, similar to traditional software, DNNs could also exhibit incorrect behaviors caused by hidden defects causing severe accidents and losses. In this paper, we propose DeepHunter, an automated fuzz testing framework for hunting potential defects of general-purpose DNNs. DeepHunter performs metamorphic mutation to generate new semantically preserved tests, and leverages multiple plugable coverage criteria as feedback to guide the test generation from different perspectives. To be scalable towards practical-sized DNNs, DeepHunter maintains multiple tests in a batch, and prioritizes the tests selection based on active feedback. The effectiveness of DeepHunter is extensively investigated on 3 popular datasets (MNIST, CIFAR-10, ImageNet) and 7 DNNs with diverse complexities, under a large set of 6 coverage criteria as feedback. The large-scale experiments demonstrate that DeepHunter can (1) significantly boost the coverage with guidance; (2) generate useful tests to detect erroneous behaviors and facilitate the DNN model quality evaluation; (3) accurately capture potential defects during DNN quantization for platform migration.

Motivation & Objective

  • To address the growing risk of undetected defects in deep neural networks (DNNs) used in safety-critical applications such as autonomous driving.
  • To overcome the limitations of traditional testing by enabling automated, scalable, and effective fuzzing of DNNs with semantic test generation.
  • To improve DNN quality evaluation by detecting erroneous behaviors through feedback-driven test generation.
  • To support model platform migration by identifying defects introduced during quantization.

Proposed method

  • Employs metamorphic mutation to generate new test inputs that preserve semantic meaning while altering input features to explore model behavior.
  • Integrates multiple plug-in coverage criteria (e.g., neuron, activation, and gradient-based metrics) as feedback to guide test generation from diverse perspectives.
  • Maintains and processes multiple test cases in batches to improve scalability for large DNNs.
  • Prioritizes test cases based on active feedback from coverage criteria to focus on high-impact inputs.
  • Uses coverage feedback to iteratively refine and evolve test inputs toward uncovering edge cases and defects.
  • Supports end-to-end testing across diverse DNN architectures and datasets, including MNIST, CIFAR-10, and ImageNet.

Experimental results

Research questions

  • RQ1Can coverage-guided fuzzing significantly improve test coverage in general-purpose DNNs?
  • RQ2How effective is DeepHunter in detecting erroneous behaviors in DNNs across different architectures and datasets?
  • RQ3To what extent can DeepHunter identify defects introduced during DNN quantization for deployment on resource-constrained platforms?
  • RQ4How do multiple coverage criteria compare in guiding effective test generation for DNNs?
  • RQ5Can DeepHunter scale to practical-sized DNNs while maintaining high detection efficiency?

Key findings

  • DeepHunter significantly boosts coverage across 7 diverse DNNs using 6 different coverage criteria, demonstrating the effectiveness of feedback-driven test generation.
  • The framework successfully generates useful test cases that expose erroneous behaviors in DNNs, enabling more robust model quality evaluation.
  • DeepHunter accurately detects defects that emerge during DNN quantization, supporting reliable model migration to target platforms.
  • The batch-based test management and feedback prioritization strategy enable scalability to large-scale DNNs without sacrificing detection capability.
  • Experiments on MNIST, CIFAR-10, and ImageNet confirm consistent performance improvements across datasets and model complexities.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.