arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2207.11976cs.SEcs.LG
收藏

机器学习的差分测试:对超越深度学习的分类算法的分析

Differential testing for machine learning: an analysis for classification algorithms beyond deep learning

TU Clausthal(克劳斯塔尔工业大学);University of Goettingen(哥廷根大学)

Steffen Herbold, Steffen Tunkel

摘要:

内容:差分测试是一种有用的方法,它使用相同算法的不同实现并比较软件测试的结果。近年来,这种方法被成功地用于深度学习框架的测试活动。目的:除了深度学习之外,对差分测试的应用知之甚少。在本文中,我们希望缩小分类算法的这一差距。方法:我们使用Scikit-learn、Weka、Spark MLlib和Caret进行了一个案例研究,其中我们通过考虑哪些算法在多个框架中可用来确定差分测试的潜力,通过识别应该表现出相同行为的算法对来确定可行性,以及通过对识别出的算法对执行测试并分析偏差来确定有效性。结果如下:虽然我们发现了流行算法的巨大潜力,但可行性似乎有限,因为通常不可能确定其他框架中相同的配置。可行性测试的执行表明,分数和类别存在大量偏差。只有基于类的统计显著性的宽松方法才不会导致大量的测试失败。结论:深度学习之外的差异测试的潜力似乎有限,无法研究机器学习库的质量。如果从业者对实现有深入的了解,他们仍然可以使用这种方法,特别是如果一个只考虑类的显着差异的粗略预言就足够了。

英文摘要:

Context: Differential testing is a useful approach that uses different implementations of the same algorithms and compares the results for software testing. In recent years, this approach was successfully used for test campaigns of deep learning frameworks. Objective: There is little knowledge on the application of differential testing beyond deep learning. Within this article, we want to close this gap for classification algorithms. Method: We conduct a case study using Scikit-learn, Weka, Spark MLlib, and Caret in which we identify the potential of differential testing by considering which algorithms are available in multiple frameworks, the feasibility by identifying pairs of algorithms that should exhibit the same behavior, and the effectiveness by executing tests for the identified pairs and analyzing the deviations. Results: While we found a large potential for popular algorithms, the feasibility seems limited because often it is not possible to determine configurations that are the same in other frameworks. The execution of the feasible tests revealed that there is a large amount of deviations for the scores and classes. Only a lenient approach based on statistical significance of classes does not lead to a huge amount of test failures. Conclusions: The potential of differential testing beyond deep learning seems limited for research into the quality of machine learning libraries. Practitioners may still use the approach if they have deep knowledge about implementations, especially if a coarse oracle that only considers significant differences of classes is sufficient.

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

↑