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

理解深度学习框架缺陷

Toward Understanding Deep Learning Framework Bugs

Junjie Chen, Yihua Liang, Qingchao Shen, Jiajun Jiang, Shuochuan Li

AI总结:

本研究通过对四个主流DL框架的1000个缺陷进行大规模分析,揭示了缺陷特征,提出了改进检测与调试的指南,并开发了有效工具TenFuzz,发现3个新缺陷。

摘要:

DL框架是构建所有DL程序和模型的基础,因此它们的缺陷可能导致任何依赖它们的DL程序或模型出现意外行为。这种广泛的影响证明了保证DL框架质量的必要性和重要性。理解DL框架缺陷的特征是这一质量保证任务的基本步骤,有助于设计有效的缺陷检测和调试方法。因此,在这项工作中,我们对来自四个流行且多样的DL框架(即TensorFlow、PyTorch、MXNet和DL4J)的1000个缺陷进行了最大规模的研究。通过分析从DL框架中分解出的5个组件相关的DL框架缺陷的根本原因和症状,以及测量三种最先进的测试技术所实现的测试覆盖率,我们获得了12项主要发现,以全面理解DL框架缺陷和现有DL框架测试实践的现状,然后提供了一系列可操作的指南,以更好地进行DL框架缺陷检测和调试。最后,基于这些指南,我们设计并实现了一个原型DL框架测试工具,称为TenFuzz,评估表明其有效,并在初步研究中在最新的TensorFlow框架上发现了3个未知缺陷,表明了我们指南的重要性。

英文摘要:

DL frameworks are the basis of constructing all DL programs and models, and thus their bugs could lead to the unexpected behaviors of any DL program or model relying on them. Such a wide effect demonstrates the necessity and importance of guaranteeing DL frameworks' quality. Understanding the characteristics of DL framework bugs is a fundamental step for this quality assurance task, facilitating designing effective bug detection and debugging approaches. Hence, in this work we conduct the most large-scale study on 1,000 bugs from four popular and diverse DL frameworks (i.e., TensorFlow, PyTorch, MXNet, and DL4J). By analyzing the root causes and symptoms of DL framework bugs associated with 5 components decomposed from DL frameworks, as well as measuring test coverage achieved by three state-of-the-art testing techniques, we obtain 12 major findings for the comprehensive understanding of DL framework bugs and the current status of existing DL framework testing practice, and then provide a series of actionable guidelines for better DL framework bug detection and debugging. Finally, based on the guidelines, we design and implement a prototype DL-framework testing tool, called TenFuzz, which is evaluated to be effective and finds 3 unknown bugs on the latest TensorFlow framework in a preliminary study, indicating the significance of our guidelines.

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

↑