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

重新审视DNN测试的神经元覆盖:逐层分布感知准则

Revisiting Neuron Coverage for DNN Testing: A Layer-Wise and Distribution-Aware Criterion

The Hong Kong University of Science and Technology(香港科技大学)

Yuanyuan Yuan, Qi Pang, Shuai Wang

摘要:

已经提出了各种深度神经网络(DNN)覆盖标准来评估DNN测试输入和引导输入突变。覆盖率通过具有某些输出的神经元或神经元输出之间的差异来表征。然而,最近的研究表明,神经元覆盖标准与测试集质量几乎没有相关性。一般来说,DNN通过合并分层来近似分布,以对输入进行预测。因此,我们支持从层的角度基于其近似分布来推断DNN行为。测试套件应使用其诱导层输出分布进行评估。因此,为了全面检查DNN行为,输入变异应该指向使近似分布多样化。本文总结了DNN覆盖标准的八个设计要求,考虑到分布特性和实际问题。然后,我们提出了一个新的标准,神经覆盖(NLC),满足所有的设计要求。NLC将单个DNN层视为基本计算单元(而不是单个神经元),并捕获神经元输出分布的四个关键属性。因此,NLC准确地描述了DNN如何通过近似分布来理解输入。我们证明,NLC是显着相关的测试套件的多样性,在一些任务(分类和生成)和数据格式(图像和文本)。它发现DNN预测错误的能力很有前途。NLC引导的测试输入变异导致暴露的错误行为的更大质量和多样性。

英文摘要:

Various deep neural network (DNN) coverage criteria have been proposed to assess DNN test inputs and steer input mutations. The coverage is characterized via neurons having certain outputs, or the discrepancy between neuron outputs. Nevertheless, recent research indicates that neuron coverage criteria show little correlation with test suite quality. In general, DNNs approximate distributions, by incorporating hierarchical layers, to make predictions for inputs. Thus, we champion to deduce DNN behaviors based on its approximated distributions from a layer perspective. A test suite should be assessed using its induced layer output distributions. Accordingly, to fully examine DNN behaviors, input mutation should be directed toward diversifying the approximated distributions. This paper summarizes eight design requirements for DNN coverage criteria, taking into account distribution properties and practical concerns. We then propose a new criterion, NeuraL Coverage (NLC), that satisfies all design requirements. NLC treats a single DNN layer as the basic computational unit (rather than a single neuron) and captures four critical properties of neuron output distributions. Thus, NLC accurately describes how DNNs comprehend inputs via approximated distributions. We demonstrate that NLC is significantly correlated with the diversity of a test suite across a number of tasks (classification and generation) and data formats (image and text). Its capacity to discover DNN prediction errors is promising. Test input mutation guided by NLC results in a greater quality and diversity of exposed erroneous behaviors.

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

↑