arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1903.00661cs.SE
收藏

DeepGini:对大量测试进行优先级排序,以增强深度神经网络的鲁棒性

DeepGini: Prioritizing Massive Tests to Enhance the Robustness of Deep Neural Networks

Yang Feng, Qingkai Shi, Xinyu Gao, Jun Wan, Chunrong Fang, Zhenyu Chen

摘要:

深度神经网络(DNN)已经被部署在许多软件系统中以辅助各种分类任务。在分类方面,DNN也可能表现出不正确的行为,导致事故和损失。因此,能够检测DNN错误行为并提高DNN质量的测试技术是非常必要和关键的。然而,测试预言机,它定义了一个给定的输入正确的输出,往往是不可用的自动化测试。为了获得Oracle信息,基于DNN的系统的测试任务通常需要昂贵的人工努力来标记测试数据,这大大减慢了质量保证的过程。为了缓解这个问题,我们提出了DeepGini,这是一种基于DNN统计视角设计的测试优先级排序技术。这样的统计角度使我们能够减少测量错误分类概率的问题,测量集杂质的问题,这使我们能够快速识别可能的错误分类的测试。为了进行评估,我们对流行的数据集和流行的DNN模型进行了广泛的实证研究。实验结果表明,DeepGini在有效性和效率方面优先考虑测试方面优于现有的基于覆盖率的技术。同时,我们观察到,与基于覆盖率的技术相比,DeepGini优先考虑的前端测试在提高DNN质量方面更有效。

英文摘要:

Deep neural networks (DNN) have been deployed in many software systems to assist in various classification tasks. In company with the fantastic effectiveness in classification, DNNs could also exhibit incorrect behaviors and result in accidents and losses. Therefore, testing techniques that can detect incorrect DNN behaviors and improve DNN quality are extremely necessary and critical. However, the testing oracle, which defines the correct output for a given input, is often not available in the automated testing. To obtain the oracle information, the testing tasks of DNN-based systems usually require expensive human efforts to label the testing data, which significantly slows down the process of quality assurance. To mitigate this problem, we propose DeepGini, a test prioritization technique designed based on a statistical perspective of DNN. Such a statistical perspective allows us to reduce the problem of measuring misclassification probability to the problem of measuring set impurity, which allows us to quickly identify possibly-misclassified tests. To evaluate, we conduct an extensive empirical study on popular datasets and prevalent DNN models. The experimental results demonstrate that DeepGini outperforms existing coverage-based techniques in prioritizing tests regarding both effectiveness and efficiency. Meanwhile, we observe that the tests prioritized at the front by DeepGini are more effective in improving the DNN quality in comparison with the coverage-based techniques.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑