arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.14512cs.SEcs.LG
收藏

基于机器学习的系统中的缺陷特征

Bug Characterization in Machine Learning-based Systems

Polytechnique Montréal(蒙特利尔理工学院);York University(约克大学)

Mohammad Mehdi Morovati, Amin Nikanjam, Florian Tambon, Foutse Khomh, Zhen Ming, Jiang

AI总结:

本文研究了基于ML的软件系统中的缺陷特征,通过分析GitHub上300个代码库的386个问题,发现ML组件比非ML组件更易出错且修复成本更高。

摘要:

在不同领域(尤其是安全关键领域)应用机器学习(ML)的快速增长,增加了对可靠ML组件(即基于ML运行的软件组件)的需求。了解基于ML的系统中的缺陷特征和维护挑战,可以通过提供对最易出错的组件、最常见的缺陷等的洞察,帮助这些系统的开发者确定应将维护和测试工作集中在哪里。在本文中,我们研究了基于ML的软件系统中的缺陷特征,以及从维护角度来看ML缺陷与非ML缺陷之间的差异。我们提取了447,948个使用三大最流行ML框架(即TensorFlow、Keras和PyTorch)之一的GitHub代码库。经过多次过滤步骤,我们选择了已关闭问题数量最多的前300个代码库。我们手动调查了提取的代码库,以排除非基于ML的系统。我们的调查涉及对已识别的基于ML系统中抽样的386个已报告问题进行人工检查,以指出它们是否影响ML组件。我们的分析表明,基于ML系统中报告的真实问题中近一半是ML缺陷,这表明ML组件比非ML组件更容易出错。接下来,我们彻底检查了109个已识别的ML缺陷,以确定其根本原因、症状,并计算其所需的修复时间。结果还显示,在缺陷修复的复杂性(提交次数、更改的文件和更改的代码行数)方面,ML缺陷与非ML缺陷相比具有显著不同的特征。基于我们的结果,与非ML缺陷和非ML组件相比,修复ML缺陷的成本更高,且ML组件更容易出错。因此,在基于ML的系统中,高度关注ML组件的可靠性至关重要。

英文摘要:

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. 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, 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 are more costly and ML components are more error-prone, compared to non-ML bugs and non-ML components respectively. Hence, paying a significant attention to the reliability of the ML components is crucial in ML-based systems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑