Continuous Integration Practices in Machine Learning Projects: The Practitioners` Perspective

📅 2025-02-24
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
This study addresses unique challenges hindering continuous integration (CI) adoption in machine learning (ML) projects—namely, long build times, low test coverage, non-deterministic behavior, and strong data dependencies. Using a mixed-methods approach, we conducted a survey of 155 ML practitioners, performed in-depth interviews with thematic coding, and analyzed empirical data from 47 industrial ML projects. Our analysis identified eight key distinctions between traditional and ML-specific CI and five recurring challenges. We propose novel, ML-tailored CI practices: automated tracking of model performance metrics, dynamic test prioritization, and interdisciplinary collaboration–driven mechanisms to strengthen testing culture. Finally, we synthesize these insights into a practical, empirically grounded ML-CI best-practices guide—the first systematic, evidence-based framework for building efficient and robust CI pipelines in ML development.

Technology Category

Machine Learning: Scalability of ML SystemsHumans and AI: Human-in-the-loop Machine LearningNatural Language Processing: Interpretability, Analysis, and Evaluation of NLP Models

Application Category

Security and Privacy: Security and privacy of machine learning and AI applicationsSystems and Infrastructure for Web, Mobile and WoT: Applied ML and AI for Web-based mobile applicationsResponsible Web: Machine-in-the-loop, human agency and autonomy
📝 Abstract
Continuous Integration (CI) is a cornerstone of modern software development. However, while widely adopted in traditional software projects, applying CI practices to Machine Learning (ML) projects presents distinctive characteristics. For example, our previous work revealed that ML projects often experience longer build durations and lower test coverage rates compared to their non-ML counterparts. Building on these quantitative findings, this study surveys 155 practitioners from 47 ML projects to investigate the underlying reasons for these distinctive characteristics through a qualitative perspective. Practitioners highlighted eight key differences, including test complexity, infrastructure requirements, and build duration and stability. Common challenges mentioned by practitioners include higher project complexity, model training demands, extensive data handling, increased computational resource needs, and dependency management, all contributing to extended build durations. Furthermore, ML systems' non-deterministic nature, data dependencies, and computational constraints were identified as significant barriers to effective testing. The key takeaway from this study is that while foundational CI principles remain valuable, ML projects require tailored approaches to address their unique challenges. To bridge this gap, we propose a set of ML-specific CI practices, including tracking model performance metrics and prioritizing test execution within CI pipelines. Additionally, our findings highlight the importance of fostering interdisciplinary collaboration to strengthen the testing culture in ML projects. By bridging quantitative findings with practitioners' insights, this study provides a deeper understanding of the interplay between CI practices and the unique demands of ML projects, laying the groundwork for more efficient and robust CI strategies in this domain.
Problem

Research questions and friction points this paper is trying to address.

Challenges in applying CI to ML projects
Unique ML project characteristics and CI
Proposing ML-specific CI practices
Innovation

Methods, ideas, or system contributions that make the work stand out.

ML-specific CI practices
tracking model performance metrics
prioritizing test execution
🔎 Similar Papers
No similar papers found.
💼 Related Jobs
No related jobs found.
J
João Helis Bernardo
Federal University of Rio Grande do Norte, Natal, Brazil
D
Daniel Alencar da Costa
University of Otago, Dunedin, New Zealand
F
F. Côgo
Centre for Software Excellence, Huawei, Kingston, Canada
S
S'ergio Queir'oz de Medeiros
Federal University of Rio Grande do Norte, Natal, Brazil
U
U. Kulesza
Federal University of Rio Grande do Norte, Natal, Brazil