mlsanityData to 14 Oct 2026

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

arXiv 2207.11976 ↗First posted 25 Jul 2022cs.SE cs.LGcited by 3

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 11 of its 58 references that are in the map. First posted on arXiv 25 Jul 2022.

Builds on

11 of 58 references.

References · 11

  1. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  2. 2017DeepXplore: Automated Whitebox Testing of Deep Learning Systemscited by 311
  3. 2019Machine Learning Testing: Survey, Landscapes and Horizonscited by 218
  4. 2016Time for a change: a tutorial for comparing multiple classifiers through Bayesian analysiscited by 93
  5. 2021Software Engineering for AI-Based Systems: A Surveycited by 69
  6. 2016Theano: A Python framework for fast computation of mathematical expressionscited by 64
  7. 2015MLlib: Machine Learning in Apache Sparkcited by 55
  8. 2018On Testing Machine Learning Programscited by 48
  9. 2020A Software Engineering Perspective on Engineering Machine Learning Systems: State of the Art and Challengescited by 33
  10. 2020Smoke Testing for Machine Learning: Simple Tests to Discover Severe Defectscited by 5
  11. 2022Software Testing for Machine Learningcited by 5

Built on by

Cited by year

Citing papers per year: 2023: 1; 2024: 1; 2025: 1.

3 papers.