Skip to main content
QUICK REVIEW

[Paper Review] CAGFuzz: Coverage-Guided Adversarial Generative Fuzzing Testing of Deep Learning Systems

Pengcheng Zhang, Qiyin Dai|arXiv (Cornell University)|Nov 14, 2019
Adversarial Robustness in Machine LearningComputer Science52 references6 citations
TL;DR

CAGFuzz is a coverage-guided adversarial generative fuzzing framework that improves deep learning system testing by training a general-purpose Adversarial Example Generator (AEG) on data distributions, using deep feature constraints (cosine similarity) to preserve semantic meaning while generating imperceptible perturbations. It achieves higher neuron coverage, detects hidden errors, and improves DNN accuracy across standard datasets.

ABSTRACT

Deep Learning systems (DL) based on Deep Neural Networks (DNNs) are more and more used in various aspects of our life, including unmanned vehicles, speech processing, and robotics. However, due to the limited dataset and the dependence on manual labeling data, DNNs often fail to detect their erroneous behaviors, which may lead to serious problems. Several approaches have been proposed to enhance the input examples for testing DL systems. However, they have the following limitations. First, they design and generate adversarial examples from the perspective of model, which may cause low generalization ability when they are applied to other models. Second, they only use surface feature constraints to judge the difference between the adversarial example generated and the original example. The deep feature constraints, which contain high-level semantic information, such as image object category and scene semantics are completely neglected. To address these two problems, in this paper, we propose CAGFuzz, a Coverage-guided Adversarial Generative Fuzzing testing approach, which generates adversarial examples for a targeted DNN to discover its potential defects. First, we train an adversarial case generator (AEG) from the perspective of general data set. Second, we extract the depth features of the original and adversarial examples, and constrain the adversarial examples by cosine similarity to ensure that the semantic information of adversarial examples remains unchanged. Finally, we retrain effective adversarial examples to improve neuron testing coverage rate. Based on several popular data sets, we design a set of dedicated experiments to evaluate CAGFuzz. The experimental results show that CAGFuzz can improve the neuron coverage rate, detect hidden errors, and also improve the accuracy of the target DNN.

Motivation & Objective

  • To address the lack of generalizability in existing adversarial example generation techniques that are model-specific.
  • To overcome the limitation of shallow pixel-level constraints by incorporating high-level semantic deep features.
  • To improve neuron coverage and detect hidden defects in DNNs during development and deployment.
  • To generate natural, imperceptible adversarial examples that maintain semantic consistency through deep feature similarity.
  • To enhance DNN robustness by retraining with adversarially generated examples.

Proposed method

  • Train an Adversarial Example Generator (AEG) on general datasets without relying on specific DNN architectures.
  • Use cosine similarity between deep features of original and adversarial examples to constrain semantic consistency.
  • Apply small, imperceptible perturbations to original inputs to generate adversarial examples.
  • Use neuron coverage as feedback to guide iterative generation and maximize coverage.
  • Retrain the target DNN using generated adversarial examples to improve robustness.
  • Leverage domain adaptation techniques to map between data domains for effective perturbation injection.

Experimental results

Research questions

  • RQ1Can adversarial examples generated with general-purpose data-based training achieve better cross-model generalization than model-specific methods?
  • RQ2Does constraining adversarial examples using deep features (e.g., via cosine similarity) preserve semantic meaning better than pixel-level constraints?
  • RQ3Can coverage-guided adversarial fuzzing with deep feature constraints detect more hidden errors in DNNs?
  • RQ4To what extent does retraining with CAGFuzz-generated examples improve DNN accuracy and robustness?
  • RQ5How does CAGFuzz compare to existing approaches like DeepHunter and DeepTest in terms of coverage and error detection?

Key findings

  • CAGFuzz significantly improves neuron coverage across multiple standard datasets, demonstrating effective exploration of DNN activation space.
  • The method detects thousands of previously undetected erroneous behaviors in advanced DNN models.
  • Adversarial examples generated by CAGFuzz maintain high semantic similarity to original inputs, as validated by deep feature constraints.
  • Retraining with CAGFuzz-generated examples leads to measurable improvements in DNN accuracy.
  • The approach outperforms existing methods such as DeepHunter and DeepTest in both coverage and error detection due to better generalization and semantic preservation.
  • The use of deep feature constraints enables more effective testing of deeper network layers compared to pixel-level constraint methods.

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.