Understanding Bugs in Multi-Language Deep Learning Frameworks
Not on the map. Why?
Abstract (arXiv)
Deep learning frameworks (DLFs) have been playing an increasingly important role in this intelligence age since they act as a basic infrastructure for an increasingly wide range of AIbased applications. Meanwhile, as multi-programming-language (MPL) software systems, DLFs are inevitably suffering from bugs caused by the use of multiple programming languages (PLs). Hence, it is of paramount significance to understand the bugs (especially the bugs involving multiple PLs, i.e., MPL bugs) of DLFs, which can provide a foundation for preventing, detecting, and resolving bugs in the development of DLFs. To this end, we manually analyzed 1497 bugs in three MPL DLFs, namely MXNet, PyTorch, and TensorFlow. First, we classified bugs in these DLFs into 12 types (e.g., algorithm design bugs and memory bugs) according to their bug labels and characteristics. Second, we further explored the impacts of different bug types on the development of DLFs, and found that deployment bugs and memory bugs negatively impact the development of DLFs in different aspects the most. Third, we found that 28.6%, 31.4%, and 16.0% of bugs in MXNet, PyTorch, and TensorFlow are MPL bugs, respectively; the PL combination of Python and C/C++ is most used in fixing more than 92% MPL bugs in all DLFs. Finally, the code change complexity of MPL bug fixes is significantly greater than that of single-programming-language (SPL) bug fixes in all the three DLFs, while in PyTorch MPL bug fixes have longer open time and greater communication complexity than SPL bug fixes. These results provide insights for bug management in DLFs.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 10 of its 32 references that are in the map. First posted on arXiv 5 Mar 2023.
Builds on
10 of 32 references.
References · 10
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2015MXNet: A Flexible and Efficient Machine Learning Library for Heterogeneous Distributed Systemscited by 195
- 2019A Comprehensive Study on Deep Learning Bug Characteristicscited by 65
- 2022Toward Understanding Deep Learning Framework Bugscited by 26
- 2021Understanding Performance Problems in Deep Learning Systemscited by 12
- 2022Demystifying Dependency Bugs in Deep Learning Stackcited by 9
- 2019On the Impact of Programming Languages on Code Qualitycited by 6
- 2022Towards Understanding the Faults of JavaScript-Based Deep Learning Systemscited by 6
- 2020Are Multi-language Design Smells Fault-prone? An Empirical Studycited by 5
- 2019Static Code Analysis of Multilanguage Software Systemscited by 2
Built on by
Not cited yet.