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 条
  • [31] An Empirical Study on Recommendations of Similar Bugs
    Rocha, Henrique
    Valente, Marco Tulio
    Marques-Neto, Humberto
    Murphy, Gail C.
    2016 IEEE 23RD INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION, AND REENGINEERING (SANER), VOL 1, 2016, : 46 - 56
  • [32] An Empirical Study on Kubernetes Operator Bugs
    Xu, Qingxin
    Gao, Yu
    Jun Wei
    PROCEEDINGS OF THE 33RD ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS, ISSTA 2024, 2024, : 1746 - 1758
  • [33] An Empirical Study on Regular Expression Bugs
    Wang, Peipei
    Brown, Chris
    Jennings, Jamie A.
    Stolee, Kathryn T.
    2020 IEEE/ACM 17TH INTERNATIONAL CONFERENCE ON MINING SOFTWARE REPOSITORIES, MSR, 2020, : 103 - 113
  • [34] An Empirical Study of Long Lived Bugs
    Saha, Ripon K.
    Khurshid, Sarfraz
    Perry, Dewayne E.
    2014 SOFTWARE EVOLUTION WEEK - IEEE CONFERENCE ON SOFTWARE MAINTENANCE, REENGINEERING, AND REVERSE ENGINEERING (CSMR-WCRE), 2014, : 144 - 153
  • [35] An Empirical Study on Bugs Inside TensorFlow
    Jia, Li
    Zhong, Hao
    Wang, Xiaoyin
    Huang, Linpeng
    Lu, Xuansheng
    DATABASE SYSTEMS FOR ADVANCED APPLICATIONS (DASFAA 2020), PT I, 2020, 12112 : 604 - 620
  • [36] The Scent of Deep Learning Code: An Empirical Study
    Jebnoun, Hadhemi
    Ben Braiek, Houssem
    Rahman, Mohammad Masudur
    Khomh, Foutse
    2020 IEEE/ACM 17TH INTERNATIONAL CONFERENCE ON MINING SOFTWARE REPOSITORIES, MSR, 2020, : 420 - 430
  • [37] Demystifying Dependency Bugs in Deep Learning Stack
    Huang, Kaifeng
    Chen, Bihuan
    Wu, Susheng
    Cao, Junming
    Ma, Lei
    Peng, Xin
    PROCEEDINGS OF THE 31ST ACM JOINT MEETING EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, ESEC/FSE 2023, 2023, : 450 - 462
  • [38] Gauntlet: Finding Bugs in Compilers for Programmable Packet Processing
    Ruffy, Fabian
    Wang, Tao
    Sivaraman, Anirudh
    PROCEEDINGS OF THE 14TH USENIX SYMPOSIUM ON OPERATING SYSTEMS DESIGN AND IMPLEMENTATION (OSDI '20), 2020, : 683 - 699
  • [39] Toward Understanding Deep Learning Framework Bugs
    Chen, Junjie
    Liang, Yihua
    Shen, Qingchao
    Jiang, Jiajun
    Li, Shuochuan
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2023, 32 (06)
  • [40] EasyView: Enabling and Scheduling Tensor Views in Deep Learning Compilers
    Jiang, Lijuan
    Xu, Ping
    Zhu, Qianchao
    Li, Xiuhong
    Yan, Shengen
    Zhang, Xingcheng
    Lin, Dahua
    Ma, Wenjing
    Li, Zhouyang
    Liu, Jun
    Ma, Jinming
    Jin, Minxi
    Yang, Chao
    51ST INTERNATIONAL CONFERENCE ON PARALLEL PROCESSING, ICPP 2022, 2022,