§12.3
Deployment, Monitoring, and Drift
A model that ships well is a model that has been graded under a production-shaped evaluation. A model that stays well is a different problem. The world drifts. Features that were predictive last quarter degrade quietly; customer behaviour shifts in ways no one alerted the team to; the system's own outputs change what gets observed next. Monitoring is the discipline of catching those changes before they cost more than the model originally saved.
This article is short on machinery and long on operating discipline. It distinguishes two kinds of drift, walks through the dashboard that catches both, and lays out the retraining cadence and human-in-the-loop policies that turn a research artefact into a piece of infrastructure.
The Executive Question
Six months after the model went live, is it still doing what we asked it to — and how would we know if it weren't?
The honest answer requires an answer to a prior question: what did we ask it to do? The model card from §10.5 is the canonical contract. Monitoring is how the team grades the model against the contract, week after week.
Two Kinds of Drift
The world can change in two distinct ways under a deployed model:
Data drift vs. concept drift
Data drift makes the input look unfamiliar. Concept drift makes the input mean something different. Both quietly degrade a model.
Data drift changes the input distribution. The model still computes its function correctly; the inputs simply don't look like the training data anymore. A churn model that was trained on customers from a few city regions and is now scoring customers from new regions is experiencing data drift. Often, performance degrades gracefully — the model can still rank, just less well.
Concept drift changes the relationship between inputs and outputs. Even if every feature value is in the same range as training, the meaning of those features has shifted. A pricing model that was trained before a competitor opened next door will overpredict for the listings near the competitor. Often, concept drift is more dangerous than data drift because the model's confidence does not degrade until the team sees a performance metric — by which point the bad scores are already in production.
Both deserve monitoring. The two require different remedies. Data drift can sometimes be patched with calibration; concept drift usually requires retraining.
What to Monitor
A minimal monitoring stack tracks four classes of signal:
- Output health. Rolling AUC, PR-AUC, or RMSE against any labels that have arrived. Most production tasks have a delay between scoring and labelling; the monitoring has to gracefully handle the gap.
- Input distribution. Statistical distance (KS test, population stability index, Wasserstein) between the current input feature distribution and the training distribution. Alert when key features drift beyond a threshold.
- Score distribution. The model's outputs over time. A score distribution that shifts even when the inputs look stable is a warning.
- Coverage and freshness. What fraction of scoreable units are actually being scored? What is the median latency between an event and the score it produces? Quietly missing 10% of customers is its own failure mode.
The dashboard below is a compact version of all four:
Model-in-production dashboard mock
Two principles for designing such a dashboard:
- One screen, four KPIs, one alert. A dashboard that lists thirty metrics will not be read. Pick the four that, if they all stay green, the model is healthy.
- The alert is the artefact. A KPI that crosses a threshold should produce a notification with the change, the affected feature or segment, and the suggested action. Without the alert, the dashboard is decoration.
Retraining Cadences
Three retraining strategies cover most production settings:
- Scheduled. Retrain on a calendar cadence — quarterly is a common starting point — regardless of whether monitoring has fired. Simple, low operational risk, may waste compute when the model hasn't drifted.
- Triggered. Retrain when monitoring shows performance or drift past a threshold. More efficient, harder to operate; demands trustworthy drift signals.
- Continuous (online learning). The model updates in near-real-time as new labels arrive. Theoretically the most responsive; in practice the most dangerous, because the team has no stable artefact to inspect.
For most book-relevant settings — retention, pricing, recommenders in a stable category — scheduled with triggered overrides is the right default. The schedule is the safety net; the trigger is the responsiveness.
A neglected question: how do you know the retrained model is better? Every refit should:
- Be evaluated on a fresh held-out set, not the one the previous model saw.
- Be compared against the current deployed model on the same fresh set.
- Be subjected to a staged rollout — small percentage of traffic first, full rollout only if the staged metrics match expectations.
Models that ship without these three discipline points are how production accidents happen.
Human-in-the-Loop and Override Policies
For high-stakes decisions — lending, hiring, medical triage, content moderation — the right deployment is almost never fully autonomous. The pattern is:
- The model produces a score and a confidence.
- A human reviewer sees the score plus the relevant evidence and makes the final call.
- Reviewer decisions feed back into the training data.
The cheap version: a one-click override path that lets a human flag and reverse a model decision. The expensive version: a full case-management system with audit logs. Either way, the discipline is the same — the human is part of the system, not external to it.
Where full autonomy is appropriate (low-stakes, high-volume decisions like ad-targeting impressions, content ranking, recommendations), the human-in-the-loop appears at the level of the policy, not the decision. A small team continuously reviews the model's behaviour on a sampled set of cases, looking for failure modes the dashboard would not catch.
Fairness, Privacy, and Governance
Deployed models inherit a set of obligations the prototype did not have:
- Disparate impact. A model can be perfectly accurate on average and systematically less accurate (or differently calibrated) across protected groups. The remedy is to disaggregate evaluation by group, not just to compute it overall.
- Privacy. Production scoring touches personal data. The infrastructure must satisfy whatever regulatory regime applies (GDPR, CCPA, sector-specific) — and that regime may forbid certain features, certain joinable sources, or certain retention windows.
- Explainability on demand. Customer-facing decisions often need to come with a reason. SHAP-style local explanations from §10.5 are usually the right shape; the engineering of producing them in production is non-trivial.
- Auditability. A model decision made in March may need to be reconstructed in October. The combination of the model artefact, the features as of the score date, and the threshold has to be retrievable.
Governance is mostly a process problem, not a math problem. The math problems show up in disparate-impact analysis and in calibration across subgroups; the rest is operational discipline that the firm either has or doesn't.
Concept check
Three questions spanning Chapter 12 — measuring targeting lift, grading recommenders, and catching drift.
- 1.A team uses a 1% lookalike from their top-100 high-value customers and reports excellent conversion. They infer that the platform's targeting works well. What additional evidence would actually support that inference?
- 2.Market basket analysis returns a high-confidence rule "if latte then croissant." The same rule has lift = 0.9. The honest interpretation is:
- 3.A churn model's input distribution has not changed materially, but its rolling AUC has dropped from 0.82 to 0.71. The most likely diagnosis is: