arrow
Return

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

delete2023-01-24
delete0
delete
OA
AI
S
Steffen Herbold *
S
Steffen Tunkel
DOI:10.1007/s10664-022-10273-9delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
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. There is little knowledge about the application of differential testing beyond deep learning. Within this article, we want to close this gap for classification algorithms. 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. 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 number 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. 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.
Keywords:
Machine learning
Software testing
Differential testing

Journal

Empirical Software Engineering cover
Empirical Software Engineering
IF:
3.6
Papers:
2.0K
Citations:
5.3K

Organization

U
University of Gottingen
Scholars:
2.5W
Papers: 2.1W
Citations: 36
U
University of Passau
Scholars:
692
Papers: 680
Citations: 515
Cited Papers

Cited Papers

Testing and validating machine learning classifiers by metamorphic testing
err2011-04-01
err251
errOAAI
errXie, Xiaoyuan; Ho, Joshua W. K.; Murphy, Christian; Kaiser, Gail; Xu, Baowen; Chen, Tsong Yueh
errShare
errSave
errShare
errSave
The Effect of Electron Irradiation on the Structure of Sodium Aluminum-Iron Phosphate Glasses
err2017-02-20
err0
PREAI
errS. V. Stefanovsky; O. I. Stefanovsky; M.I Kadyko; V. A. Zhachkin; L. D. Bogomolova
errShare
errSave
Electricity market prices for day-ahead ancillary services and energy: Texas
err2019-01-01
err0
PREAI
errJay Zarnikau; C.K. Woo; Shuangshuang Zhu; Ross Baldick; Chen-Hao Tsai; Jingwei Meng
errShare
errSave
Bagging predictors
err1996-08-01
err1.0W
PREAI
errBreiman, L
errShare
errSave
Machine Learning Testing: Survey, Landscapes and Horizons
err2022-01-01
err441
errOAAI
errZhang, Jie M.; Harman, Mark; Ma, Lei; Liu, Yang
errShare
errSave
errShare
errSave
Taurine Concentrations in Congestive Heart Failure
err1974-06-14
err0
PREAI
errRyan Huxtable; Rubin Bressler
errShare
errSave
researcher View more