arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.15698cs.SEcs.AI
收藏

重新思考深度神经网络测试中的多样性

Rethinking Diversity in Deep Neural Network Testing

University of Wisconsin-Madison(威斯康星大学麦迪逊分校);Visa Research(维萨研究中心)

Zi Wang, Jihye Choi, Ke Wang, Somesh Jha

AI总结:

本文提出将深度神经网络测试从多样性导向转为定向测试,推导六种定向度量,并证明其在发现错误行为上始终优于多样性度量。

摘要:

受传统软件测试成功的启发,人们已经提出了大量用于测试深度神经网络(DNNs)的多样性度量。在本研究中,我们提出一种视角转变,主张将 DNN 测试视为定向测试问题,而不是基于多样性的测试任务。我们注意到,测试 DNN 的目标是具体且明确的:识别导致错误分类的输入。因此,一种更精确的测试方法是优先考虑那些更有可能引发错误分类的输入,而不是强调那些提升“多样性”的输入。我们推导出六种用于 DNN 测试的定向度量。此外,我们对每种度量的适用范围进行了仔细分析,因为超出其预期范围应用度量可能会显著降低其有效性。我们的评估表明:(1)多样性度量在识别由微小输入扰动引起的缺陷输入方面是特别弱的指标;(2)在所有场景中,我们的定向度量在揭示 DNN 的错误行为方面始终优于多样性度量。

英文摘要:

Motivated by the success of traditional software testing, numerous diversity measures have been proposed for testing deep neural networks (DNNs). In this study, we propose a shift in perspective, advocating for the consideration of DNN testing as directed testing problems rather than diversity-based testing tasks. We note that the objective of testing DNNs is specific and well-defined: identifying inputs that lead to misclassifications. Consequently, a more precise testing approach is to prioritize inputs with a higher potential to induce misclassifications, as opposed to emphasizing inputs that enhance "diversity." We derive six directed metrics for DNN testing. Furthermore, we conduct a careful analysis of the appropriate scope for each metric, as applying metrics beyond their intended scope could significantly diminish their effectiveness. Our evaluation demonstrates that (1) diversity metrics are particularly weak indicators for identifying buggy inputs resulting from small input perturbations, and (2) our directed metrics consistently outperform diversity metrics in revealing erroneous behaviors of DNNs across all scenarios.

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

↑