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

NPC:通过表征深度神经网络的决策逻辑实现神经元路径覆盖

NPC: Neuron Path Coverage via Characterizing Decision Logic of Deep Neural Networks

Singapore Management University(新加坡管理大学);Nanyang Technological University(南洋理工大学);Kyushu University(九州大学);Alibaba Group(阿里巴巴集团);Zhejiang Sci-Tech University(浙江理工大学)

Xiaofei Xie, Tianlin Li, Jian Wang, Lei Ma, Qing Guo, Felix Juefei-Xu, Yang Liu

摘要:

深度学习最近已被广泛应用于跨不同领域的许多应用,例如,图像分类和音频识别。然而,深度神经网络(DNN)的质量在实际操作环境中仍然引起关注,这需要进行系统测试,特别是在安全关键场景中。受软件测试的启发,设计并提出了一些结构覆盖准则来衡量DNN的测试充分性。然而,由于DNN的黑盒性质,现有的结构覆盖标准很难解释,因此很难理解这些标准的基本原理。DNN的结构覆盖和决策逻辑之间的关系是未知的。此外,最近的研究进一步揭示了结构覆盖率和DNN缺陷检测之间不存在相关性,这进一步引发了对合适的DNN测试标准的关注。在本文中,我们提出了可解释的覆盖标准,通过构建DNN的决策结构。模仿传统程序的控制流图,我们首先基于其解释从DNN中提取决策图,其中决策图的路径表示DNN的决策逻辑。基于决策图的控制流和数据流,我们提出了两种不同的路径覆盖率来度量测试用例在执行决策逻辑时的充分性。路径覆盖率越高,DNN预计将探索的决策逻辑就越多样化。我们的大规模评估结果表明:决策图中的路径在表征DNN的决策方面是有效的,并且所提出的覆盖标准对包括自然错误和对抗性示例在内的错误也是敏感的,并且与输出公正性强相关。

英文摘要:

Deep learning has recently been widely applied to many applications across different domains, e.g., image classification and audio recognition. However, the quality of Deep Neural Networks (DNNs) still raises concerns in the practical operational environment, which calls for systematic testing, especially in safety-critical scenarios. Inspired by software testing, a number of structural coverage criteria are designed and proposed to measure the test adequacy of DNNs. However, due to the blackbox nature of DNN, the existing structural coverage criteria are difficult to interpret, making it hard to understand the underlying principles of these criteria. The relationship between the structural coverage and the decision logic of DNNs is unknown. Moreover, recent studies have further revealed the non-existence of correlation between the structural coverage and DNN defect detection, which further posts concerns on what a suitable DNN testing criterion should be. In this paper, we propose the interpretable coverage criteria through constructing the decision structure of a DNN. Mirroring the control flow graph of the traditional program, we first extract a decision graph from a DNN based on its interpretation, where a path of the decision graph represents a decision logic of the DNN. Based on the control flow and data flow of the decision graph, we propose two variants of path coverage to measure the adequacy of the test cases in exercising the decision logic. The higher the path coverage, the more diverse decision logic the DNN is expected to be explored. Our large-scale evaluation results demonstrate that: the path in the decision graph is effective in characterizing the decision of the DNN, and the proposed coverage criteria are also sensitive with errors including natural errors and adversarial examples, and strongly correlated with the output impartiality.

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

↑