基于机器学习的软件缺陷预测器的方差:我们真的在改进缺陷预测吗?
Variance of ML-based software fault predictors: are we really improving fault prediction?
AI总结:
本文实验分析了机器学习软件缺陷预测中随机因素导致的方差问题,发现最大方差达10.10%,并讨论了应对方法,以提升实际应用中的可靠性。
摘要:
随着软件系统变得越来越复杂且规模持续增长,软件质量保证活动变得越来越困难。此外,在处理大规模系统时,测试的成本甚至更高。因此,为了有效分配质量保证资源,研究人员提出了缺陷预测(FP),该方法利用机器学习(ML)来预测容易出现缺陷的代码区域。然而,机器学习算法通常利用随机元素来提高预测模型的泛化能力和训练过程的效率。这些随机元素,也称为引入非确定性的(NI)因素,会导致训练过程中的方差,并因此导致预测准确率和训练时间的方差。这种方差给研究的可复现性带来了挑战。更重要的是,虽然缺陷预测模型可能在实验室中表现出良好的性能(例如,通常涉及多次运行并对结果取平均),但结果的高方差可能带来这样的风险:这些模型在实际应用中表现出较低的性能。在这项工作中,我们实验分析了一种最先进的缺陷预测方法的方差。我们的实验结果表明,NI因素确实可能导致缺陷预测模型准确率的显著方差。我们观察到在每类准确率指标上的最大方差为10.10%。因此,我们还讨论了如何处理这种方差。
英文摘要:
Software quality assurance activities become increasingly difficult as software systems become more and more complex and continuously grow in size. Moreover, testing becomes even more expensive when dealing with large-scale systems. Thus, to effectively allocate quality assurance resources, researchers have proposed fault prediction (FP) which utilizes machine learning (ML) to predict fault-prone code areas. However, ML algorithms typically make use of stochastic elements to increase the prediction models' generalizability and efficiency of the training process. These stochastic elements, also known as nondeterminism-introducing (NI) factors, lead to variance in the training process and as a result, lead to variance in prediction accuracy and training time. This variance poses a challenge for reproducibility in research. More importantly, while fault prediction models may have shown good performance in the lab (e.g., often-times involving multiple runs and averaging outcomes), high variance of results can pose the risk that these models show low performance when applied in practice. In this work, we experimentally analyze the variance of a state-of-the-art fault prediction approach. Our experimental results indicate that NI factors can indeed cause considerable variance in the fault prediction models' accuracy. We observed a maximum variance of 10.10% in terms of the per-class accuracy metric. We thus, also discuss how to deal with such variance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。