An Empirical Study on Common Bugs in Deep Learning Compilers

被引:3
|
作者
Du, Xiaoting [1 ]
Zheng, Zheng [1 ]
Ma, Lei [2 ]
Zhao, Jianjun [3 ]
机构
[1] Beihang Univ, Beijing, Peoples R China
[2] Univ Alberta, Edmonton, AB, Canada
[3] Kyushu Univ, Fukuoka, Japan
基金
中国国家自然科学基金;
关键词
empirical study; deep learning compiler; bug; root cause; impact;
D O I
10.1109/ISSRE52982.2021.00030
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The highly diversified deep learning (DL) frameworks and target hardware architectures bring big challenges for DL model deployment for industrial production. Up to the present, continuous efforts have been made to develop DL compilers with multiple state-of-the-arts available, e.g., TVM, Glow, nGraph, PlaidML, and Tensor Comprehensions (TC). Unlike traditional compilers, DL compilers take a DL model built by DL frameworks as input and generate optimized code as the output for a particular target device. Similar to other software, DL compilers are also error-prone. Buggy DL compilers can generate incorrect code and result in unexpected model behaviors. To better understand the current status and common bug characteristics of DL compilers, we performed a large-scale empirical study of five popular DL compilers covering TVM, Glow, nGraph, PlaidML, and TC, collecting a total of 2,717 actual bug reports submitted by users and developers. We made large manual efforts to investigate these bug reports and classified them based on their root causes, during which five root causes were identified, including environment, compatibility, memory, document, and semantic. After labeling the types of bugs, we further examined the important consequences of each type of bug and analyzed the correlation between bug types and impacts. Besides, we studied the time required to fix different types of bugs in DL compilers. Seven important findings are eventually obtained, with practical implications provided for both DL compiler developers and users.
引用
收藏
页码:184 / 195
页数:12
相关论文
共 50 条
  • [41] An Empirical Study on Bugs Inside PyTorch: A Replication Study
    Ho, Sharon Chee Yin
    Majdinasab, Vahid
    Islam, Mohayeminul
    Costa, Diego Elias
    Shihab, Emad
    Khomh, Foutse
    Nadi, Sarah
    Raza, Muhammad
    2023 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION, ICSME, 2023, : 220 - 231
  • [42] Shallow or Deep? An Empirical Study on Detecting Vulnerabilities using Deep Learning
    Mazuera-Rozo, Alejandro
    Mojica-Hanke, Anamaria
    Linares-Vasquez, Mario
    Bavota, Gabriele
    2021 IEEE/ACM 29TH INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION (ICPC 2021), 2021, : 276 - 287
  • [43] An empirical study on bugs in Java']JavaScript engines
    Wang, Ziyuan
    Bu, Dexin
    Wang, Nannan
    Yu, Sijie
    Gou, Shanyi
    Sun, Aiyue
    INFORMATION AND SOFTWARE TECHNOLOGY, 2023, 155
  • [44] An Empirical Study of Bugs in Industrial Financial Systems
    Xuan, Xiao
    Zhao, Xiaoqiong
    Wang, Ye
    Li, Shanping
    IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 2015, E98D (12): : 2322 - 2327
  • [45] An empirical study of non-reproducible bugs
    Anjali Goyal
    Neetu Sardana
    International Journal of System Assurance Engineering and Management, 2019, 10 : 1186 - 1220
  • [46] An Empirical Study of Bugs in Software Build System
    Xia, Xin
    Zhou, Xiaozhen
    Lo, David
    Zhao, Xiaoqiong
    Wang, Ye
    IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 2014, E97D (07): : 1769 - 1780
  • [47] Empirical Study on the Distribution of Bugs in Software Systems
    Shriram, C. K.
    Muthukumaran, K.
    Murthy, N. L. Bhanu
    INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2018, 28 (01) : 97 - 122
  • [48] An Empirical Study of OSS-Fuzz Bugs
    Ding, Zhen Yu
    Le Goues, Claire
    2021 IEEE/ACM 18TH INTERNATIONAL CONFERENCE ON MINING SOFTWARE REPOSITORIES (MSR 2021), 2021, : 131 - 142
  • [49] An Empirical Study on Bugs in Python']Python Interpreters
    Wang, Ziyuan
    Bu, Dexin
    Sun, Aiyue
    Gou, Shanyi
    Wang, Yong
    Chen, Lin
    IEEE TRANSACTIONS ON RELIABILITY, 2022, 71 (02) : 716 - 734
  • [50] An Empirical Study of Functional Bugs in Android Apps
    Xiong, Yiheng
    Xu, Mengqian
    Su, Ting
    Sun, Jingling
    Wang, Jue
    Wen, He
    Pu, Geguang
    He, Jifeng
    Su, Zhendong
    PROCEEDINGS OF THE 32ND ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS, ISSTA 2023, 2023, : 1319 - 1331