On Testing Machine Learning Programs
Not on the map. Why?
Abstract (arXiv)
Nowadays, we are witnessing a wide adoption of Machine learning (ML) models in many safety-critical systems, thanks to recent breakthroughs in deep learning and reinforcement learning. Many people are now interacting with systems based on ML every day, e.g., voice recognition systems used by virtual personal assistants like Amazon Alexa or Google Home. As the field of ML continues to grow, we are likely to witness transformative advances in a wide range of areas, from finance, energy, to health and transportation. Given this growing importance of ML-based systems in our daily life, it is becoming utterly important to ensure their reliability. Recently, software researchers have started adapting concepts from the software testing domain (e.g., code coverage, mutation testing, or property-based testing) to help ML engineers detect and correct faults in ML programs. This paper reviews current existing testing practices for ML programs. First, we identify and explain challenges that should be addressed when testing ML programs. Next, we report existing solutions found in the literature for testing ML programs. Finally, we identify gaps in the literature related to the testing of ML programs and make recommendations of future research directions for the scientific community. We hope that this comprehensive review of software testing practices will help ML engineers identify the right approach to improve the reliability of their ML-based systems. We also hope that the research community will act on our proposed research directions to advance the state of the art of testing for ML programs.
Key facts. Cited by 48 papers in the map (data through 14 Oct 2026). First posted on arXiv 5 Dec 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 8; 2022: 8; 2023: 13; 2024: 15; 2025: 3; 2026: 1.
48 papers.
Sort:
By area:
- 2021Software Engineering for AI-Based Systems: A Surveycited by 69
- 2021Collaboration Challenges in Building ML-Enabled Systems: Communication, Documentation, Engineering, and Processcited by 56
- 2023Emotionally Numb or Empathetic? Evaluating How LLMs Feel Using EmotionBenchcited by 54
- 2023A Meta-Summary of Challenges in Building Products with ML Components -- Collecting Experiences from 4758+ Practitionerscited by 22
- 2023METAL: Metamorphic Testing Framework for Analyzing Large-Language Model Qualitiescited by 20
- 2023Testing of Deep Reinforcement Learning Agents with Surrogate Modelscited by 13
- 2023Challenges and Practices of Deep Learning Model Reengineering: A Case Study on Computer Visioncited by 11
- 2024A Survey on Verification and Validation, Testing and Evaluations of Neurosymbolic Artificial Intelligencecited by 10
- 2021Automatic Fault Detection for Deep Learning Programs Using Graph Transformationscited by 9
- 2023Data Cleaning and Machine Learning: A Systematic Literature Reviewcited by 9
- 2024PeaTMOSS: A Dataset and Initial Analysis of Pre-Trained Models in Open-Source Softwarecited by 9
- 2024Large Language Models Synergize with Automated Machine Learningcited by 9
36 more
- 2024Machine Learning Robustness: A Primercited by 8
- 2025Challenges in Testing Large Language Model Based Software: A Faceted Taxonomycited by 8
- 2022Quality issues in Machine Learning Software Systemscited by 7
- 2022Systematic Training and Testing for Machine Learning Using Combinatorial Interaction Testingcited by 6
- 2023Model Reporting for Certifiable AI: A Proposal from Merging EU Regulation into AI Developmentcited by 6
- 2024Towards Enhancing the Reproducibility of Deep Learning Bugs: An Empirical Studycited by 6
- 2024Online Safety Analysis for LLMs: a Benchmark, an Assessment, and a Path Forwardcited by 6
- 2024A Large-Scale Study of Model Integration in ML-Enabled Software Systemscited by 6
- 2024Deep Learning Library Testing: Definition, Methods and Challengescited by 5
- 2024Maintainability Challenges in ML: A Systematic Literature Reviewcited by 5
- 2022Data Smells: Categories, Causes and Consequences, and Detection of Suspicious Data in AI-based Systemscited by 4
- 2024Benchmarking Generative AI Models for Deep Learning Test Input Generationcited by 4
- 2021Validation of Simulation-Based Testing: Bypassing Domain Shift with Label-to-Image Synthesiscited by 3
- 2022Tailored Uncertainty Estimation for Deep Learning Systemscited by 3
- 2022DiverGet: A Search-Based Software Testing Approach for Deep Neural Network Quantization Assessmentcited by 3
- 2022Differential testing for machine learning: an analysis for classification algorithms beyond deep learningcited by 3
- 2023Privacy Preservation in Artificial Intelligence and Extended Reality (AI-XR) Metaverses: A Surveycited by 3
- 2021Machine Learning Application Development: Practitioners' Insightscited by 2
- 2022Testing Deep Learning Models: A First Comparative Study of Multiple Testing Techniquescited by 2
- 2022Testing Feedforward Neural Networks Training Programscited by 2
- 2023MLTEing Models: Negotiating, Evaluating, and Documenting Model and System Qualitiescited by 2
- 2024Generative transformations and patterns in LLM-native approaches for software verification and falsificationcited by 2
- 2021A Review on Oracle Issues in Machine Learningcited by 1
- 2023PeaTMOSS: Mining Pre-Trained Models in Open-Source Softwarecited by 1
- 2023GIST: Generated Inputs Sets Transferability in Deep Learningcited by 1
- 2024How to Evaluate Entity Resolution Systems: An Entity-Centric Framework with Application to Inventor Name Disambiguationcited by 1
- 2021TimeGym: Debugging for Time Series Modeling in Pythoncited by 0
- 2021Is the Rush to Machine Learning Jeopardizing Safety? Results of a Surveycited by 0
- 2023Quality Issues in Machine Learning Software Systemscited by 0
- 2023Path Analysis for Effective Fault Localization in Deep Neural Networkscited by 0
- 2024Using Quality Attribute Scenarios for ML Model Test Case Generationcited by 0
- 2024Fuzzy Logic Guided Reward Function Variation: An Oracle for Testing Reinforcement Learning Programscited by 0
- 2024CAP: Detecting Unauthorized Data Usage in Generative Models via Prompt Generationcited by 0
- 2025Scalability and Maintainability Challenges and Solutions in Machine Learning: Systematic Literature Reviewcited by 0
- 2025The Engineer's Dilemma: A Review of Establishing a Legal Framework for Integrating Machine Learning in Construction by Navigating Precedents and Industry Expectationscited by 0
- 2026Leveraging System-Level Observations to Inform Bayesian Learning of Model Parameters for Quantitative Verificationcited by 0
- 2026Leveraging System-Level Observations to Inform Bayesian Learning of Model Parameters for Quantitative Verification4 Aug 2026
- 2025The Engineer's Dilemma: A Review of Establishing a Legal Framework for Integrating Machine Learning in Construction by Navigating Precedents and Industry Expectations11 Jul 2025
- 2025Scalability and Maintainability Challenges and Solutions in Machine Learning: Systematic Literature Review15 Apr 2025
- 2025Challenges in Testing Large Language Model Based Software: A Faceted Taxonomy1 Mar 2025
- 2024Benchmarking Generative AI Models for Deep Learning Test Input Generation23 Dec 2024
- 2024CAP: Detecting Unauthorized Data Usage in Generative Models via Prompt Generation8 Oct 2024
- 2024Maintainability Challenges in ML: A Systematic Literature Review17 Aug 2024
- 2024A Large-Scale Study of Model Integration in ML-Enabled Software Systems12 Aug 2024
- 2024Fuzzy Logic Guided Reward Function Variation: An Oracle for Testing Reinforcement Learning Programs28 Jun 2024
- 2024Using Quality Attribute Scenarios for ML Model Test Case Generation12 Jun 2024
- 2024Large Language Models Synergize with Automated Machine Learning6 May 2024
- 2024Deep Learning Library Testing: Definition, Methods and Challenges27 Apr 2024
36 more
- 2024Generative transformations and patterns in LLM-native approaches for software verification and falsification14 Apr 2024
- 2024Online Safety Analysis for LLMs: a Benchmark, an Assessment, and a Path Forward12 Apr 2024
- 2024How to Evaluate Entity Resolution Systems: An Entity-Centric Framework with Application to Inventor Name Disambiguation8 Apr 2024
- 2024Machine Learning Robustness: A Primer1 Apr 2024
- 2024PeaTMOSS: A Dataset and Initial Analysis of Pre-Trained Models in Open-Source Software1 Feb 2024
- 2024A Survey on Verification and Validation, Testing and Evaluations of Neurosymbolic Artificial Intelligence6 Jan 2024
- 2024Towards Enhancing the Reproducibility of Deep Learning Bugs: An Empirical Study5 Jan 2024
- 2023METAL: Metamorphic Testing Framework for Analyzing Large-Language Model Qualities11 Dec 2023
- 2023GIST: Generated Inputs Sets Transferability in Deep Learning1 Nov 2023
- 2023Path Analysis for Effective Fault Localization in Deep Neural Networks29 Oct 2023
- 2023PeaTMOSS: Mining Pre-Trained Models in Open-Source Software5 Oct 2023
- 2023Data Cleaning and Machine Learning: A Systematic Literature Review3 Oct 2023
- 2023Privacy Preservation in Artificial Intelligence and Extended Reality (AI-XR) Metaverses: A Survey19 Sep 2023
- 2023Emotionally Numb or Empathetic? Evaluating How LLMs Feel Using EmotionBench7 Aug 2023
- 2023Model Reporting for Certifiable AI: A Proposal from Merging EU Regulation into AI Development21 Jul 2023
- 2023Quality Issues in Machine Learning Software Systems26 Jun 2023
- 2023Testing of Deep Reinforcement Learning Agents with Surrogate Models22 May 2023
- 2023A Meta-Summary of Challenges in Building Products with ML Components -- Collecting Experiences from 4758+ Practitioners31 Mar 2023
- 2023Challenges and Practices of Deep Learning Model Reengineering: A Case Study on Computer Vision13 Mar 2023
- 2023MLTEing Models: Negotiating, Evaluating, and Documenting Model and System Qualities3 Mar 2023
- 2022Quality issues in Machine Learning Software Systems18 Aug 2022
- 2022Differential testing for machine learning: an analysis for classification algorithms beyond deep learning25 Jul 2022
- 2022DiverGet: A Search-Based Software Testing Approach for Deep Neural Network Quantization Assessment13 Jul 2022
- 2022Tailored Uncertainty Estimation for Deep Learning Systems29 Apr 2022
- 2022Testing Feedforward Neural Networks Training Programs1 Apr 2022
- 2022Data Smells: Categories, Causes and Consequences, and Detection of Suspicious Data in AI-based Systems19 Mar 2022
- 2022Testing Deep Learning Models: A First Comparative Study of Multiple Testing Techniques24 Feb 2022
- 2022Systematic Training and Testing for Machine Learning Using Combinatorial Interaction Testing28 Jan 2022
- 2021Machine Learning Application Development: Practitioners' Insights31 Dec 2021
- 2021Is the Rush to Machine Learning Jeopardizing Safety? Results of a Survey29 Nov 2021
- 2021Collaboration Challenges in Building ML-Enabled Systems: Communication, Documentation, Engineering, and Process19 Oct 2021
- 2021Validation of Simulation-Based Testing: Bypassing Domain Shift with Label-to-Image Synthesis10 Jun 2021
- 2021Automatic Fault Detection for Deep Learning Programs Using Graph Transformations17 May 2021
- 2021Software Engineering for AI-Based Systems: A Survey5 May 2021
- 2021A Review on Oracle Issues in Machine Learning4 May 2021
- 2021TimeGym: Debugging for Time Series Modeling in Python4 May 2021
- 2021Software Engineering for AI-Based Systems: A Surveycited by 69
- 2021Collaboration Challenges in Building ML-Enabled Systems: Communication, Documentation, Engineering, and Processcited by 56
- 2023Emotionally Numb or Empathetic? Evaluating How LLMs Feel Using EmotionBenchcited by 54
- 2023A Meta-Summary of Challenges in Building Products with ML Components -- Collecting Experiences from 4758+ Practitionerscited by 22
- 2023METAL: Metamorphic Testing Framework for Analyzing Large-Language Model Qualitiescited by 20
- 2023Testing of Deep Reinforcement Learning Agents with Surrogate Modelscited by 13
- 2023Challenges and Practices of Deep Learning Model Reengineering: A Case Study on Computer Visioncited by 11
- 2024A Survey on Verification and Validation, Testing and Evaluations of Neurosymbolic Artificial Intelligencecited by 10
- 2021Automatic Fault Detection for Deep Learning Programs Using Graph Transformationscited by 9
- 2023Data Cleaning and Machine Learning: A Systematic Literature Reviewcited by 9
- 2024PeaTMOSS: A Dataset and Initial Analysis of Pre-Trained Models in Open-Source Softwarecited by 9
- 2024Large Language Models Synergize with Automated Machine Learningcited by 9
12 most cited of 45 All 45 (JSON)
- 2026Leveraging System-Level Observations to Inform Bayesian Learning of Model Parameters for Quantitative Verification4 Aug 2026
- 2025The Engineer's Dilemma: A Review of Establishing a Legal Framework for Integrating Machine Learning in Construction by Navigating Precedents and Industry Expectations11 Jul 2025
- 2025Scalability and Maintainability Challenges and Solutions in Machine Learning: Systematic Literature Review15 Apr 2025
- 2024CAP: Detecting Unauthorized Data Usage in Generative Models via Prompt Generation8 Oct 2024
- 2024Maintainability Challenges in ML: A Systematic Literature Review17 Aug 2024
- 2024A Large-Scale Study of Model Integration in ML-Enabled Software Systems12 Aug 2024
- 2024Using Quality Attribute Scenarios for ML Model Test Case Generation12 Jun 2024
- 2024Large Language Models Synergize with Automated Machine Learning6 May 2024
- 2024Deep Learning Library Testing: Definition, Methods and Challenges27 Apr 2024
- 2024Generative transformations and patterns in LLM-native approaches for software verification and falsification14 Apr 2024
- 2024Online Safety Analysis for LLMs: a Benchmark, an Assessment, and a Path Forward12 Apr 2024
- 2024How to Evaluate Entity Resolution Systems: An Entity-Centric Framework with Application to Inventor Name Disambiguation8 Apr 2024
12 newest of 45 All 45 (JSON)