用于软件缺陷预测的量子和经典支持向量分类器的比较分析:一项探索性研究
Comparative Analysis of Quantum and Classical Support Vector Classifiers for Software Bug Prediction: An Exploratory Study
AI总结:
本研究探讨了量子支持向量分类器(QSVC和PQSVC)在14个开源项目中检测有缺陷软件提交的应用,提出数据集划分、预测聚合和增量测试方法以克服量子特征映射挑战,证明了QML在缺陷预测中的有效性。
摘要:
目的:量子计算有望通过快速且实用的解决方案改变各个领域的问题解决方式。在软件演化与维护领域,量子机器学习(QML)在很大程度上仍是一个未被充分探索的领域,特别是在应对从代码仓库中检测有缺陷的软件提交等挑战时。方法:在本研究中,我们探讨了量子支持向量分类器(QSVC)在14个开源软件项目中检测有缺陷软件提交的实际应用,这些项目具有不同的数据集规模,包含30,924个数据实例。我们将QML算法PQSVC(Pegasos QSVC)和QSVC与经典支持向量分类器(SVC)进行了比较。我们的技术通过将大型数据集划分为较小的子集,解决了QSVC算法中处理大型数据集的问题。我们提出并评估了一种聚合方法,以结合这些模型的预测结果来检测整个测试数据集。我们还引入了一种增量测试方法,以克服测试过程中量子特征映射的困难。结果:研究表明了QSVC和PQSVC在检测有缺陷软件提交方面的有效性。聚合技术成功结合了来自较小数据子集的预测,提高了整个测试数据集的整体检测准确率。增量测试方法有效地管理了测试过程中与量子特征映射相关的挑战。结论:我们促进了QML算法在缺陷预测中的发展,揭示了该领域进一步研究的潜力。Short-Term Activity Frame(STAF)的特定场景突出了在软件系统的初始开发阶段对有缺陷软件提交的早期检测,尤其是在数据集规模不足以训练机器学习模型时。
英文摘要:
Purpose: Quantum computing promises to transform problem-solving across various domains with rapid and practical solutions. Within Software Evolution and Maintenance, Quantum Machine Learning (QML) remains mostly an underexplored domain, particularly in addressing challenges such as detecting buggy software commits from code repositories. Methods: In this study, we investigate the practical application of Quantum Support Vector Classifiers (QSVC) for detecting buggy software commits across 14 open-source software projects with diverse dataset sizes encompassing 30,924 data instances. We compare the QML algorithm PQSVC (Pegasos QSVC) and QSVC against the classical Support Vector Classifier (SVC). Our technique addresses large datasets in QSVC algorithms by dividing them into smaller subsets. We propose and evaluate an aggregation method to combine predictions from these models to detect the entire test dataset. We also introduce an incremental testing methodology to overcome the difficulties of quantum feature mapping during the testing approach. Results: The study shows the effectiveness of QSVC and PQSVC in detecting buggy software commits. The aggregation technique successfully combines predictions from smaller data subsets, enhancing the overall detection accuracy for the entire test dataset. The incremental testing methodology effectively manages the challenges associated with quantum feature mapping during the testing process. Conclusion: We contribute to the advancement of QML algorithms in defect prediction, unveiling the potential for further research in this domain. The specific scenario of the Short-Term Activity Frame (STAF) highlights the early detection of buggy software commits during the initial developmental phases of software systems, particularly when dataset sizes remain insufficient to train machine learning models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。