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

当少即是多:论“协同训练”对半监督软件缺陷预测器的价值

When Less is More: On the Value of "Co-training" for Semi-Supervised Software Defect Predictors

North Carolina State University(北卡罗来纳州立大学)

Suvodeep Majumder, Joymallya Chakraborty, Tim Menzies

AI总结:

本文研究了半监督方法在软件缺陷预测中的应用,发现协同训练在仅标注2.5%数据时即可达到与全量数据相当的预测效果,但需谨慎选择方法且“multi-view”方法并不改善预测。

摘要:

将一个模块标记为缺陷或非缺陷是一项昂贵的任务。因此,可用于训练的标注数据量通常存在限制。半监督分类器在训练模型时使用的标签要少得多。然而,半监督方法多种多样,包括自标记、协同训练、最大间隔和基于图的方法等。在软件工程(SE)领域,只有少数这些方法被测试用于(例如)预测缺陷,而且即便如此,这些方法也仅在少数项目上进行了测试。\n本文将55种广泛的半监督学习器应用于714个项目。我们发现,半监督“协同训练方法”的效果显著优于其他方法。具体而言,在仅标注2.5%的数据后,其做出的预测与使用100%数据的预测相比具有竞争力。\n尽管如此,协同训练需要谨慎使用,因为协同训练方法的具体选择需要根据用户的具体目标仔细挑选。此外,我们警告称,一种常用的协同训练方法(“multi-view”——即不同的学习器获取不同的列集合)并不能改善预测效果(同时给运行时间成本增加过多,11小时对比1.8小时)。\n这些减少是否能在软件分析的其他领域观察到,是一个值得未来工作探讨的开放问题。为了协助探索其他领域,所有使用的代码均可在 https://github.com/ai-se/Semi-Supervised 获取。

英文摘要:

Labeling a module defective or non-defective is an expensive task. Hence, there are often limits on how much-labeled data is available for training. Semi-supervised classifiers use far fewer labels for training models. However, there are numerous semi-supervised methods, including self-labeling, co-training, maximal-margin, and graph-based methods, to name a few. Only a handful of these methods have been tested in SE for (e.g.) predicting defects and even there, those methods have been tested on just a handful of projects. This paper applies a wide range of 55 semi-supervised learners to over 714 projects. We find that semi-supervised "co-training methods" work significantly better than other approaches. Specifically, after labeling, just 2.5% of data, then make predictions that are competitive to those using 100% of the data. That said, co-training needs to be used cautiously since the specific choice of co-training methods needs to be carefully selected based on a user's specific goals. Also, we warn that a commonly-used co-training method ("multi-view"-- where different learners get different sets of columns) does not improve predictions (while adding too much to the run time costs 11 hours vs. 1.8 hours). It is an open question, worthy of future work, to test if these reductions can be seen in other areas of software analytics. To assist with exploring other areas, all the codes used are available at https://github.com/ai-se/Semi-Supervised.

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

↑