DeepFD:面向深度学习程序的自动故障诊断和定位
DeepFD: Automated Fault Diagnosis and Localization for Deep Learning Programs
摘要:
随着深度学习(DL)系统被广泛部署用于关键任务应用程序,调试此类系统变得至关重要。大多数现有的工作在训练的深度神经网络(DNN)上识别和修复可疑神经元,不幸的是,这可能是一个弯路。具体来说,一些现有的研究报告说,许多不满意的行为实际上是源于故障驻留在DL程序。此外,定位错误神经元对开发人员来说是不可操作的,而定位DL程序中的错误语句可以为开发人员提供更多有用的调试信息。虽然最近的一些研究提出了在DL程序或训练设置(例如,太大的学习率),他们主要是基于预定义的规则,导致许多误报或漏报,特别是当故障超出了他们的能力。鉴于这些局限性,在本文中,我们提出了DeepFD,一个基于学习的故障诊断和定位框架,它将故障定位任务映射到学习问题。特别是,它通过监测DNN模型训练过程中提取的运行时特征来推断可疑故障类型,然后在DL程序中定位诊断的故障。它通过识别DL程序中的故障的根本原因而不是神经元,并通过学习方法而不是一组硬编码的规则来诊断故障,从而克服了局限性。评估显示了DeepFD的潜力。它正确诊断了52%的错误DL程序,而最先进的作品只有大约一半(27%)。此外,对于故障定位,DeepFD也优于现有的工作,正确定位42%的故障程序,这几乎是现有工作的最佳结果(23%)的两倍。
英文摘要:
As Deep Learning (DL) systems are widely deployed for mission-critical applications, debugging such systems becomes essential. Most existing works identify and repair suspicious neurons on the trained Deep Neural Network (DNN), which, unfortunately, might be a detour. Specifically, several existing studies have reported that many unsatisfactory behaviors are actually originated from the faults residing in DL programs. Besides, locating faulty neurons is not actionable for developers, while locating the faulty statements in DL programs can provide developers with more useful information for debugging. Though a few recent studies were proposed to pinpoint the faulty statements in DL programs or the training settings (e.g. too large learning rate), they were mainly designed based on predefined rules, leading to many false alarms or false negatives, especially when the faults are beyond their capabilities. In view of these limitations, in this paper, we proposed DeepFD, a learning-based fault diagnosis and localization framework which maps the fault localization task to a learning problem. In particular, it infers the suspicious fault types via monitoring the runtime features extracted during DNN model training and then locates the diagnosed faults in DL programs. It overcomes the limitations by identifying the root causes of faults in DL programs instead of neurons and diagnosing the faults by a learning approach instead of a set of hard-coded rules. The evaluation exhibits the potential of DeepFD. It correctly diagnoses 52% faulty DL programs, compared with around half (27%) achieved by the best state-of-the-art works. Besides, for fault localization, DeepFD also outperforms the existing works, correctly locating 42% faulty programs, which almost doubles the best result (23%) achieved by the existing works.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。