Skip to main navigation Skip to search Skip to main content

DeepFD: Automated Fault Diagnosis and Localization for Deep Learning Programs

  • Jialun Cao
  • , Meiziniu Li
  • , Xiao Chen
  • , Ming Wen
  • , Yongqiang Tian
  • , Bo Wu
  • , Shing Chi Cheung

Research output: Chapter in Book/Report/Conference proceedingConference PaperResearchpeer-review

Abstract

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 particu-lar, 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.

Original languageEnglish
Title of host publicationProceedings - 2022 ACM/IEEE 44th International Conference on Software Engineering, ICSE 2022
EditorsDaniela Damian, Andreas Zeller
Place of PublicationNew York NY USA
PublisherAssociation for Computing Machinery (ACM)
Pages573-585
Number of pages13
ISBN (Electronic)9781450392211
DOIs
Publication statusPublished - 2022
Externally publishedYes
EventInternational Conference on Software Engineering 2022: Software Engineering in Society - Pittsburgh, United States of America
Duration: 22 May 202227 May 2022
Conference number: 44th
https://ieeexplore.ieee.org/xpl/conhome/9793840/proceeding (Proceedings)
https://conf.researchr.org/home/icse-2022 (Website)

Publication series

NameProceedings - International Conference on Software Engineering
PublisherAssociation for Computing Machinery (ACM)
Volume2022-May
ISSN (Print)0270-5257

Conference

ConferenceInternational Conference on Software Engineering 2022
Abbreviated titleICSE-SEIS 2022
Country/TerritoryUnited States of America
CityPittsburgh
Period22/05/2227/05/22
Internet address

Keywords

  • Debugging
  • Fault Diagnosis
  • Fault Localization
  • Neural Networks

Cite this