arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2208.06018cs.SEcs.LG
收藏

一种用于深度神经网络突变测试的概率框架

A Probabilistic Framework for Mutation Testing in Deep Neural Networks

Polytechnique Montreal(蒙特利尔理工学院)

Florian Tambon, Foutse Khomh, Giuliano Antoniol

摘要:

背景:突变测试(MT)是传统软件工程(SE)白盒测试的重要工具。它的目的是人为地在系统中注入故障,以评估测试套件的能力,以检测他们,假设测试套件的缺陷发现能力,然后将转换为真正的故障。如果说MT长期以来一直用于SE,那么直到最近它才开始引起深度学习(DL)社区的关注,研究人员对其进行了调整,以提高DL模型的可测试性并提高DL系统的可信度。目的:如果有几种技术已经提出了MT,他们中的大多数人忽略了固有的随机性DL导致的训练阶段。即使是DL中最新的MT方法,它建议通过统计方法来处理MT,也可能给出不一致的结果。事实上,由于它们的统计数据是基于一组固定的采样训练实例,因此当结果对于任何实例都应该是一致的时,它可能会导致不同实例集的结果不同。研究方法:在这项工作中,我们提出了一个概率突变测试(PMT)的方法,解决了不一致的问题,并允许一个更一致的决定是否杀死突变或不。结果如下:我们表明,PMT有效地允许一个更一致和明智的决定突变通过评估使用三种模型和8个突变算子在以前提出的MT方法。我们还分析了近似误差和我们的方法的成本之间的权衡,显示相对较小的误差可以实现一个可控的成本。结论:我们的研究结果显示了DNN中当前MT实践的局限性,需要重新思考。我们认为PMT是朝着这个方向迈出的第一步,它有效地消除了DNN训练的随机性导致的先前方法测试执行之间缺乏一致性的问题。

英文摘要:

Context: Mutation Testing (MT) is an important tool in traditional Software Engineering (SE) white-box testing. It aims to artificially inject faults in a system to evaluate a test suite's capability to detect them, assuming that the test suite defects finding capability will then translate to real faults. If MT has long been used in SE, it is only recently that it started gaining the attention of the Deep Learning (DL) community, with researchers adapting it to improve the testability of DL models and improve the trustworthiness of DL systems. Objective: If several techniques have been proposed for MT, most of them neglected the stochasticity inherent to DL resulting from the training phase. Even the latest MT approaches in DL, which propose to tackle MT through a statistical approach, might give inconsistent results. Indeed, as their statistic is based on a fixed set of sampled training instances, it can lead to different results across instances set when results should be consistent for any instance. Methods: In this work, we propose a Probabilistic Mutation Testing (PMT) approach that alleviates the inconsistency problem and allows for a more consistent decision on whether a mutant is killed or not. Results: We show that PMT effectively allows a more consistent and informed decision on mutations through evaluation using three models and eight mutation operators used in previously proposed MT methods. We also analyze the trade-off between the approximation error and the cost of our method, showing that relatively small error can be achieved for a manageable cost. Conclusion: Our results showed the limitation of current MT practices in DNN and the need to rethink them. We believe PMT is the first step in that direction which effectively removes the lack of consistency across test executions of previous methods caused by the stochasticity of DNN training.

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

↑