Skip to main content
QUICK REVIEW

[Paper Review] DeepHunter: Hunting Deep Neural Network Defects via Coverage-Guided Fuzzing

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

DeepHunter is a coverage-guided fuzzing framework that systematically detects defects in deep neural networks (DNNs) by generating semantically preserved test inputs through metamorphic mutation and guiding test generation with six plugable, multi-granularity coverage criteria. It significantly improves test coverage and detects model errors, including those introduced during 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

  • Address the lack of scalable, automated testing frameworks for deep neural network (DNN) software quality assurance.
  • Overcome limitations of traditional fuzzing in DNNs by designing a DNN-aware mutation strategy that preserves input semantics.
  • Enable feedback-guided test generation using multiple coverage criteria to enhance test diversity and defect detection.
  • Investigate the effectiveness of various coverage criteria in guiding fuzzing for DNN quality evaluation and defect detection.
  • Demonstrate scalability and effectiveness on real-world datasets and complex models like ResNet-50

Proposed method

  • Employs metamorphic mutation to generate new test inputs that preserve semantic meaning while introducing variations, ensuring validity and diversity.
  • Maintains a batch of test inputs to enable parallel execution and improve throughput during fuzzing.
  • Introduces a plugable feedback architecture with six distinct neuron coverage criteria at different granularities (e.g., neuron, layer, filter-level coverage).
  • Uses active feedback from coverage criteria to guide mutation strategies, prioritizing test cases that explore new or under-explored regions of the model’s behavior.
  • Leverages coverage feedback to dynamically adjust mutation operations, increasing the likelihood of triggering edge-case or erroneous behaviors.
  • Supports large-scale evaluation on MNIST, CIFAR-10, and ImageNet with diverse DNN architectures, including ResNet-50

Experimental results

Research questions

  • RQ1Can coverage-guided fuzzing effectively enhance test coverage in deep neural networks using multiple, multi-granularity coverage criteria?
  • RQ2How do different coverage criteria influence the efficiency and effectiveness of DNN fuzzing in detecting model defects?
  • RQ3To what extent can DeepHunter detect erroneous behaviors during DNN development and quantization for platform migration?
  • RQ4Can the framework scale to large, real-world DNNs and datasets such as ImageNet and ResNet-50?
  • RQ5How does DeepHunter compare to existing approaches like TensorFuzz in terms of test diversity, coverage, and defect detection capability?

Key findings

  • DeepHunter significantly boosts coverage across all six tested coverage criteria, demonstrating the effectiveness of feedback-guided mutation.
  • The framework successfully detects erroneous behaviors in DNNs, including model failures during quantization, which are critical for deployment on edge devices.
  • Metamorphic mutation with semantic preservation generates valid, diverse inputs that are more effective than random or syntactic mutations.
  • The use of multiple, plugable coverage criteria enables more comprehensive exploration of model behavior compared to single-metric feedback.
  • DeepHunter scales effectively to large models like ResNet-50 and datasets like ImageNet, enabling large-scale empirical evaluation.
  • The framework outperforms existing approaches like TensorFuzz by supporting diverse mutation types and multi-faceted feedback, leading to broader defect detection

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.