[Paper Review] Coverage Testing of Deep Learning Models using Dataset Characterization
This paper proposes a coverage-driven test case generation framework for deep learning models using dataset characterization, focusing on four quality dimensions—equivalence partitioning, centroid positioning, boundary conditioning, and pair-wise boundary conditioning—applied to features from the penultimate convolutional layer. The method improves model evaluation reliability by generating test cases that enhance coverage of the data distribution, leading to more trustworthy accuracy assessments, especially for high-performing models.
Deep Neural Networks (DNNs), with its promising performance, are being increasingly used in safety critical applications such as autonomous driving, cancer detection, and secure authentication. With growing importance in deep learning, there is a requirement for a more standardized framework to evaluate and test deep learning models. The primary challenge involved in automated generation of extensive test cases are: (i) neural networks are difficult to interpret and debug and (ii) availability of human annotators to generate specialized test points. In this research, we explain the necessity to measure the quality of a dataset and propose a test case generation system guided by the dataset properties. From a testing perspective, four different dataset quality dimensions are proposed: (i) equivalence partitioning, (ii) centroid positioning, (iii) boundary conditioning, and (iv) pair-wise boundary conditioning. The proposed system is evaluated on well known image classification datasets such as MNIST, Fashion-MNIST, CIFAR10, CIFAR100, and SVHN against popular deep learning models such as LeNet, ResNet-20, VGG-19. Further, we conduct various experiments to demonstrate the effectiveness of systematic test case generation system for evaluating deep learning models.
Motivation & Objective
- To address the limitations of standard test sets in evaluating deep learning models, which may not represent real-world data or the full data distribution.
- To propose a model-specific test dataset quality assessment framework that moves beyond accuracy metrics to ensure broader coverage of input space.
- To generate more representative and robust test cases by analyzing feature space properties such as centroid proximity and boundary regions.
- To demonstrate that models with higher accuracy on standard benchmarks may still lack coverage in critical regions of the feature space.
- To provide a systematic, automated method for test case generation guided by dataset and model characteristics, improving the trustworthiness of model evaluation.
Proposed method
- The method uses features from the penultimate convolutional layer of a DNN as input for test dataset analysis, enabling model-specific evaluation of data distribution.
- Four dataset quality dimensions are defined: equivalence partitioning (class distribution), centroid positioning (proximity to class cluster centers), boundary conditioning (distance to decision boundaries), and pair-wise boundary conditioning (inter-class boundary proximity).
- Test case generation is guided by sampling in the feature space based on these dimensions, with perturbations applied to generate new, representative test inputs.
- Deconvolutional networks are used to visualize and reconstruct generated feature perturbations into image space, enabling inspection of generated test cases.
- Metamorphic rules are applied to generate oracle ground truth for newly generated test cases, ensuring consistency in evaluation.
- The approach is evaluated on standard image datasets (MNIST, Fashion-MNIST, CIFAR-10, CIFAR-100, SVHN) using models like LeNet, ResNet-20, and VGG-19.
Experimental results
Research questions
- RQ1How can test dataset quality be systematically measured beyond standard accuracy metrics in deep learning models?
- RQ2To what extent do standard benchmark datasets fail to cover critical regions of the feature space, such as decision boundaries and class centroids?
- RQ3Can test case generation guided by dataset characterization improve the reliability of model evaluation?
- RQ4How does model performance on standard test sets correlate with coverage of boundary and centroid regions in the feature space?
- RQ5What is the impact of generating test cases focused on specific feature space regions (e.g., boundaries) on model accuracy and robustness?
Key findings
- ResNet-20 achieved higher accuracy on CIFAR-10 than VGG-19, but exhibited significantly lower boundary condition coverage, indicating potential blind spots in testing.
- When tested on a dataset composed solely of centroid-region samples, VGG-19’s accuracy dropped to 100% with 100% of samples, confirming that high-accuracy models can still fail on poorly distributed test sets.
- Models with high standard accuracy were less robust to test cases generated using the proposed coverage metrics, suggesting that standard benchmarks may overestimate model reliability.
- Test cases generated near decision boundaries produced low-quality visualizations, indicating that boundary regions are more challenging to represent and may require specialized handling.
- The proposed metrics revealed that even widely used datasets like CIFAR-10 and SVHN lack sufficient coverage across critical feature space regions, especially for complex models.
- The framework demonstrated that model evaluation is more trustworthy when test sets are guided by feature space coverage, not just accuracy on standard splits.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.