AI Glossary / MLOps and deployment / Intermediate
Data drift
Definition
Data drift is a change in the statistical distribution of data relative to a reference distribution. In deployed machine-learning systems, the phrase commonly refers to changing input data, such as a different mix of request types or feature values. Drift can signal that deployment conditions differ from earlier conditions, but it does not by itself prove that predictions have become less accurate.
What it means
A model encounters a population of examples, not just isolated values. Monitoring can compare the proportions of categories, numerical ranges, missing values, or other characteristics between a reference period and a newer period.
The reference might be training data or a previous production window. Some systems distinguish training-serving skew from drift over time; terminology varies, so a useful report names exactly what was compared.
Input drift is also different from a changed relationship between inputs and outcomes. The latter is often called concept drift. An unchanged input distribution can coexist with changing outcomes, while a changed input distribution can leave a well-performing model accurate.
How it works
Choose a relevant baseline, comparison window, monitored features, and statistical comparison method. Collect comparable observations, calculate summaries or distribution-distance measures, and flag changes that meet the chosen investigation criteria.
The monitoring design should account for sample size, expected seasonal patterns, missing data, and changes in measurement or preprocessing. Comparing a holiday weekend with an ordinary weekday may reveal an expected population difference rather than a broken model.
After an alert, investigate its cause and evaluate the consequences. When reliable outcomes become available, examine prediction quality directly. Appropriate responses might include fixing a data pipeline, revising the baseline, collecting representative data, or assessing a retrained model. An alert is evidence to interpret, not an automatic command to retrain.
Three practical examples
- A support classifier can monitor whether the proportion of requests in each supported language changes over time.
- A demand-forecasting pipeline can detect a sudden change in missing inventory values, prompting investigation of data collection before modifying the model.
- An image application can compare suitable image-derived summaries across operating conditions, then review representative samples to understand what an observed shift represents.
Think of it this way
Think of a shop noticing that its customers now buy a different mix of products. The changed mix is real information, but it does not automatically mean the checkout system is making mistakes. Similarly, drift describes a changed data population. Whether an AI system still performs its task well requires additional evidence.
Worked example
Consider an invented request-routing system. In a reference sample of 1,000 requests, 800 are short and 200 are long. The category proportions are therefore 0.80 and 0.20. In a newer sample of 1,000 requests, 500 are short and 500 are long, giving proportions 0.50 and 0.50.
The absolute proportion changes are |0.80 - 0.50| = 0.30 and |0.20 - 0.50| = 0.30. The maximum absolute difference, an L-infinity distance for these category proportions, is 0.30. If an illustrative alert rule triggers above 0.20, this comparison triggers it. That threshold is invented for teaching and is not a recommended default or a significance test.
Now suppose the model remains 98% accurate on short requests and 80% accurate on long requests. Under these assumed subgroup rates, the reference mixture's expected accuracy is 0.80 × 0.98 + 0.20 × 0.80 = 0.944, or 94.4%.
The new mixture's expected accuracy is 0.50 × 0.98 + 0.50 × 0.80 = 0.89, or 89%. Aggregate performance changes even though both subgroup rates stay fixed. If both subgroup rates had instead been 95%, this same mixture shift would leave expected aggregate accuracy at 95%. The drift measure alone cannot distinguish those performance consequences.
Illustrative case study
In a fictional equipment-monitoring project, a dashboard reports a large shift in a temperature feature. Investigation shows that a data-source update changed the recorded unit while leaving the feature name unchanged.
The team corrects the interface and checks affected predictions before considering retraining. Training a new model on the unexamined mixture of units would have treated a measurement problem as if it were a genuine change in operating conditions.
The case illustrates why drift monitoring should connect to ownership and diagnosis. A statistical alert locates a difference; it does not explain that difference's cause.
Common misconceptions and mistakes
Do not equate data drift with confirmed model failure. Check outcomes and the importance of the affected data.
Do not conclude that stable individual feature summaries prove the entire joint distribution is stable. Relationships between features can change even when their separate distributions do not.
Do not compare incompatible units, schemas, sampling rules, or population definitions without accounting for those changes.
Do not repeatedly replace the baseline merely to silence alerts. A baseline update changes what the monitor can detect and should have a documented reason. Likewise, very small samples and many simultaneous comparisons can make alerts difficult to interpret.
Business use
Data-drift monitoring provides an early view of changing operating conditions, especially when outcome labels arrive slowly. A useful process connects each monitored signal to a responsible team, an investigation path, and a decision about acceptable behavior.
Report the baseline, time window, sample size, affected feature, magnitude, and known context alongside an alert. Pair distribution monitoring with data-quality checks, model-performance measures when available, and operational metrics. This combination supports more informed maintenance decisions than treating a single drift score as a complete health assessment.
People also ask
Does drift always require retraining?
No. The cause may be expected seasonality, a measurement error, or a change the current model already handles.
Can performance worsen without input drift?
Yes. The input-outcome relationship can change while monitored input distributions appear stable.
Is a threshold a universal statistical rule?
No. Its interpretation depends on the metric, samples, monitoring design, and purpose.
Check your understanding
Input category proportions change, but measured accuracy stays stable across relevant groups. Does the drift alert prove model deterioration?
Answer: No. It establishes a monitored distribution difference; deterioration requires additional performance evidence.
Related terms
- Concept drift
- Training-serving skew
- Data Quality
- Baseline
- covariate shift
- model monitoring
- distribution shift
- and statistical distance
Learn next
Compare two small categorical datasets, calculate their proportion changes, and separate the question of distribution change from the question of predictive error. Document what evidence would justify each possible response.
More in MLOps and deployment
- Continuous multi-output - Continuous multi-output describes a regression task in which each input example has more than one numerical target value.
- Curve-fitting compaction - Curve-fitting compaction represents a sequence or curve using a mathematical expression and its parameters instead of storing every original point.
- DAG Processing Model - A DAG processing model represents a computation or workflow as a directed acyclic graph: nodes describe work, directed edges describe dependencies, and no...
- Data-Centric ML - Data-centric ML is an approach to improving machine-learning systems through systematic work on the data they use.
- Data compression ratio - Data compression ratio compares the size of data before and after compression.
- Data compression symmetry - Data compression symmetry describes how similar the computational effort is for compressing and decompressing data.
Sources
Sources: Google Cloud Model Monitoring overview, distribution comparisons and baseline terminology: https://docs.cloud.google.com/gemini-enterprise-agent-platform/machine-learning/model-monitoring/overview NIST AIRC glossary landing page, explaining terminology scope and its linked glossary: https://airc.nist.gov/glossary/
Previous: Data dredging Next: Data-driven model