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

基于共域覆盖的深度神经网络鲁棒黑盒测试

Robust Black-box Testing of Deep Neural Networks using Co-Domain Coverage

IIT Kanpur(印度理工学院坎普尔分校)

Aishwarya Gupta, Indranil Saha, Piyush Rai

AI总结:

针对现有DNN测试方法多为白盒、无法捕捉神经元集体影响的问题,提出黑盒覆盖准则CDC及模糊测试方法CoDoFuzz,经6个公开数据集验证,其生成误分类和低置信度输入的效率与效果更优。

摘要:

对机器学习模型开展严格测试是实现可信部署的必要前提。本文提出一种新型黑盒方法,可生成用于深度神经网络(DNN)鲁棒性测试的测试集。现有大多数方法通过最大化某种“覆盖”准则/指标(如测试输入激活的神经元比例)来生成测试输入,但这类方法只能孤立分析单个神经元的行为或单层输出,无法捕捉其对DNN输出的集体影响,导致生成的测试集往往无法充分覆盖DNN的各类失效模式。此外,这类方法需要白盒访问权限,即能够获取DNN的内部信息(节点激活值)。\n本文提出一种名为共域覆盖(Co-Domain Coverage,CDC)的新型黑盒覆盖准则,该准则以模型输出为函数进行定义,因此能够考量模型的端到端行为。随后,本文开发了名为CoDoFuzz的新型模糊测试流程,该流程利用CDC引导模糊测试过程,为DNN生成测试集。\n本文针对在6个公开数据集上训练的DNN,将CoDoFuzz生成的测试集与多种现有主流基于覆盖的模糊测试方法生成的测试集进行了广泛对比。实验结果证实,CoDoFuzz在生成最多数量的误分类输入以及模型对其决策缺乏置信度的输入方面,兼具效率与有效性。

英文摘要:

Rigorous testing of machine learning models is necessary for trustworthy deployments. We present a novel black-box approach for generating test-suites for robust testing of deep neural networks (DNNs). Most existing methods create test inputs based on maximizing some "coverage" criterion/metric such as a fraction of neurons activated by the test inputs. Such approaches, however, can only analyze each neuron's behavior or each layer's output in isolation and are unable to capture their collective effect on the DNN's output, resulting in test suites that often do not capture the various failure modes of the DNN adequately. These approaches also require white-box access, i.e., access to the DNN's internals (node activations). We present a novel black-box coverage criterion called Co-Domain Coverage (CDC), which is defined as a function of the model's output and thus takes into account its end-to-end behavior. Subsequently, we develop a new fuzz testing procedure named CoDoFuzz, which uses CDC to guide the fuzzing process to generate a test suite for a DNN. We extensively compare the test suite generated by CoDoFuzz with those generated using several state-of-the-art coverage-based fuzz testing methods for the DNNs trained on six publicly available datasets. Experimental results establish the efficiency and efficacy of CoDoFuzz in generating the largest number of misclassified inputs and the inputs for which the model lacks confidence in its decision.

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

↑