arrow
Return

Bug characterization in machine learning-based systems

delete2023-12-05
delete10
PRE
AI
M
Mohammad Mehdi Morovati *
A
Amin Nikanjam
F
Florian Tambon
F
Foutse Khomh
Zhen Ming Jiang cover
Zhen Ming Jiang (Zhen Ming Jiang)
DOI:10.1007/s10664-023-10400-0delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
The rapid growth of applying Machine Learning (ML) in different domains, especially in safety-critical areas, increases the need for reliable ML components, i.e., a software component operating based on ML. Since corrective maintenance, i.e. identifying and resolving systems bugs, is a key task in the software development process to deliver reliable software components, it is necessary to investigate the usage of ML components, from the software maintenance perspective. Understanding the bugs' characteristics and maintenance challenges in ML-based systems can help developers of these systems to identify where to focus maintenance and testing efforts, by giving insights into the most error-prone components, most common bugs, etc. In this paper, we investigate the characteristics of bugs in ML-based software systems and the difference between ML and non-ML bugs from the maintenance viewpoint. We extracted 447,948 GitHub repositories that used one of the three most popular ML frameworks, i.e., TensorFlow, Keras, and PyTorch. After multiple filtering steps, we select the top 300 repositories with the highest number of closed issues. We manually investigate the extracted repositories to exclude non-ML-based systems. Our investigation involved a manual inspection of 386 sampled reported issues in the identified ML-based systems to indicate whether they affect ML components or not. Our analysis shows that nearly half of the real issues reported in ML-based systems are ML bugs, indicating that ML components are more error-prone than non-ML components. Next, we thoroughly examined 109 identified ML bugs to identify their root causes, and symptoms, and calculate their required fixing time. The results also revealed that ML bugs have significantly different characteristics compared to non-ML bugs, in terms of the complexity of bug-fixing (number of commits, changed files, and changed lines of code). Based on our results, fixing ML bugs is more costly and ML components are more error-prone, compared to non-ML bugs and non-ML components respectively. Hence, paying significant attention to the reliability of the ML components is crucial in ML-based systems. These results deepen the understanding of ML bugs and we hope that our findings help shed light on opportunities for designing effective tools for testing and debugging ML-based systems.
Keywords:
Software bug
Software testing
ML-based systems
ML bug
Deep learning
Software maintenance
Empirical study
Bugs in machine learning-based systems: a faultload benchmark
err2023-04-05
err9
PREAI
errMorovati, Mohammad Mehdi; Nikanjam, Amin; Khomh, Foutse; Jiang, Zhen Ming (Jack)
errShare
errSave
errShare
errSave
Bug characteristics in open source software
err2013-06-07
err184
PREAI
errTan, Lin; Liu, Chen; Li, Zhenmin; Wang, Xuanhui; Zhou, Yuanyuan; Zhai, Chengxiang
errShare
errSave
errShare
errSave
Duplicate Bug Report Detection and Classification System Based on Deep Learning Technique
err2020-01-01
err28
errOAAI
errKukkar, Ashima; Mohana, Rajni; Kumar, Yugal; Nayyar, Anand; Bilal, Muhammad; Kwak, Kyung-Sup
errShare
errSave
Continuously Learning Bug Locations
err2026-09-17
err0
PREAI
errPaulina Stevia Nouwou Mindom; Leuson Da Silva; Amin Nikanjam; Foutse Khomh
errShare
errSave

Journal

Empirical Software Engineering cover
Empirical Software Engineering
IF:
3.6
Papers:
2.0K
Citations:
6.4K

Organization

P
Polytechnique Montréal
Scholars:
194
Papers: 87
Citations: 2.2K
U
université de montréal
Scholars:
1.0K
Papers: 435
Citations: 2.3W
Cited Papers

Cited Papers

err
IF0
err
err0
PREAI
err
errShare
errSave
A multi-layer and multi-ensemble stock trader using deep learning and deep reinforcement learning
err2020-09-07
err78
PREAI
errCarta, Salvatore; Corriga, Andrea; Ferreira, Anselmo; Podda, Alessandro Sebastian; Recupero, Diego Reforgiato
errShare
errSave
Neural representation of goal direction in the monarch butterfly brain
err
IF0
err2022-10-18
err0
errOAAI
errM. Jerome Beetz; Christian Kraus; Basil el Jundi
errShare
errSave
Orthotopic heart transplantation: two parts of the heart with two different arrhythmias
err2011-03-01
err0
PREAI
errMichele D'Alto; Stephen Lord; John Bourke; Giuseppe Santarpia; Berardo Sarubbi; Maria Giovanna Russo; Raffaele Calabrò
errShare
errSave
errShare
errSave
Artificial Urinary Sphincters around Intestinal Segments—Are they Safe?
err2008-11-26
err0
PREAI
errP. M. T. WESTON; J. D. T. MORGAN; J. HUSSAIN; T. P. STEPHENSON
errShare
errSave
errShare
errSave
Revisiting reopened bugs in open source software systems
err2022-04-25
err12
PREAI
errTagra, Ankur; Zhang, Haoxiang; Rajbahadur, Gopi Krishnan; Hassan, Ahmed E.
errShare
errSave
Analyzing bug fix for automatic bug cause classification
err2020-05-01
err33
PREAI
errNi, Zhen; Li, Bin; Sun, Xiaobing; Chen, Tianhao; Tang, Ben; Shi, Xinchen
errShare
errSave
researcher View more