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

解析深度学习堆栈中的依赖问题

Demystifying Dependency Bugs in Deep Learning Stack

Fudan University(复旦大学);The University of Tokyo(东京大学);University of Alberta(阿尔伯塔大学)

Kaifeng Huang, Bihuan Chen, Susheng Wu, Junmin Cao, Lei Ma, Xin Peng

AI总结:

本文通过分析446个深度学习堆栈依赖问题,揭示了依赖bug的症状、根本原因及修复模式,为深度学习堆栈的依赖管理提供了新的见解。

摘要:

深度学习(DL)应用基于异构且复杂的DL堆栈(如Nvidia GPU、Linux、CUDA驱动、Python运行时和TensorFlow)而构建,面临软件和硬件依赖的挑战。依赖管理在工程生命周期中面临异步和激进的演变以及依赖项之间的复杂版本约束。开发人员在选择、使用和维护依赖项时可能引入依赖bug(DBs)。然而,深度学习堆栈中DBs的特性仍未得到充分研究,阻碍了实际的依赖管理解决方案。为弥合这一差距,本文首次全面研究了DL堆栈中DBs的症状、根本原因和修复模式,通过从StackOverflow帖子和GitHub问题中收集的446个DBs进行分析。对于每个DB,我们首先研究其症状以及症状暴露的生命周期阶段和依赖项。然后分析根本原因以及根本原因引入的生命周期阶段和依赖项。最后探讨修复模式及用于修复的知识来源。本文的研究发现为依赖管理提供了实用启示。

英文摘要:

Deep learning (DL) applications, built upon a heterogeneous and complex DL stack (e.g., Nvidia GPU, Linux, CUDA driver, Python runtime, and TensorFlow), are subject to software and hardware dependencies across the DL stack. One challenge in dependency management across the entire engineering lifecycle is posed by the asynchronous and radical evolution and the complex version constraints among dependencies. Developers may introduce dependency bugs (DBs) in selecting, using and maintaining dependencies. However, the characteristics of DBs in DL stack is still under-investigated, hindering practical solutions to dependency management in DL stack. To bridge this gap, this paper presents the first comprehensive study to characterize symptoms, root causes and fix patterns of DBs across the whole DL stack with 446 DBs collected from StackOverflow posts and GitHub issues. For each DB, we first investigate the symptom as well as the lifecycle stage and dependency where the symptom is exposed. Then, we analyze the root cause as well as the lifecycle stage and dependency where the root cause is introduced. Finally, we explore the fix pattern and the knowledge sources that are used to fix it. Our findings from this study shed light on practical implications on dependency management.

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

↑