Model Development Process

Przemyslaw BiecekarXiv 2019

Introduction: The "Artisanal" Challenge of Machine Learning

The demand for predictive models has grown exponentially, yet the process of building them remains largely "artisanal." Development workflows often vary significantly between teams, leading to inconsistencies in model quality, maintenance, and scalability. To address this, the proposed Model Development Process (MDP) offers a structured framework inspired by the Rational Unified Process (RUP) from software engineering. MDP provides a standardized "skeleton" designed to help developers build robust tools for automated model training, testing, and long-term maintenance.

Limitations of Existing Frameworks

Current data science workflows often rely on frameworks like CRISP-DM (Cross-Industry Standard Process for Data Mining) or programming-centric loops like the Tidyverse "Import-Tidy-Transform" cycle. While CRISP-DM is an industry standard, it is frequently criticized for being too high-level or tool-agnostic for the granular needs of modern Automated Machine Learning (AutoML) and Explainable AI (XAI).

The CRISP-DM framework, while widely used, is often considered too high-level for the specific technical requirements of modern automated workflows.

Conversely, code-focused workflows emphasize the mechanics of programming rather than the holistic management of a project’s lifecycle. The author argues that to build effective tools, we require a granular, standardized description of the model life-cycle—one that acknowledges the iterative nature of data science while maintaining the rigor of software engineering.

The Model Development Process (MDP)

The MDP framework adapts the "hump chart" approach of RUP to predictive modeling, organizing the lifecycle into a matrix of Phases (the "when") and Tasks (the "what").

The Four Phases of Development

  1. Problem Formulation: This initial phase focuses on defining the "definition of done," establishing success metrics, and identifying required datasets.
  2. Crisp Modelling: Developers rapidly build prototypes to validate that the proposed solution meets the client's core needs before investing significant resources.
  3. Fine Tuning: This phase involves creating a large collection of models and performing extensive hyperparameter tuning to maximize predictive performance.
  4. Maintaining and Decommissioning: Unlike many frameworks, MDP explicitly addresses the post-deployment phase, including monitoring for model decay and planning for eventual retirement.

The Five Task Categories

Across these phases, five core task categories are executed with varying intensity:

  • Data Preparation: Acquisition, cleaning, and sampling.
  • Data Understanding: Exploration and feature engineering.
  • Model Assembly: Selection and parameter tuning.
  • Model Audit: Validation, benchmarking, and fairness/stability checks.
  • Model Delivery: Deployment, documentation, and communication.
A visualization of task intensity over time, illustrating how activities like EDA and model tuning shift across different iterations of the development cycle.

Key Innovations: Rigor and Responsibility

MDP introduces several critical concepts that differentiate it from traditional data mining processes:

  • Software Engineering Rigor: By treating model development as a specialized form of software development, MDP introduces "consecutive iterations." Each loop builds upon the documentation and knowledge of the previous one, ensuring a cumulative gain in project intelligence.
  • The "Definition of Done": A project cannot progress past the formulation phase without a clear, written agreement on success metrics, preventing "scope creep" and misaligned expectations.
  • Model Audit as a Pillar: MDP elevates "Model Audit" to a distinct, ongoing activity. This includes rigorous checks for fairness, stability, and data leakage, moving beyond simple performance evaluation.
  • Planned Decommissioning: By acknowledging that every model eventually becomes outdated, MDP ensures that teams have a strategy for retiring models, preventing the accumulation of "technical debt" in production environments.

Conclusion and Future Directions

The MDP framework serves as the foundational skeleton for the DrWhy.AI ecosystem, a suite of tools dedicated to model exploration and explanation. While the framework is currently theoretical and lacks quantitative benchmarks against CRISP-DM, it provides a much-needed roadmap for modern data scientists. By standardizing the lifecycle, MDP facilitates the creation of a new generation of tools for automated training and, crucially, the long-term maintenance of models in production. Future work will focus on adapting this generic structure to specific industry needs and developing further automation for the "human-centered" checkpoints within the loop.

Summary updated

BibTeX
@misc{biecek2019model,
  author = {Przemyslaw Biecek},
  title = {{Model Development Process}},
  year = {2019},
  eprint = {1907.04461},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1907.04461},
}
Figure