Sub topic 2
Data Drift, Label Drift, and Concept Drift
Assume you know the basic machine learning workflow: train a model, validate it, test it, and deploy it. You should also understand features, labels, and batch or online serving. This chapter explains how production data can change and why different changes require different retraining decisions.
A deployed model learns a relationship between input features and a target label. Let \(X\) represent the features and \(Y\) represent the label. Three useful drift types describe changes in these distributions.
| Drift type | What changes | Example |
|---|---|---|
| Data drift | The distribution of features, \(P(X)\), changes | Customers become younger on average |
| Label drift | The distribution of labels, \(P(Y)\), changes | The proportion of fraudulent transactions rises |
| Concept drift | The relationship \(P(Y\mid X)\) changes | The same spending pattern becomes less predictive of fraud |
Data drift
Data drift, also called covariate drift, occurs when production inputs differ from the training inputs. For example, a delivery-time model trained mostly on urban orders may receive many rural orders after a business expansion.
The model may still be correct for the relationships it learned. However, it now receives examples from a different part of the feature space. Predictions can become less reliable, especially when the new examples were rare or absent during training.
Monitor important features by comparing a reference window, such as the training data, with a current window from production. Check distributions, missing-value rates, category frequencies, and unexpected ranges. Data drift is a warning signal, not proof that model quality has fallen.
Label drift
Label drift occurs when the frequency of outcomes changes. Suppose a model predicts whether a payment is fraudulent. A new attack campaign may increase the fraud rate from 1% to 4%.
A changed label rate does not necessarily mean the model is broken. The model may still rank transactions correctly. However, probability calibration, alert volumes, and decision thresholds may need adjustment.
Labels often arrive after predictions. This delay means you may detect label drift before you can measure performance. If labels are incomplete or delayed, monitor predictions and business outcomes as temporary signals.
Concept drift
Concept drift is the most direct threat to model validity. It means the meaning of a feature pattern changes. A customer behavior that once indicated low churn may indicate high churn after a pricing change.
Concept drift can happen because of policy changes, new competitors, seasonal behavior, fraud adaptation, or changes in data collection. Feature distributions may remain stable while the relationship to the label changes, so input monitoring alone cannot detect it.
Exercise
A model's feature distributions are stable, but its precision has fallen after a competitor changed its product. Which drift type is most likely?
Show answer
Concept drift. The relationship between the observed features and the label changed even though the feature distributions did not.