Black-Box Testing of Deep Neural Networks Through Test Case Diversity
Not on the map. Why?
Abstract (arXiv)
Deep Neural Networks (DNNs) have been extensively used in many areas including image processing, medical diagnostics, and autonomous driving. However, DNNs can exhibit erroneous behaviours that may lead to critical errors, especially when used in safety-critical systems. Inspired by testing techniques for traditional software systems, researchers have proposed neuron coverage criteria, as an analogy to source code coverage, to guide the testing of DNN models. Despite very active research on DNN coverage, several recent studies have questioned the usefulness of such criteria in guiding DNN testing. Further, from a practical standpoint, these criteria are white-box as they require access to the internals or training data of DNN models, which is in many contexts not feasible or convenient. In this paper, we investigate black-box input diversity metrics as an alternative to white-box coverage criteria. To this end, we first select and adapt three diversity metrics and study, in a controlled manner, their capacity to measure actual diversity in input sets. We then analyse their statistical association with fault detection using four datasets and five DNN models. We further compare diversity with state-of-the-art white-box coverage criteria. Our experiments show that relying on the diversity of image features embedded in test input sets is a more reliable indicator than coverage criteria to effectively guide the testing of DNNs. Indeed, we found that one of our selected black-box diversity metrics far outperforms existing coverage criteria in terms of fault-revealing capability and computational time. Results also confirm the suspicions that state-of-the-art coverage metrics are not adequate to guide the construction of test input sets to detect as many faults as possible with natural inputs.
Key facts. Cited by 18 papers in the map (data through 7 Oct 2026). Builds on 22 of its 95 references that are in the map. First posted on arXiv 20 Dec 2021.
Builds on
22 of 95 references.
References · 22
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
- 2018UMAP: Uniform Manifold Approximation and Projection for Dimension Reductioncited by 2,841
- 2017DeepXplore: Automated Whitebox Testing of Deep Learning Systemscited by 307
- 2017DeepTest: Automated Testing of Deep-Neural-Network-driven Autonomous Carscited by 249
- 2017Deep Reinforcement Learning framework for Autonomous Drivingcited by 224
- 2018DeepGauge: Multi-Granularity Testing Criteria for Deep Learning Systemscited by 144
- 2018Guiding Deep Learning System Testing using Surprise Adequacycited by 123
- 2019Misbehaviour Prediction for Autonomous Driving Systemscited by 55
- 2018Diversity in Machine Learningcited by 48
- 2018Fair and Diverse DPP-based Data Summarizationcited by 39
- 2016Mean Deviation Similarity Index: Efficient and Reliable Full-Reference Image Quality Evaluatorcited by 32
- 2021DeepHyperion: Exploring the Feature Space of Deep Learning-Based Systems through Illumination Searchcited by 29
10 more
- 2018GDPP: Learning Diverse Generations Using Determinantal Point Processcited by 26
- 2020Importance-Driven Deep Learning System Testingcited by 24
- 2019Boosting Operational DNN Testing Efficiency through Conditioningcited by 22
- 2018An Empirical Study of Fault Localization Families and Their Combinationscited by 13
- 2013Fast Image Scanning with Deep Max-Pooling Convolutional Neural Networkscited by 11
- 2020Supporting DNN Safety Analysis and Retraining through Heatmap-based Unsupervised Learningcited by 11
- 2015Test Set Diameter: Quantifying the Diversity of Sets of Test Casescited by 10
- 2019There is Limited Correlation between Coverage and Robustness for Deep Neural Networkscited by 8
- 2019Towards Improved Testing For Deep Learningcited by 6
- 2015On Normalized Compression Distance and Large Malwarecited by 5
Built on by
Citing papers per year: 2022: 1; 2023: 4; 2024: 5; 2025: 5; 2026: 3.
18 papers.
Sort:
By area:
- 2022A Search-Based Testing Approach for Deep Reinforcement Learning Agentscited by 12
- 2023DeepGD: A Multi-Objective Black-Box Test Selection Approach for Deep Neural Networkscited by 11
- 2023SMARLA: A Safety Monitoring Approach for Deep Reinforcement Learning Agentscited by 9
- 2023Pitfalls in Language Models for Code Intelligence: A Taxonomy and Surveycited by 9
- 2025MetaSel: A Test Selection Approach for Fine-tuned DNN Modelscited by 3
- 2023GIST: Generated Inputs Sets Transferability in Deep Learningcited by 1
- 2024Can Search-Based Testing with Pareto Optimization Effectively Cover Failure-Revealing Test Inputs?cited by 1
- 2025The Pursuit of Diversity: Multi-Objective Testing of Deep Reinforcement Learning Agentscited by 1
- 2026A Highly Efficient Diversity-based Input Selection for DNN Improvement Using VLMscited by 1
- 2024Effective Black Box Testing of Sentiment Analysis Classification Networkscited by 0
- 2024Robust Black-box Testing of Deep Neural Networks using Co-Domain Coveragecited by 0
- 2024LeCov: Multi-level Testing Criteria for Large Language Modelscited by 0
6 more
- 2024DiffGAN: A Test Generation Approach for Differential Testing of Deep Neural Networks for Image Analysiscited by 0
- 2025Towards Understanding Deep Learning Model in Image Recognition via Coverage Testcited by 0
- 2025TopoMap: A Feature-based Semantic Discriminator of the Topographical Regions in the Test Input Spacecited by 0
- 2025Fuzzing the brain: Automated stress testing for the safety of ML-driven neurostimulationcited by 0
- 2026Towards Reliable Testing of Machine Unlearningcited by 0
- 2026CAFD: Concept-Aware DNN Fault Detection using VLMscited by 0
- 2026CAFD: Concept-Aware DNN Fault Detection using VLMs19 May 2026
- 2026Towards Reliable Testing of Machine Unlearning16 Apr 2026
- 2026A Highly Efficient Diversity-based Input Selection for DNN Improvement Using VLMs12 Jan 2026
- 2025Fuzzing the brain: Automated stress testing for the safety of ML-driven neurostimulation5 Dec 2025
- 2025The Pursuit of Diversity: Multi-Objective Testing of Deep Reinforcement Learning Agents16 Oct 2025
- 2025TopoMap: A Feature-based Semantic Discriminator of the Topographical Regions in the Test Input Space3 Sep 2025
- 2025Towards Understanding Deep Learning Model in Image Recognition via Coverage Test12 May 2025
- 2025MetaSel: A Test Selection Approach for Fine-tuned DNN Models21 Mar 2025
- 2024DiffGAN: A Test Generation Approach for Differential Testing of Deep Neural Networks for Image Analysis15 Oct 2024
- 2024Can Search-Based Testing with Pareto Optimization Effectively Cover Failure-Revealing Test Inputs?15 Oct 2024
- 2024LeCov: Multi-level Testing Criteria for Large Language Models20 Aug 2024
- 2024Robust Black-box Testing of Deep Neural Networks using Co-Domain Coverage13 Aug 2024
6 more
- 2024Effective Black Box Testing of Sentiment Analysis Classification Networks30 Jul 2024
- 2023GIST: Generated Inputs Sets Transferability in Deep Learning1 Nov 2023
- 2023Pitfalls in Language Models for Code Intelligence: A Taxonomy and Survey27 Oct 2023
- 2023SMARLA: A Safety Monitoring Approach for Deep Reinforcement Learning Agents3 Aug 2023
- 2023DeepGD: A Multi-Objective Black-Box Test Selection Approach for Deep Neural Networks8 Mar 2023
- 2022A Search-Based Testing Approach for Deep Reinforcement Learning Agents15 Jun 2022
- 2026Towards Reliable Testing of Machine Unlearningcited by 0
- 2026Towards Reliable Testing of Machine Unlearning16 Apr 2026
- 2022A Search-Based Testing Approach for Deep Reinforcement Learning Agentscited by 12
- 2023DeepGD: A Multi-Objective Black-Box Test Selection Approach for Deep Neural Networkscited by 11
- 2023SMARLA: A Safety Monitoring Approach for Deep Reinforcement Learning Agentscited by 9
- 2023Pitfalls in Language Models for Code Intelligence: A Taxonomy and Surveycited by 9
- 2025MetaSel: A Test Selection Approach for Fine-tuned DNN Modelscited by 3
- 2023GIST: Generated Inputs Sets Transferability in Deep Learningcited by 1
- 2024Can Search-Based Testing with Pareto Optimization Effectively Cover Failure-Revealing Test Inputs?cited by 1
- 2025The Pursuit of Diversity: Multi-Objective Testing of Deep Reinforcement Learning Agentscited by 1
- 2026A Highly Efficient Diversity-based Input Selection for DNN Improvement Using VLMscited by 1
- 2024Effective Black Box Testing of Sentiment Analysis Classification Networkscited by 0
- 2024Robust Black-box Testing of Deep Neural Networks using Co-Domain Coveragecited by 0
- 2024LeCov: Multi-level Testing Criteria for Large Language Modelscited by 0
12 most cited of 17 All 17 (JSON)
- 2026CAFD: Concept-Aware DNN Fault Detection using VLMs19 May 2026
- 2026A Highly Efficient Diversity-based Input Selection for DNN Improvement Using VLMs12 Jan 2026
- 2025Fuzzing the brain: Automated stress testing for the safety of ML-driven neurostimulation5 Dec 2025
- 2025The Pursuit of Diversity: Multi-Objective Testing of Deep Reinforcement Learning Agents16 Oct 2025
- 2025TopoMap: A Feature-based Semantic Discriminator of the Topographical Regions in the Test Input Space3 Sep 2025
- 2025Towards Understanding Deep Learning Model in Image Recognition via Coverage Test12 May 2025
- 2025MetaSel: A Test Selection Approach for Fine-tuned DNN Models21 Mar 2025
- 2024DiffGAN: A Test Generation Approach for Differential Testing of Deep Neural Networks for Image Analysis15 Oct 2024
- 2024Can Search-Based Testing with Pareto Optimization Effectively Cover Failure-Revealing Test Inputs?15 Oct 2024
- 2024LeCov: Multi-level Testing Criteria for Large Language Models20 Aug 2024
- 2024Robust Black-box Testing of Deep Neural Networks using Co-Domain Coverage13 Aug 2024
- 2024Effective Black Box Testing of Sentiment Analysis Classification Networks30 Jul 2024
12 newest of 17 All 17 (JSON)