Quality issues in Machine Learning Software Systems

Pierre-Olivier Côté, Amin Nikanjam, Rached Bouchoucha, Foutse Khomh

This paper, "Quality issues in Machine Learning Software Systems," presents a research roadmap rather than a final set of experimental results. It outlines a rigorous empirical study designed to bridge the gap between academic theory and the messy reality of industrial Machine Learning (ML).

TL;DR

The authors propose a large-scale empirical study to identify and catalog real-world "bad practices" and quality issues in Machine Learning Software Systems (MLSSs). By interviewing over 50 practitioners and validating findings through surveys, they aim to provide a practitioner-centric foundation for building better AI quality assurance tools.

What Problem Does This Paper Address?

While Machine Learning (ML) models are often treated as isolated mathematical entities in research, in the real world, they are components of larger software systems (MLSSs). When these systems fail—due to poor data, "stale" models, or integration bugs—the consequences can range from minor financial losses to threats to human life.

The authors identify a significant gap: most existing research on ML quality comes from tech giants like Google or Meta. There is a lack of diverse, empirical data on what practitioners in medium-sized companies actually struggle with. Furthermore, while "code smells" (indicators of poor programming) are well-understood in traditional software, we lack a comprehensive catalog of "ML smells" or bad practices that cover the entire lifecycle, from data collection to post-deployment maintenance.

Methods

The study follows Straussian Grounded Theory, a qualitative research method where theories are built inductively from data rather than tested against a pre-existing hypothesis.

  • Semi-Structured Interviews: The core of the study involves interviewing at least 50 experts, including Data Scientists, ML Engineers, and Project Managers.
  • Multi-Channel Recruitment: To ensure a diverse sample, the authors recruit from their industrial partner (MoovAI), LinkedIn, Q&A sites like Stack Overflow (targeting top "askers" and "answerers"), and specialized Reddit communities.
  • Qualitative Analysis: Interviews are transcribed and analyzed using the Delve tool. Researchers use "Open Coding" to break down transcripts into discrete concepts and "Axial Coding" to group them into broader categories of quality issues.
  • Validation Questionnaire: After the qualitative phase, the authors plan to send a Likert-scale questionnaire to MLSS owners to quantify how prevalent and severe the identified issues actually are in the industry.

Datasets

Not discussed in the paper. As this is a study about the engineering process and practitioner experiences, it does not use standard ML training benchmarks. Instead, the "data" consists of interview transcripts and survey responses.

Key Insights and Ideas

  • Quality Beyond Accuracy: The authors argue that quality assessment must move beyond simple prediction accuracy to include robustness, explainability, scalability, hardware demand, and model complexity.
  • The "87% Failure" Hurdle: The paper cites a sobering statistic: 87% of ML proofs-of-concept never make it to production, largely due to a lack of "production-grade" quality.
  • The Systemic View: A key "aha" moment is the shift from "Model Quality" to "System Quality." A perfect model is useless if the data pipeline feeding it is brittle or if the system cannot handle "concept drift" (when real-world data distributions change over time).
  • Practitioner-Led Taxonomy: By asking practitioners about "root causes, symptoms, and consequences," the authors aim to create a taxonomy that is actually useful for engineers on the ground, rather than just theoretically interesting to academics.

Key Results

As this is a study design/proposal paper, there are no final quantitative results. The primary "result" is the definition of five critical Research Questions (RQs) that the study aims to answer:

  1. What are the most prevalent quality issues?
  2. What are their root causes and symptoms?
  3. How are practitioners currently mitigating these issues?
  4. Which data types (images, text, etc.) are the most challenging for quality?
  5. What are the challenges of maintaining quality as a model evolves in production?

Limitations and Future Work

The authors acknowledge several potential hurdles:

  • Internal Validity: Interviews are subjective. Practitioners might be hesitant to admit to "bad practices" or mistakes, leading to potential misinformation.
  • Selection Bias: A significant portion of the initial interviewees comes from a single partner (MoovAI), which might skew results toward the needs of medium-to-large enterprises and overlook the unique struggles of tiny startups.
  • Language Bias: Interviews will be conducted in both English and French; the authors note that subtle differences in terminology between languages could introduce bias during the coding process.

Future Work: Once the catalog of issues is complete, the authors intend to use it to develop automated quality assurance tools that can detect and remedy these issues during the ML development lifecycle.

Summary updated

BibTeX
@misc{cote2023quality,
  author = {Pierre-Olivier Côté and Amin Nikanjam and Rached Bouchoucha and Foutse Khomh},
  title = {{Quality issues in Machine Learning Software Systems}},
  year = {2023},
  eprint = {2306.15007},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.15007},
}
Figure