mlsanityData to 7 Oct 2026

DiffGAN: A Test Generation Approach for Differential Testing of Deep Neural Networks for Image Analysis

arXiv 2410.19794 ↗First posted 15 Oct 2024cs.CV cs.LG cs.SEcited by 0

Not on the map. Why?

Abstract (arXiv)

Deep Neural Networks (DNNs) are increasingly deployed across applications. However, ensuring their reliability remains a challenge, and in many situations, alternative models with similar functionality and accuracy are available. Traditional accuracy-based evaluations often fail to capture behavioral differences between models, especially with limited test datasets, making it difficult to select or combine models effectively. Differential testing addresses this by generating test inputs that expose discrepancies in DNN model behavior. However, existing approaches face significant limitations: many rely on model internals or are constrained by available seed inputs. To address these challenges, we propose DiffGAN, a black-box test image generation approach for differential testing of DNN models. DiffGAN leverages a Generative Adversarial Network (GAN) and the Non-dominated Sorting Genetic Algorithm II to generate diverse and valid triggering inputs that reveal behavioral discrepancies between models. DiffGAN employs two custom fitness functions, focusing on diversity and divergence, to guide the exploration of the GAN input space and identify discrepancies between models' outputs. By strategically searching this space, DiffGAN generates inputs with specific features that trigger differences in model behavior. DiffGAN is black-box, making it applicable in more situations. We evaluate DiffGAN on eight DNN model pairs trained on widely used image datasets. Our results show DiffGAN significantly outperforms a SOTA baseline, generating four times more triggering inputs, with greater diversity and validity, within the same budget. Additionally, the generated inputs improve the accuracy of a machine learning-based model selection mechanism, which selects the best-performing model based on input characteristics and can serve as a smart output voting mechanism when using alternative models.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 24 of its 77 references that are in the map. First posted on arXiv 15 Oct 2024.

Builds on

24 of 77 references.

References · 24

  1. 2016Image-to-Image Translation with Conditional Adversarial Networkscited by 4,510
  2. 2014Going Deeper with Convolutionscited by 4,231
  3. 2019Optuna: A Next-generation Hyperparameter Optimization Frameworkcited by 2,455
  4. 2015Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networkscited by 2,048
  5. 2019Interpreting the Latent Space of GANs for Semantic Face Editingcited by 691
  6. 2017DeepXplore: Automated Whitebox Testing of Deep Learning Systemscited by 307
  7. 2018GAN-based Synthetic Medical Image Augmentation for increased CNN Performance in Liver Lesion Classificationcited by 242
  8. 2020pymoo: Multi-objective Optimization in Pythoncited by 196
  9. 2018GAN Augmentation: Augmenting Training Data using Generative Adversarial Networkscited by 107
  10. 2018An empirical study on evaluation metrics of generative adversarial networkscited by 81
  11. 2019Survey on Deep Neural Networks in Speech and Vision Systemscited by 37
  12. 2021ModelDiff: Testing-Based DNN Similarity Comparison for Model Reuse Detectioncited by 33
12 more
  1. 2019Boosting Operational DNN Testing Efficiency through Conditioningcited by 22
  2. 2018QuSecNets: Quantization-based Defense Mechanism for Securing Deep Neural Network against Adversarial Attackscited by 21
  3. 2022Improving GANs with A Dynamic Discriminatorcited by 20
  4. 2021Black-Box Testing of Deep Neural Networks Through Test Case Diversitycited by 18
  5. 2022When and Why Test Generators for Deep Learning Produce Invalid Inputs: an Empirical Studycited by 18
  6. 2019DeepEvolution: A Search-Based Testing Approach for Deep Neural Networkscited by 15
  7. 2020Measures of Complexity for Large Scale Image Datasetscited by 14
  8. 2022When, Why, and Which Pretrained GANs Are Useful?cited by 14
  9. 2023DeepGD: A Multi-Objective Black-Box Test Selection Approach for Deep Neural Networkscited by 11
  10. 2022DiverGet: A Search-Based Software Testing Approach for Deep Neural Network Quantization Assessmentcited by 3
  11. 2020GANs with Variational Entropy Regularizers: Applications in Mitigating the Mode-Collapse Issuecited by 2
  12. 2021Finding Deviated Behaviors of the Compressed DNN Models for Image Classificationscited by 1

Built on by

Not cited yet.