Repairing Deep Neural Networks: Fix Patterns and Challenges

被引:81
|
作者
Islam, Md Johirul [1 ]
Pan, Rangeet [1 ]
Giang Nguyen [1 ]
Rajan, Hridesh [1 ]
机构
[1] Iowa State Univ, Dept Comp Sci, 226 Atanasoff Hall, Ames, IA 50011 USA
关键词
deep neural networks; bugs; bug fix; bug fix patterns;
D O I
10.1145/3377811.3380378
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Significant interest in applying Deep Neural Network (DNN) has fueled the need to support engineering of software that uses DNNs. Repairing software that uses DNNs is one such unmistakable SE need where automated tools could be beneficial; however, we do not fully understand challenges to repairing and patterns that are utilized when manually repairing DNNs. What challenges should automated repair tools address? What are the repair patterns whose automation could help developers? Which repair patterns should be assigned a higher priority for building automated bug repair tools? This work presents a comprehensive study of bug fix patterns to address these questions. We have studied 415 repairs from Stack Overflow and 555 repairs from GitHub for five popular deep learning libraries Caffe, Keras, Tensorflow, Theano, and Torch to understand challenges in repairs and bug repair patterns. Our key findings reveal that DNN bug fix patterns are distinctive compared to traditional bug fix patterns; the most common bug fix patterns are fixing data dimension and neural network connectivity; DNN bug fixes have the potential to introduce adversarial vulnerabilities; DNN bug fixes frequently introduce new bugs; and DNN bug localization, reuse of trained model, and coping with frequent releases are major challenges faced by developers when fixing bugs. We also contribute a benchmark of 667 DNN (bug, repair) instances.
引用
收藏
页码:1135 / 1146
页数:12
相关论文
共 50 条
  • [1] A Novel Method to Fix Numbers of Hidden Neurons in Deep Neural Networks
    Li, Jiqian
    Wu, Yan
    Zhang, Junming
    Zhao, Guodong
    2015 8TH INTERNATIONAL SYMPOSIUM ON COMPUTATIONAL INTELLIGENCE AND DESIGN (ISCID), VOL 2, 2015, : 523 - 526
  • [2] DeepPatch: A Patching-Based Method for Repairing Deep Neural Networks
    Bu, Hao
    Sun, Meng
    2023 IEEE/ACM INTERNATIONAL WORKSHOP ON DEEP LEARNING FOR TESTING AND TESTING FOR DEEP LEARNING, DEEPTEST, 2023, : 25 - 32
  • [3] Learning Sparse Patterns in Deep Neural Networks
    Wen, Weijing
    Yang, Fan
    Su, Yangfeng
    Zhou, Dian
    Zeng, Xuan
    2019 IEEE 13TH INTERNATIONAL CONFERENCE ON ASIC (ASICON), 2019,
  • [4] Decision Boundary of Deep Neural Networks: Challenges and Opportunities
    Karimi, Hamid
    Tang, Jiliang
    PROCEEDINGS OF THE 13TH INTERNATIONAL CONFERENCE ON WEB SEARCH AND DATA MINING (WSDM '20), 2020, : 919 - 920
  • [5] Towards Repairing Neural Networks Correctly
    Dong, Guoliang
    Sun, Jun
    Wang, Xingen
    Wang, Xinyu
    Dai, Ting
    2021 IEEE 21ST INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY (QRS 2021), 2021, : 714 - 725
  • [6] ArchRepair: Block-Level Architecture-Oriented Repairing for Deep Neural Networks
    Qi, Hua
    Wang, Zhijie
    Guo, Qing
    Chen, Jianlang
    Felix Juefei-Xu
    Zhang, Fuyuan
    Ma, Lei
    Zhao, Jianjun
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2023, 32 (05)
  • [7] Deep convolutional neural networks for mammography: advances, challenges and applications
    Dina Abdelhafiz
    Clifford Yang
    Reda Ammar
    Sheida Nabavi
    BMC Bioinformatics, 20
  • [8] Using deep neural networks for kinematic analysis: Challenges and opportunities
    Cronin, Neil J.
    Journal of Biomechanics, 2021, 123
  • [9] Using deep neural networks for kinematic analysis: Challenges and opportunities
    Cronin, Neil J.
    JOURNAL OF BIOMECHANICS, 2021, 123
  • [10] Deep convolutional neural networks for mammography: advances, challenges and applications
    Abdelhafiz, Dina
    Yang, Clifford
    Ammar, Reda
    Nabavi, Sheida
    BMC BIOINFORMATICS, 2019, 20 (Suppl 11)