Data drift

Data drift is a change in the statistical distribution of the inputs a deployed model receives compared with the data it was trained on, which can make its predictions less reliable.

A model is trained on a snapshot of the world. Once deployed, the data flowing into it keeps changing: customers get younger or older, a new product line launches, a sensor is replaced, a marketing campaign brings in a different crowd. When the distribution of the input features moves away from what the model saw in training, that is data drift.

Drift does not always mean the model is wrong. The monitoring company Evidently gives a retail example: an app campaign shifts many purchases from shops to online. Customers' preferences have not changed, but the mix of shopper types has, and the model may perform worse on the group that grew because it saw fewer of them in training. Compare concept drift, where the relationship between inputs and outcome itself changes. The two often arrive together, but they are separate problems.

Teams detect data drift by comparing recent inputs with a reference sample, feature by feature. Simple checks track averages and ranges. Statistical tests such as Kolmogorov-Smirnov for numbers and chi-square for categories ask whether a difference is larger than chance; on big datasets these become oversensitive, so distance measures such as the Population Stability Index, Wasserstein distance or Jensen-Shannon divergence are often used to measure how far a distribution has moved.

The point of watching inputs is speed. True outcomes, such as whether a loan defaulted, can take months to arrive, while the inputs are visible at once. Drift is therefore an early warning, not a verdict: a statistically significant shift may not matter, and a data pipeline bug can look exactly like drift. Where real outcomes are available, actual accuracy is the better measure. A related problem, training-serving skew, is a mismatch that often shows up soon after deployment, for example because features are computed differently in production than in training.

Common questions

What causes data drift?

Changes in the real world, such as new customer groups, seasons, prices or products, and changes in how data is collected, such as a new sensor, a form redesign or a bug in a data pipeline. Some causes are genuine shifts the model must adapt to; others are errors that should be fixed at the source.

How do you detect data drift?

Compare the distribution of each input feature in recent production data with a reference sample, usually the training data. Common methods include summary statistics, the Kolmogorov-Smirnov and chi-square tests, and distance measures such as the Population Stability Index and Wasserstein distance.

Does data drift always mean a model needs retraining?

No. Drift is a signal to investigate. The model may still perform well on the new inputs, or the shift may be too small to matter. Retraining is warranted when accuracy actually falls or when the new data clearly falls outside what the model has learned to handle.

What is the difference between data drift and model drift?

Data drift describes a change in the inputs. Model drift is a broader, looser term for a model's performance degrading over time, which can be caused by data drift, concept drift or both.

Finding more

Search for "data drift detection", "population stability index" and "training-serving skew". Practical guides from model monitoring tools and cloud providers explain the statistical tests and how to set thresholds; academic work on dataset shift covers the theory. Be careful with articles that treat every drift alert as proof of model failure.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.