arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2112.13314cs.SEcs.LG
收藏

深度学习框架中的静默缺陷:Keras与TensorFlow的实证研究

Silent Bugs in Deep Learning Frameworks: An Empirical Study of Keras and TensorFlow

Polytechnique Montreal(蒙特利尔理工学院)

Florian Tambon, Amin Nikanjam, Le An, Foutse Khomh, Giuliano Antoniol

AI总结:

本研究首次实证调查Keras与TensorFlow中的静默缺陷,通过分析1168个问题识别出77个可复现缺陷,分类并评估其影响,提出防护指南。

摘要:

深度学习(DL)框架现已广泛使用,简化了复杂模型的创建及其与各种应用的集成,甚至对非DL专家也是如此。然而,与其他任何程序一样,它们也容易存在缺陷。本文处理的是被称为静默缺陷的缺陷子类:它们导致错误行为,但不会引起系统崩溃或挂起,也不会向用户显示错误消息。由于系统的“黑盒”和随机性(最终用户无法理解模型如何做出决策),此类缺陷在DL应用和框架中甚至更加危险。本文首次对Keras和TensorFlow的静默缺陷及其对用户程序的影响进行了实证研究。我们从TensorFlow GitHub仓库中提取了与Keras相关的已关闭问题。在我们收集的1,168个问题中,有77个是可复现的静默缺陷,影响了用户的程序。我们根据缺陷对用户程序的影响以及问题发生的组件,利用问题报告中的信息对缺陷进行了分类。然后,我们根据每个问题对用户程序的影响,为其推导出威胁级别。为了评估所识别类别和影响规模的相关性,我们对103名DL开发者进行了在线调查。参与者普遍认同DL库中静默缺陷的重大影响,并认可我们的发现(即静默缺陷的类别和所提出的影响规模)。最后,利用我们的分析,我们提供了一套指导方针,以帮助防范DL框架中的此类缺陷。

英文摘要:

Deep Learning (DL) frameworks are now widely used, simplifying the creation of complex models as well as their integration to various applications even to non DL experts. However, like any other programs, they are prone to bugs. This paper deals with the subcategory of bugs named silent bugs: they lead to wrong behavior but they do not cause system crashes or hangs, nor show an error message to the user. Such bugs are even more dangerous in DL applications and frameworks due to the "black-box" and stochastic nature of the systems (the end user can not understand how the model makes decisions). This paper presents the first empirical study of Keras and TensorFlow silent bugs, and their impact on users' programs. We extracted closed issues related to Keras from the TensorFlow GitHub repository. Out of the 1,168 issues that we gathered, 77 were reproducible silent bugs affecting users' programs. We categorized the bugs based on the effects on the users' programs and the components where the issues occurred, using information from the issue reports. We then derived a threat level for each of the issues, based on the impact they had on the users' programs. To assess the relevance of identified categories and the impact scale, we conducted an online survey with 103 DL developers. The participants generally agreed with the significant impact of silent bugs in DL libraries and acknowledged our findings (i.e., categories of silent bugs and the proposed impact scale). Finally, leveraging our analysis, we provide a set of guidelines to facilitate safeguarding against such bugs in DL frameworks.

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

↑