“Your production model is getting worse. What should you monitor, and when should you retrain?”
Start by checking whether the model actually degraded or the measurement changed. A broken feature pipeline, delayed labels, or a logging release can resemble a changing population.
01. Name the change precisely
| Change | Meaning | Example |
|---|---|---|
| Covariate shift | The input distribution P(X) changes. | More users arrive from mobile devices. |
| Label shift | The class prior P(Y) changes; formal label-shift methods often assume stable P(X|Y). | The positive-class rate changes under a compatible sampling mechanism. |
| Concept drift | The relationship P(Y|X) changes. | A previously predictive behavior no longer indicates the same outcome. |
| Pipeline failure | The observed inputs or outputs are corrupted. | A unit conversion turns dollars into cents twice. |
These categories can overlap. An input-distribution change need not hurt performance, and unchanged marginal feature distributions do not guarantee the conditional relationship is stable.
02. Monitor several layers
- Service: latency, errors, timeouts, fallback use, and model version.
- Data: schema, missingness, value ranges, feature age, and train–serve consistency.
- Scores: distributions, action rates, and cohort differences.
- Outcomes: task metrics on mature labels, calibration, and product guardrails.
For an invented example, suppose fraud-review volume doubles while the score distribution shifts sharply. First check whether a feature became missing or a threshold changed. Automatically retraining on corrupted inputs can make the incident worse.
Google's monitoring guidance emphasizes checking the pipeline as well as model behavior.
03. Make alerts actionable
Compare against meaningful baselines that account for seasonality, cohort mix, and expected changes. Set minimum sample sizes and persistence criteria where appropriate. A statistical difference can be operationally harmless when traffic is enormous.
Record the owner and response for each alert. A feature freshness violation may require a pipeline rollback; a gradual calibration change may call for investigation with mature labels. Do not make every shifted histogram page an engineer.
If labels arrive late, monitor leading indicators but name them as proxies. Report performance by event cohort and label maturity so a recent cohort is not unfairly compared with a fully observed older one.
04. Choose a response from the diagnosis
Use rollback for a bad release, repair for a broken pipeline, recalibration for an appropriate probability-mapping problem, and retraining when new representative data supports it. A policy adjustment may address capacity, but its impact still needs evaluation.
Compare a candidate with the current model using temporal holdouts, shadow traffic, and a controlled rollout where appropriate. Keep compatibility among the model, features, calibrator, and any retrieval index.
Measure the cost and benefit of retraining cadence. Frequent retraining can react to change but also chase noisy labels, introduce operational risk, and consume resources. A scheduled cadence with monitored exceptions is a possible starting policy.
05. Answer the follow-up
“Can we detect concept drift without labels?”
We can detect changes in inputs, scores, and proxies, but those alone generally do not establish that P(Y|X) changed or that accuracy fell. State the uncertainty and the plan for delayed confirmation.
For each monitored signal, name what it can establish, what it cannot, and which action would follow.
Sources & further reading
Google Developers: monitoring ML pipelines. Incident scenarios are illustrative.
Design a spam detector that can adapt ↗
Handle adversarial change without turning every report into ground truth.
Continue your preparation
Choose a connected learning path or browse more ML fundamentals questions. Read our editorial method and attribution policy.