arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2112.12591cs.SEcs.AIcs.LG
收藏

通过测试用例多样性对深度神经网络进行黑盒测试

Black-Box Testing of Deep Neural Networks Through Test Case Diversity

University of Ottawa(渥太华大学);École de Technologie Supérieure(高等技术学院);University of Luxembourg(卢森堡大学);General Motors(通用汽车公司)

Zohreh Aghababaeyan, Manel Abdellatif, Lionel Briand, Ramesh S, Mojtaba Bagherzadeh

AI总结:

针对白盒神经元覆盖准则可获取性受限且指导效果受质疑的问题,本文评估三种黑盒输入多样性指标,证明其中一种在故障揭示能力和计算时间上显著优于现有覆盖准则。

摘要:

深度神经网络(DNN)已被广泛应用于图像处理、医疗诊断和自动驾驶等众多领域。然而,DNN可能表现出错误行为,从而导致严重错误,尤其是在用于安全攸关系统时。受传统软件系统测试技术的启发,研究人员提出了神经元覆盖准则,将其作为源代码覆盖率的类比,以指导DNN模型的测试。尽管关于DNN覆盖率的研究非常活跃,但近期若干研究质疑了此类准则在指导DNN测试方面的有效性。此外,从实际角度来看,这些准则属于白盒方法,因为它们需要访问DNN模型的内部结构或训练数据,而这在许多场景下并不可行或并不方便。本文研究黑盒输入多样性指标,以替代白盒覆盖准则。为此,我们首先选择并适配了三种多样性指标,并以受控方式研究它们衡量输入集合中实际多样性的能力。随后,我们使用四个数据集和五个DNN模型,分析这些指标与故障检测之间的统计关联。我们进一步将多样性与最先进的白盒覆盖准则进行比较。实验表明,依赖测试输入集合中嵌入的图像特征的多样性,是比覆盖准则更可靠的指标,可有效指导DNN测试。事实上,我们发现所选的一种黑盒多样性指标在故障揭示能力和计算时间方面都远优于现有覆盖准则。结果还证实了如下疑虑:最先进的覆盖指标并不适合指导测试输入集合的构建,无法利用自然输入检测尽可能多的故障。

英文摘要:

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.

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

↑