Challenges in Migrating Imperative Deep Learning Programs to Graph Execution: An Empirical Study

被引:3
|
作者
Velez, Tatiana Castro [1 ]
Khatchadourian, Raffi [2 ]
Bagherzadeh, Mehdi [3 ]
Raja, Anita [2 ]
机构
[1] CUNY, Grad Ctr, New York, NY 10017 USA
[2] CUNY Hunter Coll, New York, NY 10021 USA
[3] Oakland Univ, Rochester, MI 48063 USA
关键词
empirical studies; deep learning; imperative programs; hybrid programming paradigms; graph-based execution; software evolution;
D O I
10.1145/3524842.3528455
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Efficiency is essential to support responsiveness w.r.t. ever-growing datasets, especially for Deep Learning (DL) systems. DL frameworks have traditionally embraced deferred execution-style DL code that supports symbolic, graph-based Deep Neural Network (DNN) computation. While scalable, such development tends to produce DL code that is error-prone, non-intuitive, and difficult to debug. Consequently, more natural, less error-prone imperative DL frameworks encouraging eager execution have emerged at the expense of run-time performance. While hybrid approaches aim for the "best of both worlds," the challenges in applying them in the real world are largely unknown. We conduct a data-driven analysis of challenges-and resultant bugs-involved in writing reliable yet performant imperative DL code by studying 250 open-source projects, consisting of 19.7 MLOC, along with 470 and 446 manually examined code patches and bug reports, respectively. The results indicate that hybridization: (i) is prone to API misuse, (ii) can result in performance degradation-the opposite of its intention, and (iii) has limited application due to execution mode incompatibility. We put forth several recommendations, best practices, and anti-patterns for effectively hybridizing imperative DL code, potentially benefiting DL practitioners, API designers, tool developers, and educators.
引用
收藏
页码:469 / 481
页数:13
相关论文
共 50 条
  • [1] Towards Safe Automated Refactoring of Imperative Deep Learning Programs to Graph Execution
    Khatchadourian, Raffi
    Velez, Tatiana Castro
    Bagherzadeh, Mehdi
    Jia, Nan
    Raja, Anita
    [J]. 2023 38TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING, ASE, 2023, : 1800 - 1802
  • [2] JANUS: Fast and Flexible Deep Learning via Symbolic Graph Execution of Imperative Programs
    Jeong, Eunji
    Cho, Sungwoo
    Yu, Gyeong-In
    Jeong, Joo Seong
    Shin, Dong-Jin
    Chun, Byung-Gon
    [J]. PROCEEDINGS OF THE 16TH USENIX SYMPOSIUM ON NETWORKED SYSTEMS DESIGN AND IMPLEMENTATION, 2019, : 453 - 467
  • [3] Terra: Imperative-Symbolic Co-Execution of Imperative Deep Learning Programs
    Kim, Taebum
    Jeong, Eunji
    Kim, Geon-Woo
    Koo, Yunmo
    Kim, Sehoon
    Yu, Gyeong-In
    Chun, Byung-Gon
    [J]. ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS 34 (NEURIPS 2021), 2021,
  • [4] An Empirical Study on Numerical Bugs in Deep Learning Programs
    Wang, Gan
    Wang, Zan
    Chen, Junjie
    Chen, Xiang
    Yan, Ming
    [J]. PROCEEDINGS OF THE 37TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING, ASE 2022, 2022,
  • [5] Design Smells in Deep Learning Programs: An Empirical Study
    Nikanjam, Amin
    Khomh, Foutse
    [J]. 2021 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME 2021), 2021, : 332 - 342
  • [6] An Empirical Study of Challenges in Converting Deep Learning Models
    Openja, Moses
    Nikanjam, Amin
    Yahmed, Ahmed Haj
    Khomh, Foutse
    Jiang, Zhen Ming
    [J]. 2022 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME 2022), 2022, : 13 - 23
  • [7] An Empirical Study of Common Challenges in Developing Deep Learning Applications
    Zhang, Tianyi
    Gao, Cuiyun
    Ma, Lei
    Lyu, Michael R.
    Kim, Miryung
    [J]. 2019 IEEE 30TH INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING (ISSRE), 2019, : 104 - 115
  • [8] Graph Deep Learning: State of the Art and Challenges
    Georgousis, Stavros
    Kenning, Michael P.
    Xie, Xianghua
    [J]. IEEE ACCESS, 2021, 9 : 22106 - 22140
  • [9] Graph Mining with Deep Learning: challenges and pitfals
    Appel, Ana Paula
    [J]. 2019 IEEE INTERNATIONAL PARALLEL AND DISTRIBUTED PROCESSING SYMPOSIUM WORKSHOPS (IPDPSW), 2019, : 275 - 275
  • [10] Common challenges of deep reinforcement learning applications development: an empirical study
    Morovati, Mohammad Mehdi
    Tambon, Florian
    Taraghi, Mina
    Nikanjam, Amin
    Khomh, Foutse
    [J]. EMPIRICAL SOFTWARE ENGINEERING, 2024, 29 (04)