Step 15 of 38 · Delivery
Monitoring and drift
Models degrade without any code change because the world moves. Watch inputs, outputs and outcomes, and agree when to act.
A deployed model can get worse while every service dashboard stays green. Users change, sensors age, upstream data shifts, and labels arrive late or never.
Monitor at three levels: the inputs (schema, ranges, distribution), the outputs (prediction mix, confidence, how often the fallback fires) and the outcomes that matter to users, even if delayed. Alert on what someone can act on, and give each alert an owner and a first response.
Agree a retraining policy before you need it: what triggers it, how the new model is validated and who approves release. The usual failure is a dashboard nobody looks at until a customer reports the problem.
Try this week
- List the monitors on your main model and mark which ones have an owner and a written first response.
- Compare this month's input distribution with the training data for the three most important features.
Signs you've got it
- You find model degradation from your own monitoring before users report it.
- Retraining follows a written trigger and validation, not a hunch.
Resources
- articleData Distribution Shifts and Monitoring (opens in a new tab)Chip Huyen
- paperFailing Loudly: An Empirical Study of Methods for Detecting Dataset Shift (opens in a new tab)Stephan Rabanser, Stephan Günnemann and Zachary Lipton
- bookMonitoring Distributed Systems (Site Reliability Engineering) (opens in a new tab)Rob Ewaschuk
- videoLecture 6: Continual Learning (opens in a new tab)Full Stack Deep Learning
- articleA Practical Guide to Maintaining Machine Learning in Production (opens in a new tab)Eugene Yan