01 / 16 · ML Systems
What MLOps is
Why the model is a small part of a machine-learning system, the hidden technical debt that grows around it, the lifecycle loop from data to retraining and how it differs from DevOps, maturity levels, roles, and the plan of the course.
On this page 8
An editor changes the contrast calculation used by a preview-quality classifier. The weight file is unchanged, the server returns valid JSON, and the old accuracy report still looks good. Yet different cards now enter the review queue. To explain the change, we need the version of the feature calculation as well as the model.
MLOps is the engineering of repeatable model development, release and operation together with the data and evidence those activities depend on. DevOps already supplies version control, tests and deployment automation. A learned component adds changing training data, delayed labels and statistical acceptance criteria.
A weight file is not a release#
For our fictional preview service, define a release by four values: input schema, feature transform, scoring artifact and decision threshold. The artifact may be a trained model or a rule used while the product is being tested. A threshold change can alter editor workload even if every score stays identical.
| Release field | Original fixture value | Why it matters |
|---|---|---|
| Schema | preview-v1 | Units and valid input ranges |
| Features | contrast-v1 | Meaning of the model input |
| Weights | fixture-score-v1 | Scoring behaviour |
| Threshold | 0.6 | Action taken from the score |
A canonical JSON serialization of this record has SHA-256 beginning adf4ab3310e79. Changing only the feature identifier to contrast-v2 produces bd5f3d6ab786. The hash identifies bytes; it does not prove that a release is correct or that its inputs were legally obtained. Keep the underlying artifacts and their source records as well.
Follow one decision beyond the model#
An uploaded card is decoded, transformed, scored and routed. A prediction event records the document ID, release ID, decision time and score. Later, an editor supplies a repair label. Joining that label to the earlier prediction supports evaluation; overwriting the prediction with the repaired state destroys the evidence.
The event path is our architectural boundary. Decoding owns file validity. Feature code owns units. The scorer owns a versioned input/output contract. Routing owns the review action. An editor can correct a card without changing the model, and a model can be replaced without changing the stored original. These separations make failures easier to localize.
Dependencies become future work#
Sculley and coauthors describe technical debt arising from dependencies around learned components (2015). The following preview-service situations are independently specified illustrations of those concepts.
Coupled features#
Suppose contrast is normalized using a population mean. Adding a new scanner population changes that mean and therefore changes old scanners’ feature values too. A local data-source change has a wider effect. Version the normalization state and evaluate the affected populations together.
Hidden callers#
An editor dashboard starts reading the raw score directly to sort its queue, although the documented API promised only a review decision. A new calibrated model preserves the decisions but changes score order. Register this consumer and give it a contract before treating the replacement as compatible.
Unowned transformations#
A scheduled script clips values to a valid range; a web handler rejects them instead. Both call the same model, so a shared weight file does not make their behaviour equivalent. Put the transformation behind one tested definition and check that both paths use its declared version.
Hidden settings#
An environment variable changes the threshold from 0.6 to 0.7 without producing a release record. The behaviour changed even though the container digest did not. Configuration that changes a decision belongs in provenance and review.
Feedback changes the data#
If only flagged cards receive labels, the next training set overrepresents the old model’s suspicions. The loop can reinforce its own blind spots. A separately sampled audit of unflagged cards provides information that the decision policy otherwise prevents us from observing.
Close the evidence loop#
Start with a product outcome and a dataset whose collection is permitted. Split data to match the intended evaluation population. Train or configure a candidate, evaluate it against acceptance criteria, package a release, and observe the resulting decisions. New evidence can justify another candidate; an alert need not automatically start training.
For a tiny fictional cohort, eight cards were submitted and only six have labels after the chosen waiting period. Label coverage is . Quality computed on those six describes the labelled subset. It does not establish quality on all eight unless the missing-label mechanism supports that inference. Report coverage, maturity time and exclusions beside the score.
Reproducibility requires enough information to repeat the computation: code revision, input snapshot, transform state, environment and randomness controls. Traceability asks a related question: which computation produced this particular deployed artifact or decision? MLflow connects runs, logged models and registered versions; a registry alias can move, so preserve the resolved version in the record (MLflow).
Automate a specific repeated decision#
Google’s MLOps framework distinguishes manual work, automated ML pipelines and CI/CD for those pipelines. Microsoft’s framework uses five capability levels. Their numbering belongs to different frameworks and is not a universal certification. Both are useful prompts for identifying missing capabilities; consult their definitions before comparing organizations (Google Cloud; Microsoft).
For the preview service, ask whether another operator can reproduce a candidate, locate its evaluation, deploy it, and restore the preceding release. Automate the steps that recur and whose acceptance conditions are explicit. Automating a poorly defined label or a biased sample can repeat the mistake more quickly.
Assign ownership to artifacts and outcomes#
The data owner defines how a repair label is collected and corrected. The model owner investigates candidate behaviour and limits. The platform owner maintains execution, deployment and recovery. The product owner decides how missed defects and review delay affect users. These are responsibilities, not a required organization chart; a small team may combine them while retaining a named decision owner.
Follow the course by the failure you need to prevent#
System design connects outcomes to requirements. Data pipelines and feature consistency keep training and inference aligned. Experiments and tests establish candidate evidence. Serving and rollout govern exposure. Monitoring and retraining handle change after release. Responsibility and cost set constraints on the whole process.
What changed#
The unchanged weight file no longer conceals the contrast update: it creates a different release identity. A repair label can be traced back to the decision it evaluates, and missing labels remain visible in the coverage count.
Limits#
A hash cannot reveal an undocumented dependency. A repeatable pipeline can reproduce an unsuitable model. A passing offline evaluation can miss a new scanner type. Provenance, statistical evaluation and operational monitoring address different failure modes and need separate evidence.
What to retain#
Version the complete decision path. Preserve predictions before labels arrive. Track label coverage and sampling. Test feature contracts on both execution paths. Automate explicit decisions and keep an owner for their consequences.
Reproduce the small example#
The lifecycle function in Python source defines the release records, computes their hashes and checks the 75% coverage. It uses newly authored constants and Python’s standard library. The fixture demonstrates record identity; it neither trains a model nor demonstrates that a production pipeline is reproducible.
Next#
Designing an ML system turns a preview-review requirement into a confusion matrix, a queue limit and a complete-request budget.
References#
- D. Sculley, Gary Holt, Daniel Golovin, Eugene Davydov, Todd Phillips, Dietmar Ebner, Vinay Chaudhary, Michael Young, Jean-François Crespo and Dan Dennison. Hidden Technical Debt in Machine Learning Systems. NeurIPS, 2015, sections 2–6: dependency concepts. No source diagram, code or worked example reproduced.
- MLflow contributors. Model Registry Workflows, checked 13 November 2026: runs, versions and aliases.
- Google Cloud. MLOps: Continuous delivery and automation pipelines in machine learning, checked 13 November 2026: automation levels.
- Microsoft. MLOps maturity model, checked 13 November 2026: capability levels. The vendors’ diagrams and assessment tables are not reproduced.