mlsanityData to 14 Oct 2026

ML in a Box: Analyzing Containerization Practices in Open Source ML Projects

arXiv 2607.10126 ↗First posted 11 Jul 2026cs.SE cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Containerization has become increasingly essential in the machine learning (ML) domain, providing reproducibility, portability, and environment consistency. While prior studies have analyzed Dockerfile structures and best practices, none have examined ML projects in depth to reveal how the iterative nature of ML workflows influences container footprint, build performance, and caching behavior. We present the first large scale empirical study of 1,993 ML related Dockerfiles, combining quantitative analysis of container roles in ML projects and build dynamics with a qualitative investigation of refactoring practices. Results show that containers serve distinct roles across training, inference, and infrastructure. Containers are typically large, averaging 10.27 GB in size, and require long build times of about 8.84 minutes. We find that 44.4% of commits trigger rebuilds, primarily due to context file changes (96.4%), with experimentation being the main motive behind those commits that initiate rebuilds. Despite partial cache reuse, 71% of rebuild work is wasted on redundant computation. From stable projects, we identify 7 recurring ML-specific Dockerfile refactoring patterns that improve build efficiency and reduce container footprint.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 10 of its 28 references that are in the map. First posted on arXiv 11 Jul 2026.

Builds on

10 of 28 references.

References · 10

  1. 2022Studying the Practices of Deploying Machine Learning Projects on Dockercited by 8
  2. 2018How Developers Iterate on Machine Learning Workflows -- A Survey of the Applied Machine Learning Literaturecited by 6
  3. 2022A Container-Based Workflow for Distributed Training of Deep Learning Algorithms in HPC Clusterscited by 3
  4. 2022Fixing Dockerfile Smells: An Empirical Studycited by 3
  5. 2024Empirical Analysis on CI/CD Pipeline Evolution in Machine Learning Projectscited by 3
  6. 2018Mining Container Image Repositories for Software Configuration and Beyondcited by 2
  7. 2020Learning from, Understanding, and Supporting DevOps Artifacts for Dockercited by 1
  8. 2025Refactoring for Dockerfile Quality: A Dive into Developer Practices and Automation Potentialcited by 1
  9. 2025FaaSGuard: Secure CI/CD for Serverless Applications -- An OpenFaaS Case Studycited by 1
  10. 2025Cost-Performance Analysis: A Comparative Study of CPU-Based Serverless and GPU-Based Training Architecturescited by 1

Built on by

Not cited yet.