arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2607.01842cs.SE
收藏

理解软件缺陷预测:跨不确定性量化与性能评估的大规模实证研究

Understanding Software Defect Prediction: A Large-scale Empirical Study Across Uncertainty Quantification and Performance Evaluation

School of Computer Science and Engineering, Macau University of Science and Technology(澳门科技大学计算机科学与工程学院);State Key Laboratory of Intelligent Manufacturing Equipment and Technology, School of Mechanical Science and Engineering, Huazhong University of Science and Technology(华中科技大学机械科学与工程学院智能装备与技术国家重点实验室);Department of Computer Science and Software Engineering, Concordia University(康考迪亚大学计算机科学与工程系)

Ranjun Peng, Xuan Xie, Rubing Huang, Wenbin He, Zhijie Wang

AI总结:

通过大规模实证研究,评估了16种分类器在项目内和跨项目缺陷预测中不确定性量化指标与性能、校准的关系,发现UQ高度依赖上下文,且跨项目时相关性减弱或反转。

摘要:

软件缺陷预测(SDP)分类器产生用于检查优先级排序、阈值调整和风险沟通的概率。基于概率的不确定性量化(UQ)表征预测置信度,但常见的UQ指标是否能可靠指示性能和校准仍不清楚。我们对SDP中基于概率的UQ进行了大规模实证研究。评估了16个代表性分类器的五个UQ指标、六个性能指标和三个校准指标。我们在两种预测设置下分析了这些关系:使用36个基准数据集的项目内缺陷预测(WPDP)和使用32个特征兼容数据集的跨项目缺陷预测(CPDP)。结果表明,UQ高度依赖于上下文。在WPDP下,UQ与假阳性率和AUC的相关性比与MCC、F1分数和其他指标更一致;这些相关性也因分类器类别和数据集集合而异。性能和校准相关但不可互换;具有强区分能力的分类器仍可能表现出较大的校准误差。在CPDP下,若干UQ-性能和UQ-校准相关性减弱或反转,表明不确定性信号不能可靠地跨项目转移。因此,UQ应针对特定性能目标进行评估。校准应使用多个指标独立评估。在指导质量保证决策之前,应重新验证转移的概率。

英文摘要:

Software defect prediction (SDP) classifiers produce probabilities used for inspection prioritization, threshold tuning, and risk communication. Probability-based uncertainty quantification (UQ) characterizes prediction confidence, but whether common UQ metrics reliably indicate performance and calibration remains unclear. We conducted a large-scale empirical study of probability-based UQ for SDP. We evaluated five UQ metrics, six performance metrics, and three calibration metrics for 16 representative classifiers. We analyzed these relationships under two prediction settings: within-project defect prediction (WPDP), using 36 benchmark datasets, and cross-project defect prediction (CPDP), using 32 feature-compatible datasets. Results showed that UQ was highly context-dependent. Under WPDP, UQ correlated more consistently with false positive rate and AUC than with MCC, F1 score, and other metrics; these correlations also varied across classifier categories and dataset collections. Performance and calibration were related but not interchangeable; classifiers with strong discrimination could still exhibit large calibration error. Under CPDP, several UQ-performance and UQ-calibration correlations weakened or reversed, indicating that uncertainty signals do not reliably transfer across projects. Thus, UQ should be evaluated against specific performance objectives. Calibration should be assessed independently using multiple metrics. Transferred probabilities should be revalidated before guiding quality-assurance decisions.

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

↑