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.
Constrained Co-evolutionary Metamorphic Differential Testing for Autonomous Systems with an Interpretability Approach
School of EECS, University of Ottawa(渥太华大学电气与计算机工程学院);Lero SFI centre for Software Research, University of Limerick(利默里克大学Lero软件研究中心);Waterloo Research Center of Huawei Technologies Canada Co., Ltd.(华为技术有限公司加拿大分公司滑铁卢研发中心)
DiffGAN: A Test Generation Approach for Differential Testing of Deep Neural Networks for Image Analysis
School of EECS, University of Ottawa(滑铁卢大学电子工程与计算机科学学院);Software and Information Technology Engineering Department, École de Technologie Supérieure(École de Technologie Supérieure软件与信息技术工程系);School of Electrical Engineering and Computer Science (EECS), University of Ottawa(滑铁卢大学电子工程与计算机科学学院);Lero SFI Research Center and University of Limerick(Lero SFI研究中心和利默里克大学);Department of Research and Development, General Motors(通用汽车公司研发部)
OpDiffer: LLM-Assisted Opcode-Level Differential Testing of Ethereum Virtual Machine
Beihang University(北京航空航天大学);Zhongguancun Laboratory(中关村实验室);The Hong Kong Polytechnic University(香港理工大学);Huazhong University of Science and Technology(华中科技大学)