[Paper Review] Evaluating the Robustness of Test Selection Methods for Deep Neural Networks
This paper evaluates the robustness of 11 test selection methods for deep neural networks, identifying critical failures in fault detection and performance estimation methods under adversarial test data. It shows that methods relying on model uncertainty or intermediate layer outputs fail dramatically—dropping test coverage by up to 86.85%—and can even underperform random selection when inappropriate layers are chosen, leading to ineffective model repair and inaccurate performance estimation.
Testing deep learning-based systems is crucial but challenging due to the required time and labor for labeling collected raw data. To alleviate the labeling effort, multiple test selection methods have been proposed where only a subset of test data needs to be labeled while satisfying testing requirements. However, we observe that such methods with reported promising results are only evaluated under simple scenarios, e.g., testing on original test data. This brings a question to us: are they always reliable? In this paper, we explore when and to what extent test selection methods fail for testing. Specifically, first, we identify potential pitfalls of 11 selection methods from top-tier venues based on their construction. Second, we conduct a study on five datasets with two model architectures per dataset to empirically confirm the existence of these pitfalls. Furthermore, we demonstrate how pitfalls can break the reliability of these methods. Concretely, methods for fault detection suffer from test data that are: 1) correctly classified but uncertain, or 2) misclassified but confident. Remarkably, the test relative coverage achieved by such methods drops by up to 86.85%. On the other hand, methods for performance estimation are sensitive to the choice of intermediate-layer output. The effectiveness of such methods can be even worse than random selection when using an inappropriate layer.
Motivation & Objective
- To investigate the robustness of existing test selection methods for deep neural networks under non-standard or adversarial test data.
- To identify design-level pitfalls in fault detection and performance estimation methods that compromise their reliability.
- To empirically evaluate how these pitfalls degrade method effectiveness across diverse datasets and model architectures.
- To provide actionable guidelines for developing and evaluating more robust test selection methods in practice.
Proposed method
- Conducted a survey of 11 test selection methods from top-tier venues, categorizing them into fault detection and performance estimation types.
- Analyzed design-level vulnerabilities in these methods, particularly their reliance on model confidence, output entropy, or intermediate layer representations.
- Designed a genetic algorithm-based test generation approach to create adversarial test data that expose method failures, including correctly classified high-uncertainty and misclassified low-uncertainty samples.
- Evaluated method performance across five datasets (e.g., CIFAR100, Traffic-sign) using two model architectures per dataset, measuring test coverage and model repair effectiveness.
- Compared results across different intermediate layers for performance estimation methods to assess layer-sensitivity.
- Used labeling budgets of 50 and 180 to evaluate performance estimation accuracy and compare against random selection.
Experimental results
Research questions
- RQ1Under what conditions do fault detection methods fail, and how severely does their effectiveness degrade?
- RQ2How do test data with high uncertainty but correct predictions or low uncertainty but misclassifications affect test selection reliability?
- RQ3To what extent do performance estimation methods depend on the choice of intermediate layer for feature representation?
- RQ4Can performance estimation methods underperform random selection, and if so, under what conditions?
- RQ5What are the practical implications of these failures for model repair via retraining?
Key findings
- Fault detection methods suffer a 52.49% average drop in effectiveness when encountering correctly classified but high-uncertainty data.
- Fault detection methods suffer a 39.80% average drop in effectiveness when encountering misclassified but low-uncertainty data.
- In model repair scenarios, test selection methods like PRIMA, TestRank, and DSA perform worse than random selection when exposed to Type 1 and Type 2 data, with up to 5.02% accuracy degradation.
- Performance estimation methods can be worse than random selection when using an inappropriate intermediate layer, with CES-2 and PACE-1 showing worse results than random on certain configurations.
- The effectiveness of performance estimation methods is highly sensitive to layer choice, with optimal layers varying across datasets and models.
- Up to 80% of repaired models showed degraded performance when using faulty test data selected by non-robust methods, highlighting the risk of wasted labeling effort and model degradation.
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.