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

理解深度学习系统中缺陷定位挑战的研究

Towards Understanding the Challenges of Bug Localization in Deep Learning Systems

Sigma Jahan, Mehil B. Shah, Mohammad Masudur Rahman

AI总结:

本文通过大规模实证研究,利用2,365个深度学习缺陷和2,913个传统软件缺陷,系统分析了现有技术在深度学习系统缺陷定位中表现不佳的原因,揭示了缺陷类型和外在特性对定位效果的影响。

摘要:

软件缺陷每年给全球经济造成数十亿美元的损失,并占用软件开发人员约50%的编程时间。定位这些缺陷对于解决它们至关重要,但具有挑战性。由于深度学习系统的黑盒特性,在其中定位缺陷更加困难。这些系统中的缺陷不仅隐藏在代码中,还隐藏在模型和训练数据中,这可能使传统的调试方法效果降低。在本文中,我们进行了一项大规模实证研究,以更好地理解深度学习系统中缺陷定位所面临的挑战。首先,我们使用来自深度学习系统的2,365个缺陷和来自传统软件的2,913个缺陷,确定了四种现有技术的缺陷定位性能。我们发现这些技术在定位深度学习系统缺陷方面表现显著不佳。其次,我们评估了深度学习系统中不同类型的缺陷如何影响缺陷定位。我们发现,由于各自独特的挑战,定位技术的有效性随缺陷类型而变化。例如,张量缺陷由于其结构特性而更容易定位,而所有技术都因GPU缺陷的外部依赖而难以处理。第三,我们研究了缺陷的外在特性对深度学习系统定位的影响。我们发现深度学习缺陷通常是外在的,因此与源代码之外的其他工件(例如GPU、训练数据)相关联,这导致了现有定位方法性能不佳。

英文摘要:

Software bugs cost the global economy billions of dollars annually and claim ~50\% of the programming time from software developers. Locating these bugs is crucial for their resolution but challenging. It is even more challenging in deep-learning systems due to their black-box nature. Bugs in these systems are also hidden not only in the code but also in the models and training data, which might make traditional debugging methods less effective. In this article, we conduct a large-scale empirical study to better understand the challenges of localizing bugs in deep-learning systems. First, we determine the bug localization performance of four existing techniques using 2,365 bugs from deep-learning systems and 2,913 from traditional software. We found these techniques significantly underperform in localizing deep-learning system bugs. Second, we evaluate how different bug types in deep learning systems impact bug localization. We found that the effectiveness of localization techniques varies with bug type due to their unique challenges. For example, tensor bugs were more accessible to locate due to their structural nature, while all techniques struggled with GPU bugs due to their external dependencies. Third, we investigate the impact of bugs' extrinsic nature on localization in deep-learning systems. We found that deep learning bugs are often extrinsic and thus connected to artifacts other than source code (e.g., GPU, training data), contributing to the poor performance of existing localization methods.

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

↑