arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.18987cs.AIcs.NEcs.SE
收藏

深度神经网络中有效故障定位的路径分析

Path Analysis for Effective Fault Localization in Deep Neural Networks

School of Computer Engineering, Iran University of Science and Technology(伊朗科学技术大学计算机工程学院)

Soroush Hashemifar, Saeed Parsa, Akram Kalaee

AI总结:

针对传统故障定位方法忽略神经通路传播导致检测不精确的问题,提出NP-SBFL-MGA方法,利用LRP识别故障神经通路并结合多阶段梯度上升技术,在MNIST和CIFAR-10上显著提升了故障检测率和对抗输入生成效果。

摘要:

深度学习已经彻底改变了众多领域,然而由于复杂性和数据依赖性,深度神经网络(DNN)的可靠性仍然是一个令人关注的问题。传统的软件故障定位方法,例如基于频谱的故障定位(SBFL),已经被改造以适用于DNN,但在有效性方面往往存在不足。这些方法通常忽略了故障通过神经通路的传播,导致故障检测不够精确。研究表明,检查神经通路而不是单个神经元至关重要,因为一个神经元的问题会影响其整个通路。通过研究这些相互连接的通路,我们可以更好地识别和解决由神经元集体活动引起的问题。为了解决这一局限性,我们引入了NP-SBFL方法,该方法利用逐层相关性传播(LRP)来识别关键的故障神经通路。我们的方法探索多个故障源,通过分析它们的相互连接来准确定位故障神经元。此外,我们的多阶段梯度上升(MGA)技术作为梯度上升(GA)的扩展,能够实现顺序神经元激活以增强故障检测。我们在完善的MNIST和CIFAR-10数据集上评估了NP-SBFL-MGA,并将其与DeepFault和NP-SBFL-GA等其他方法,以及三种神经元度量方法:Tarantula、Ochiai和Barinel进行了比较。我们的评估利用了所有训练和测试样本(MNIST为60,000个,CIFAR-10为50,000个),结果显示NP-SBFL-MGA在识别可疑通路和生成对抗性输入方面显著优于基线方法。值得注意的是,结合NP-SBFL-MGA的Tarantula达到了96.75%的显著故障检测率,而DeepFault仅为89.90%。NP-SBFL-MGA突出了关键路径覆盖与DNN故障定位中失败测试数量之间的强相关性。

英文摘要:

Deep learning has revolutionized numerous fields, yet the reliability of Deep Neural Networks (DNNs) remains a concern due to their complexity and data dependency. Traditional software fault localization methods, such as Spectrum-based Fault Localization (SBFL), have been adapted for DNNs but often fall short in effectiveness. These methods typically overlook the propagation of faults through neural pathways, resulting in less precise fault detection. Research indicates that examining neural pathways, rather than individual neurons, is crucial because issues in one neuron can affect its entire pathway. By investigating these interconnected pathways, we can better identify and address problems arising from the collective activity of neurons. To address this limitation, we introduce the NP-SBFL method, which leverages Layer-wise Relevance Propagation (LRP) to identify essential faulty neural pathways. Our method explores multiple fault sources to accurately pinpoint faulty neurons by analyzing their interconnections. Additionally, our multi-stage gradient ascent (MGA) technique, an extension of gradient ascent (GA), enables sequential neuron activation to enhance fault detection. We evaluated NP-SBFL-MGA on the well-established MNIST and CIFAR-10 datasets, comparing it to other methods like DeepFault and NP-SBFL-GA, as well as three neuron measures: Tarantula, Ochiai, and Barinel. Our evaluation utilized all training and test samples (60,000 for MNIST and 50,000 for CIFAR-10) and revealed that NP-SBFL-MGA significantly outperformed the baselines in identifying suspicious pathways and generating adversarial inputs. Notably, Tarantula with NP-SBFL-MGA achieved a remarkable 96.75% fault detection rate compared to DeepFault's 89.90%. NP-SBFL-MGA highlights a strong correlation between critical path coverage and the number of failed tests in DNN fault localization.

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

↑