Blogs
Model Drift: How to Detect It and What to Do About It

Model Drift: How to Detect It and What to Do About It

data drift,concept drift,model drift detection,model monitoring,population stability index,Kolmogorov-Smirnov test

By
R&D, FDE Academy
November 25, 2026
Model Drift: How to Detect It and What to Do About It

Summarize this article using AI

Why model drift matters in customer deployments

A model is a snapshot of the world at training time. Customers change prices, enter new regions and rename database columns, and none of them tell the model. The handover metric is a statement about the past, and the customer judges the system by month six, not the demo. Many of the failures described in why AI projects fail come down to nobody owning the system after launch. Drift monitoring is how you keep that ownership honest. The ownership boundary is explored in FDE vs MLOps engineer.

Types of drift: data, concept and upstream breaks

People use "model drift" for several different problems. Separating them tells you what to do next.

Data drift (covariate shift) means the distribution of the inputs has changed. As one MLOps explainer puts it, data drift is a discrepancy in the statistical properties of input variables between serving data and training data, while concept drift is a discrepancy in the relationship between the model inputs and the target variable. The model may still be right about the relationship but is now asked about a different population.

Concept drift means the relationship between inputs and the outcome has changed. MLflow's example is a credit risk model trained before an economic downturn, where the same applicant profile now carries a different default probability. Reviews split it into sudden, gradual, incremental and recurring patterns; a seasonal pattern needs a different response from a permanent shift.

Upstream data breaks are not statistical drift at all. A column rename, a unit change or a new null pattern in a pipeline can cause degradation that looks like concept drift but resolves with a pipeline patch. Data quality checks belong in the same dashboard. See data cleaning for AI projects and AI data pipelines for messy enterprise data.

Prediction drift and label shift describe changes in the model's outputs or in the share of each outcome. They are useful signals because you can observe predictions immediately, even when true labels arrive weeks later.

How to detect model drift

There are three layers of evidence, and each has a different delay and a different blind spot.

Model Monitoring Approaches Matrix
Layer Needs labels? Catches Misses
Input distribution (KS, PSI, chi-squared) No Data drift, pipeline breaks, unit changes Concept drift; harmless shifts raise false alarms
Prediction distribution No Pipeline breaks, large covariate shifts Drift that leaves the average prediction unchanged
Performance on labelled outcomes Yes Concept drift and real damage Anything before labels arrive

Statistical tests for input drift

The Kolmogorov-Smirnov (KS) test compares two samples. In SciPy, ks_2samp tests the null hypothesis that the two samples are drawn from the same continuous distribution, and the statistic is the maximum absolute difference between the empirical distribution functions. MLflow notes that KS suits continuous features and Pearson's chi-squared handles categorical features.

The Population Stability Index (PSI) compares a feature's current distribution to its training baseline in bins. A commonly quoted rule is that PSI below 0.1 signals stability, with larger values flagging movement. Treat those cut-offs as conventions, not laws; tune them on your own data.

Evidently's documentation says its default algorithm picks a method based on feature type and the number of observations, and that KS is its default for numerical data with up to 1,000 observations. Know which test your tool runs.

Prediction and label monitoring

When labels are delayed, watch the distribution of predicted scores and compare it against what you saw at launch. When labels do arrive, compute the real metric on a rolling window and compare it to the launch baseline. One practitioner caveat: input-based drift detectors are lagging indicators, because they need enough new data before they can speak.

What a tested experiment shows

To see what these checks do and do not catch, we built a synthetic credit-style dataset with four features (age, income, tenure and an irrelevant noise column), trained a gradient boosting classifier on 20,000 rows, and then fed it five kinds of production data. For each we recorded KS statistics, PSI and accuracy.

python

import numpy as np

from scipy.stats import ks_2samp

‍

def psi(ref, cur, bins=10):

    q = np.quantile(ref, np.linspace(0, 1, bins + 1))

    q[0], q[-1] = -np.inf, np.inf

    p = np.clip(np.histogram(ref, q)[0] / len(ref), 1e-4, None)

    c = np.clip(np.histogram(cur, q)[0] / len(cur), 1e-4, None)

    return float(np.sum((c - p) * np.log(c / p)))

‍

for col in ref_df.columns:

    stat, pval = ks_2samp(ref_df[col], cur_df[col])

    print(col, round(stat, 2), round(pval, 3), round(psi(ref_df[col].values, cur_df[col].values), 2))

Results with 20,000 production rows per scenario:

Model Monitoring Simulation Scenarios Matrix
Scenario Input tests (KS / PSI) Accuracy
A. No change, fresh sample Quiet 0.684
B. Irrelevant feature shifts by 0.3 sd Flags the noise column (KS 0.12, PSI 0.08) 0.685
C. Covariate drift: age +8 years Flags age (KS 0.32, PSI 0.63) 0.661
D. Concept drift: relationship reversed Silent (PSI about 0.00 everywhere) 0.312
E. Unit change: income divided by 1,000 Flags income (KS 1.00, PSI 8.28) 0.641

Four lessons follow:

  1. Scenario D is the dangerous one. Every input looked normal while accuracy collapsed. Even the mean predicted probability stayed at 0.359 while the real positive rate rose to 0.640. Only labelled outcomes revealed it.
  2. Alarm size does not equal damage. The unit change produced the loudest alarm (PSI 8.28) but a four-point accuracy drop, because this tree model happened to be robust to it. The age shift was a quieter alarm that cost more than two points. Rank alerts by feature importance.
  3. Scenario B is a false alarm. The noise feature was flagged and accuracy did not move, so unweighted per-feature alerts create alert fatigue.
  4. Prediction monitoring helped in some cases and not others. Mean prediction fell from 0.357 to 0.201 in the unit-change scenario, which would have flagged it, and rose from 0.357 to 0.452 under age drift. It did nothing for the reversal.

Sample size matters too. Accuracy on 500 rows wobbles by a couple of points by chance, while very large windows make tiny shifts statistically significant. Pair a p-value with an effect size such as the KS statistic or PSI, and a practical threshold.

Caveats: one synthetic dataset, one model, one seed, a modest baseline (about 0.68 accuracy), and real concept drift is rarely a clean reversal. Use it to understand failure modes, not to set thresholds.

What to do when you detect drift

Detection is only half the job; the response depends on the diagnosis.

  1. Check the pipeline first. Compare schemas, units, null rates and category lists against the reference. If a column changed, fix the pipeline and re-score rather than retrain on corrupted data.
  2. Confirm real impact. If labels are available, measure performance on recent data. If they are not, estimate impact with a labelled sample reviewed by the customer's team.
  3. Decide the response.
Model Monitoring Diagnosis and Response Matrix
Diagnosis Typical response
Upstream break Patch the pipeline, backfill, re-score
Harmless covariate shift Log, widen the baseline, no action
Harmful covariate shift Retrain on recent data or reweight
Concept drift Retrain with fresh labels, revisit features, possibly redesign
Unknown and serious Roll back to the last good version or fall back to rules
  1. Retrain deliberately. Use a time-based split so you evaluate on data after the training window, as covered in time series forecasting. Compare the candidate with the current model on the same recent labelled window before promoting it.
  2. Record the decision. Keep who approved what, with which evidence. That record is the substance of AI governance.

For high-stakes decisions, keep a person in the loop while confidence is low, using guardrails and human-in-the-loop design.

Drift in LLM and RAG systems

Large language model applications drift differently, and classical tests only partly apply. Hosted models change, customer documents change, user questions evolve and prompts accumulate edits. Monitor a fixed evaluation set of representative questions with agreed reference answers, rerun it on every model, prompt or index change, and track retrieval quality separately from generation quality. If your retrieval layer is built on hybrid search and reranking, include retrieval hit rate in the same dashboard. Routing calls through AI gateways gives you one place to log model versions and compare behaviour across them.

Building a monitoring plan that survives handover

  • Set the baseline at launch. Store the reference feature distributions, prediction distribution and metric values with the model version.
  • Choose a small set of alerts. Weight features by importance and set thresholds from historical variation.
  • Plan for label delay. Decide how outcomes will flow back, who labels samples, and how long you can wait.
  • Name an owner and escalation path. An alert nobody owns is a log line.
  • Agree the response before launch. Retraining cadence, rollback criteria and customer sign-off belong in the plan from the start, as set out in the FDE project lifecycle.

A hypothetical scenario

This is an illustrative scenario, not a real engagement. An FDE deploys a model that prioritises overdue customer accounts for a collections team. Three months later the PSI dashboard shows a large spike on one numeric field, and the team's first instinct is to retrain.

The FDE checks the pipeline first and finds that the source system started exporting amounts in thousands. The fix is a one-line unit conversion and a re-score of the affected week. Two months later no input alert fires, but payment rates after contact keep falling. A labelled sample confirms the old ranking no longer predicts payment. That is concept drift, so the team retrains on recent outcomes, validates on a later window and promotes the new version with the customer's sign-off.

Common mistakes

  • Monitoring only inputs. As our test shows, concept drift can leave inputs untouched.
  • Retraining on every alert. Retraining on a broken pipeline bakes the break in.
  • Evaluating the new model on old data. Use a recent, later window.
  • Ignoring label delay. Performance charts lag by however long labels take.

TL;DR:

Model drift is the loss of a deployed model's performance because the data, or the relationship between inputs and outcomes, has changed since training. Input-distribution tests such as KS and PSI catch data drift and broken pipelines quickly, but they can miss concept drift entirely. In our synthetic test, a fully reversed relationship left every input test silent while accuracy fell from 0.68 to 0.31. Monitor inputs, predictions and labelled outcomes together, diagnose the cause before retraining, and agree the response plan with the customer before launch.

‍

Frequently Asked Questions

  • What is model drift?

    Model drift is the degradation of a machine learning model's performance over time because the data or the relationship between inputs and outputs has changed since training. It covers data drift, concept drift and broken upstream pipelines.

  • What is the difference between data drift and concept drift?

    Data drift is a change in the distribution of the inputs. Concept drift is a change in the relationship between inputs and the target. Data drift can be spotted without labels, while concept drift usually needs labelled outcomes to confirm.

  • How do you detect model drift?

    Compare production data to a reference window using KS for numeric features, chi-squared for categorical features and PSI. Watch the prediction distribution and track performance on labelled outcomes. Use all three.

  • How do you detect drift without ground truth labels?

    Monitor input distributions and the distribution of predictions, and review a small labelled sample regularly. These signals can raise suspicion, but they cannot prove performance has changed, and they can miss concept drift entirely.

  • When should you retrain a model?

    Retrain when you have confirmed that performance on recent labelled data has degraded and the cause is not a pipeline fault. Evaluate the candidate on a later window and compare it with the current model before promoting it.

  • How often should you check for drift?

    Match the cadence to how fast the data changes and how costly errors are: input checks per batch or daily, performance as labels arrive, thresholds reviewed monthly.

  • Background image glowing