Lune

FSE2023Top-tier venue

Demystifying Dependency Bugs in Deep Learning Stack

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

Abstract

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 Stack-Overflow 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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Why Attention Fails: A Taxonomy of Faults in Attention-Based Neural Networks cites Understanding performance problems in deep learning systems
  • Why Attention Fails: A Taxonomy of Faults in Attention-Based Neural Networks cites Taxonomy of real faults in deep learning systems
  • Why Attention Fails: A Taxonomy of Faults in Attention-Based Neural Networks cites DeepLocalize: Fault Localization for Deep Neural Networks
  • Understanding performance problems in deep learning systems cites An empirical study on program failures of deep learning jobs
  • Understanding performance problems in deep learning systems cites Repairing deep neural networks: fix patterns and challenges
  • Understanding performance problems in deep learning systems cites A comprehensive study on challenges in deploying deep learning based software
  • Understanding performance problems in deep learning systems cites Taxonomy of real faults in deep learning systems
  • Understanding performance problems in deep learning systems cites DeepLocalize: Fault Localization for Deep Neural Networks
  • A comprehensive study on challenges in deploying deep learning based software cites Taxonomy of real faults in deep learning systems
  • Imitation Game: Reproducing Deep Learning Bugs Leveraging an Intelligent Agent cites Taxonomy of real faults in deep learning systems
  • Imitation Game: Reproducing Deep Learning Bugs Leveraging an Intelligent Agent cites DeepLocalize: Fault Localization for Deep Neural Networks
  • DeepLocalize: Fault Localization for Deep Neural Networks cites Repairing deep neural networks: fix patterns and challenges
  • Knowledge-Based Version Incompatibility Detection for Deep Learning cites A comprehensive study on challenges in deploying deep learning based software
  • Knowledge-Based Version Incompatibility Detection for Deep Learning cites Taxonomy of real faults in deep learning systems
  • A Comprehensive Study of Bug-Fix Patterns in Autonomous Driving Systems cites Repairing deep neural networks: fix patterns and challenges
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Understanding performance problems in deep learning systemsJunming Cao, Bihuan Chen, Chao Sun, Longjie Hu et al.FSE 2022 · 33 citations
  2. Knowledge-Based Version Incompatibility Detection for Deep LearningZhongkai Zhao, Bonan Kou, Mohamed Yilmaz Ibrahim, Muhao Chen et al.FSE 2023 · 7 citations
  3. A Comprehensive Study of Bug-Fix Patterns in Autonomous Driving SystemsYuntianyi Chen, Yuqi Huai, Yirui He, Shilong Li et al.FSE 2025 · 1 citation
  4. Why Attention Fails: A Taxonomy of Faults in Attention-Based Neural NetworksSigma Jahan, Saurabhsingh Rajput, Tushar Sharma, Masud RahmanICSE 2026
  5. Imitation Game: Reproducing Deep Learning Bugs Leveraging an Intelligent AgentMehil Shah, Mohammad Masudur Rahman, Foutse KhomhICSE 2026

Builds on25

  1. Taxonomy of real faults in deep learning systemsNargiz Humbatova, Gunel Jahangirova, Gabriele Bavota, Vincenzo Riccio et al.ICSE 2020 · 281 citations
  2. A comprehensive study on challenges in deploying deep learning based softwareZhenpeng Chen, Yanbin Cao, Yuanqiang Liu, Haoyu Wang et al.FSE 2020 · 121 citations
  3. Repairing deep neural networks: fix patterns and challengesMd Johirul Islam, Rangeet Pan, Giang Nguyen, Hridesh RajanICSE 2020 · 102 citations
  4. An empirical study on program failures of deep learning jobsRu Zhang, Wencong Xiao, Hongyu Zhang, Yu Liu et al.ICSE 2020 · 96 citations
  5. DeepLocalize: Fault Localization for Deep Neural NetworksMohammad Wardat, Wei Le, Hridesh RajanICSE 2021 · 93 citations

Related papers

  1. Compatibility Issues in Deep Learning Systems: Problems and OpportunitiesJun Wang, Guanping Xiao, Shuai Zhang, Huashan Lei et al.FSE 2023 · 13 citations
  2. An Empirical Study on Deployment Faults of Deep Learning Based Mobile ApplicationsZhenpeng Chen, Huihan Yao, Yiling Lou, Yanbin Cao et al.ICSE 2021 · 73 citations
  3. Towards Understanding the Faults of JavaScript-Based Deep Learning SystemsLili Quan, Qianyu Guo, Xiaofei Xie, Sen Chen et al.ASE 2022 · 13 citations
  4. DeepStability: A Study of Unstable Numerical Methods and Their Solutions in Deep LearningEliska Kloberdanz, Kyle G. Kloberdanz, Wei LeICSE 2022 · 16 citations
  5. Towards Understanding Docker Build Faults in Practice: Symptoms, Root Causes, and Fix PatternsYiwen Wu, Yang Zhang, Tao Wang, Bo Ding et al.FSE 2025 · 4 citations
Dusk over the sea between two cliffs drawn in fine vertical lines