Optimizing Neural Network Testing with Test Theory

Yifei Liu, Yinxiao Miao, Ping Yang, Tianqi Wan, Xiujian Zhang, Long Zhang · 2024

Since 2017, researches on neural network (NN) testing adequacy criteria have rapidly emerged, which characterize different aspects of NNs to define the quality of the tests. Most existing studies focus on structural coverage metrics, but these criteria have a low correlation with neural network quality, robustness, and other attributes; the test data generation based on these criteria is often incremental without considering the distribution of test data. Inspired by the item analysis (IA) process in test theory (TT), this paper designs four test item adequacy criteria for neural networks, including item difficulty coverage, difficulty block coverage, discrimination coverage, and model capability coverage, which firstly links the test theory with neural network test adequacy, which provides a new perspective for the design of test adequacy criteria and test set optimization. In this paper, we prepared more than 1500 trained neural network models for systematically analyzing the characteristics of neural network tests, which reveals the shortcomings of the existing test sets in item difficulty and differentiation. An optimization method for neural network testing is established based on project difficulty distribution. Experiments are conducted in this essay to verify the effectiveness of our scheme and the availability of the test item adequacy criteria.

Read the paper · More papers on PaperTik