首页 | 本学科首页   官方微博 | 高级检索  
     

Deep-SBFL:基于频谱的深度神经网络缺陷定位方法
引用本文:李铮,崔展齐,陈翔,王荣存,刘建宾,郑丽伟.Deep-SBFL:基于频谱的深度神经网络缺陷定位方法[J].软件学报,2023,34(5):2231-2250.
作者姓名:李铮  崔展齐  陈翔  王荣存  刘建宾  郑丽伟
作者单位:北京信息科技大学 计算机学院, 北京 100101;南通大学 信息科学技术学院, 江苏 南通 226019;中国矿业大学 计算机科学与技术学院, 江苏 徐州 221116
基金项目:江苏省前沿引领技术基础研究专项(BK20202001);国家自然科学基金(61702041);江苏省自然科学基金面上项目(BK20181353);北京信息科技大学“勤信人才”培育计划(QXTCPC201906)
摘    要:深度神经网络已经在自动驾驶和智能医疗等领域取得了广泛的应用.与传统软件一样,深度神经网络也不可避免地包含缺陷,如果做出错误决定,可能会造成严重后果.因此,深度神经网络的质量保障受到了广泛关注.然而,深度神经网络与传统软件存在较大差异,传统软件质量保障方法无法直接应用于深度神经网络,需要设计有针对性的质量保障方法.软件缺陷定位是保障软件质量的重要方法之一,基于频谱的缺陷定位方法在传统软件的缺陷定位中取得了很好的效果,但无法直接应用于深度神经网络.在传统软件缺陷定位方法的基础上提出了一种基于频谱的深度神经网络缺陷定位方法 Deep-SBFL.该方法首先通过收集深度神经网络的神经元输出信息和预测结果作为频谱信息;然后将频谱信息进行处理作为贡献信息,以用于量化神经元对预测结果所做的贡献;最后提出了针对深度神经网络缺陷定位的怀疑度公式,基于贡献信息计算深度神经网络中神经元的怀疑度并进行排序,以找出最有可能存在缺陷的神经元.为验证该方法的有效性,以EInspect@n (结果排序列表前n个位置内成功定位的缺陷数)和EXAM (在找到缺陷元素之前必须检查元素的百分比)作为评测指...

关 键 词:软件质量保障  软件缺陷定位  深度神经网络(DNN)  频谱  怀疑度
收稿时间:2020/12/21 0:00:00
修稿时间:2021/2/24 0:00:00

Deep-SBFL: Spectrum-based Fault Localization Approach for Deep Neural Networks
LI Zheng,CUI Zhan-Qi,CHEN Xiang,WANG Rong-Cun,LIU Jian-Bin,ZHENG Li-Wei.Deep-SBFL: Spectrum-based Fault Localization Approach for Deep Neural Networks[J].Journal of Software,2023,34(5):2231-2250.
Authors:LI Zheng  CUI Zhan-Qi  CHEN Xiang  WANG Rong-Cun  LIU Jian-Bin  ZHENG Li-Wei
Affiliation:School of Computer Science, Beijing Information Science and Technology University, Beijing 100101, China;School of Information Science and Technology, Nantong University, Nantong 226019, China;School of Computer Science and Technology, China University of Mining and Technology, Xuzhou 221116, China
Abstract:Deep neural networks have been widely used in fields such as autonomous driving and smart healthcare. Like traditional software, deep neural networks inevitably contain defects, and it may cause serious consequences if they make wrong decisions. Therefore, the quality assurance of deep neural networks has received extensive attention. However, deep neural networks are quite different from traditional software. Traditional software quality assurance methods cannot be directly applied to deep neural networks, and targeted quality assurance methods need to be designed. Software fault localization is one of the important methods to ensure software quality. The spectrum-based fault localization method has achieved good results in traditional software fault localization methods, but it cannot be directly applied to deep neural networks. In this study, based on the traditional software fault localization methods, a spectrum-based fault localization approach named Deep-SBFL for deep neural network is proposed. The approach firstly collects the neuron output information and the prediction results of deep neural network as the spectrum. The spectrum is then further calculated as the contribution information, which can be used to quantify the contribution of neurons to the predicted results. Finally, a suspicious formula for the defect localization of deep neural network is proposed. Based on the contribution information, the suspiciousness scores of neurons in deep neural network are calculated and ranked to find out the most likely defective neurons. To verify the effectiveness of the method, EInspect@n (the number of defects successfully located by inspecting the first n positions of the sorted list) and EXAM (the percentage of elements that must be checked before finding defect elements) are evaluated on a deep neural network trained by the MNIST data set. Experimental results show that this approach can effectively locate different types of defects in deep neural networks.
Keywords:software quality assurance  software fault localization  deep neural networks (DNN)  spectrum  suspiciousness scores
点击此处可从《软件学报》浏览原始摘要信息
点击此处可从《软件学报》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号