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

利用数据特征实现深度学习程序中的缺陷定位

Leveraging Data Characteristics for Bug Localization in Deep Learning Programs

Ruchira Manke, Mohammad Wardat, Foutse Khomh, Hridesh Rajan

AI总结:

针对深度学习程序结构性缺陷难定位的问题,提出Theia,结合训练数据集特征在训练初期检测Keras/PyTorch程序缺陷并给出位置与修复建议,在40个真实程序上定位57/75个缺陷,显著优于NeuraLint的17/75。

摘要:

深度学习(Deep Learning,DL)是一类被广泛应用于多种场景的机器学习算法。与任何软件系统一样,DL程序也可能存在缺陷。为支持DL程序中的缺陷定位,过去已有若干工具被提出。由于大多数由不当模型结构导致的缺陷(称为结构性缺陷)会在训练期间造成性能不足,因此开发人员很难识别根本原因并解决这些缺陷。为支持DL程序中的缺陷检测与定位,本文提出了Theia,用于检测并定位DL程序中的结构性缺陷。与以往工作不同,Theia会考虑训练数据集的特征,以自动检测使用Keras和PyTorch这两个深度学习库开发的DL程序中的缺陷。由于训练DL模型是一个耗时的过程,Theia会在训练过程开始时检测这些缺陷,并通过包含缺陷位置和可操作修复建议的信息性消息提醒开发人员,从而帮助他们改进模型结构。我们在一个包含40个来自Stack Overflow的真实有缺陷DL程序的基准上评估了Theia。结果表明,Theia成功定位了40个有缺陷程序中的57/75个结构性缺陷,而能够在训练前定位结构性缺陷的最先进方法NeuraLint仅定位了17/75个缺陷。

英文摘要:

Deep Learning (DL) is a class of machine learning algorithms that are used in a wide variety of applications. Like any software system, DL programs can have bugs. To support bug localization in DL programs, several tools have been proposed in the past. As most of the bugs that occur due to improper model structure known as structural bugs lead to inadequate performance during training, it is challenging for developers to identify the root cause and address these bugs. To support bug detection and localization in DL programs, in this paper, we propose Theia, which detects and localizes structural bugs in DL programs. Unlike the previous works, Theia considers the training dataset characteristics to automatically detect bugs in DL programs developed using two deep learning libraries, Keras and PyTorch. Since training the DL models is a time-consuming process, Theia detects these bugs at the beginning of the training process and alerts the developer with informative messages containing the bug's location and actionable fixes which will help them to improve the structure of the model. We evaluated Theia on a benchmark of 40 real-world buggy DL programs obtained from Stack Overflow. Our results show that Theia successfully localizes 57/75 structural bugs in 40 buggy programs, whereas NeuraLint, a state-of-the-art approach capable of localizing structural bugs before training localizes 17/75 bugs.

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

↑