Bookmarks

MLOps — MLOps

The practice of applying DevOps principles to machine learning systems: pipelines that cover data, training, model deployment and monitoring.

Also: machine learning operations

checked 9 Nov

All terms

A model degrades differently from ordinary code: the input data changes, and predictions lose accuracy without a single edit. MLOps brings DevOps automation into machine learning — versioning, testing, continuous delivery, monitoring — and adds dataset and model versioning, regular retraining and quality tracking.

What goes into the pipeline

StageWhat happens
Datacollecting and validating data quality, dataset versions, features and their schemas
Trainingrunning experiments while recording parameters and metrics, so that the result is reproducible
Evaluationtesting the model on held-out data and comparing it with the current one before deployment
Deploymentserving the model as a service or updating the model inside an application
Monitoringtracking prediction quality, input data and service performance
Retrainingautomatically starting a new training run in response to a trigger — a schedule, a degrading metric, new data

Maturity levels

Google describes three levels of MLOps maturity. At level 0 everything is done manually: a data scientist trains a model in a notebook and then deploys it to production themselves; the process is not reproducible and breaks quickly. Level 1 adds an automated training pipeline: every run collects the data, trains and validates the model following the same steps. Level 2 is a full CI/CD pipeline: new data, training code and serving code are tested and deployed automatically.

Data drift

The main reason a model needs its own monitoring is drift: the distribution of real-world data changes after the model has been trained. For example, a model forecasts demand, and then a new competitor enters the market or an exchange rate changes — the statistics of the inputs drift away from what the model saw during training, and accuracy falls without a single change to the code. That is why MLOps involves tracking quality metrics and feature distributions and setting up automatic retraining or alerts.

Sources

the term is written from these pages

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

  • CI/CDcontinuous integration and continuous delivery

    CI/CD tests and deploys code; MLOps adds data, training and versions of the model itself to the pipeline.

  • inference

    Inference is applying a trained model to data; MLOps covers the whole cycle around it.

  • configuration drift

    Configuration drift is servers deviating from their intended settings; data drift is a change in the distribution of a model’s inputs.

In depth in the references

where the topic is covered in detail