What is model drift?
Definition
Model drift is the decline in a deployed model's quality after launch because something around it changed: the inputs, the meaning of a correct answer, or, for hosted LLMs, the provider's model or serving stack. Teams detect it by comparing recent scores or input statistics against a baseline and alerting when the difference crosses a threshold.
What causes model drift?
A model does not get worse on its own. Something around it changes: the inputs, the meaning of a correct answer, or, for hosted LLMs, the service behind the API. The first four names below come from monitoring docs and drift research; the last is our own label for a hosted model changing under you.
| Kind of drift | What changes | Example | How you notice |
|---|---|---|---|
| Data drift | The distribution of inputs | A support bot launched in English starts getting Polish tickets | Input statistics move away from a baseline |
| Concept drift | What the right answer is for the same input | A refund policy changes, so last month's correct answers are now wrong | Accuracy falls once true labels arrive |
| Training-serving skew | Production inputs differ from training data from day one | A feature is computed differently in the live pipeline | Production statistics differ from the training set |
| Prediction drift | The distribution of outputs | The share of tickets classified "urgent" doubles | Output statistics move away from a baseline |
| Hosted model behavior drift | The provider's model or serving stack | Answers get longer, or a formatting rule stops being followed | Your own eval scores move while your code did not |
Research makes the first two rows precise. Lu et al. separate a change in the input distribution while the input-to-output relationship stays the same (they note it has also been called virtual drift) from a change in that relationship itself, which moves the model's decision boundary (Learning under Concept Drift: A Review, 2020, an older source). The first is data drift in the table; the second is concept drift in the narrow sense.
Google Cloud's Model Monitoring draws the line between the third row and the first: skew compares production to the training data, while inference drift compares production to production data seen in the past. Its own example is a customer lifetime value model whose predictive features change as customer habits change.
Can a hosted LLM drift if you change nothing?
Yes, and it has been measured. Chen, Zaharia and Zou compared the March 2023 and June 2023 versions of GPT-3.5 and GPT-4 on the same tasks (arXiv 2307.09009, last revised October 2023, so an older source). GPT-4 identified prime versus composite numbers with 84% accuracy in March and 51% in June (Chen et al.). The authors' conclusion: the behavior of the "same" LLM service can change substantially in a short time.
Providers now pin versions, which narrows the problem but does not close it. Anthropic's model IDs and versioning page says the model behind a Claude model ID stays constant for the lifetime of that ID. Three caveats on the same page matter for drift:
- Aliases move. For models before the 4.6 generation, a dateless alias such as
claude-sonnet-4-5points to the most recent dated snapshot. Pin the dated ID if you need stability. - Serving can change. Weights are fixed per ID, but the request router, safety classifiers and sampling logic can be updated. Anthropic writes that an infrastructure update is the most likely cause of unexpected behavior changes on a stable model ID.
- Every ID retires. Each model ID has its own deprecation and retirement schedule, so a forced migration is drift you can see coming.
A real case: Anthropic's postmortem of three infrastructure bugs (September 17, 2025, an older source) describes degraded Claude responses between August and early September 2025. One routing bug started at 0.8% of Sonnet 4 requests and reached 16% in the worst hour, on August 31 (Anthropic). Early user reports were hard to tell apart from normal variation in feedback. Anthropic's validation relied on benchmarks, safety evaluations, performance metrics and small canary groups, yet it writes that the evaluations it ran "simply didn't capture the degradation users were reporting". That is the argument for a drift signal of your own.
How do you detect model drift?
You compare a recent window against a baseline and alert when a distance crosses a threshold. The tools differ in which distance they use:
- Google Cloud Model Monitoring builds the baseline from training data (for skew) or past production data (for drift). In Model Monitoring v1, it splits numeric values into equal intervals and uses Jensen-Shannon divergence; for categorical values it uses L-infinity distance (v2 also offers Jensen-Shannon for categorical features).
- Evidently, an open-source library, picks a test by data size: with 1,000 or fewer reference rows, its default drift method runs a two-sample Kolmogorov-Smirnov test on numeric columns and reports drift at a p-value of 0.05 or lower. With more rows it switches to Wasserstein distance with a 0.1 threshold.
Input statistics are an early warning. They do not prove the answers got worse. When true labels arrive later, measure quality directly. For an LLM app, the practical stand-in for labels is a fixed set of eval cases scored by graders, run on a schedule against the pinned model.
Example: a drift check on two score distributions
Say you score 800 answers with your graders before a provider update and 400 after it. This script compares the two score distributions with both tests above. The scores are generated from a fixed seed, so the run is reproducible; swap in your own.
# Compare two score distributions: last month's grader scores (baseline) vs this week's (current).
import numpy as np
from scipy.stats import ks_2samp
from scipy.spatial.distance import jensenshannon
rng = np.random.default_rng(42) # seeded, so the run is reproducible
baseline = np.clip(rng.normal(0.82, 0.06, 800), 0, 1) # 800 graded answers before the update
current = np.clip(rng.normal(0.79, 0.08, 400), 0, 1) # 400 graded answers after it
# Test 1: two-sample Kolmogorov-Smirnov. A small p-value means the samples differ.
ks = ks_2samp(baseline, current)
# Test 2: Jensen-Shannon divergence over equal-width bins (Google Cloud Model Monitoring also bins numbers into equal intervals).
bins = np.linspace(0, 1, 11)
p, _ = np.histogram(baseline, bins=bins)
q, _ = np.histogram(current, bins=bins)
js_div = jensenshannon(p / p.sum(), q / q.sum(), base=2) ** 2 # scipy returns the distance; square it
print(f"mean score baseline {baseline.mean():.3f} current {current.mean():.3f}")
print(f"KS statistic {ks.statistic:.3f} p-value {ks.pvalue:.2g}")
print(f"JS divergence {js_div:.3f}")
drifted = ks.pvalue < 0.05 or js_div > 0.1 # thresholds are choices: tune them on your own history
print("DRIFT: rerun the eval suite and read the low-scoring transcripts" if drifted else "no drift")
Output with numpy 2.4.1 and scipy 1.17.1 on 2026-11-19:
mean score baseline 0.818 current 0.789
KS statistic 0.206 p-value 2.3e-10
JS divergence 0.050
DRIFT: rerun the eval suite and read the low-scoring transcripts
The two tests disagree. The KS test flags the shift with high confidence, while the binned divergence stays under a 0.1 threshold. With hundreds of samples, KS detects small but real changes, here a 0.03 drop in the mean score plus a wider spread. Whether that matters is a product decision, so set thresholds from your own history rather than from a tool's default. As a control, we drew the current sample from the baseline distribution: KS p-value 0.81, divergence 0.001, "no drift".
Note the squaring step. scipy's jensenshannon returns a distance, the square root of the divergence, so thresholds written for one do not apply to the other.
What should you do when drift shows up?
- Confirm it. Rerun your fixed AI evals on the pinned model ID. If scores hold, the change is in your inputs, not the model.
- Find where. Split scores by language, customer segment, prompt version and tool. Drift usually sits in one slice.
- Read the traces. Low-scoring runs show what changed; agent observability covers what a useful trace records.
- Fix the right layer. Retrain if you own the model. For a hosted model, adjust the prompt, update the eval set if the right answer changed, or plan a migration before the pinned version retires (the LLMOps entry in this glossary covers retirement calendars).
- Add the failing cases to the eval set, so the next drift of the same kind fails a test instead of reaching users.
SDCLabs builds this kind of check as part of its AI testing services: the same evaluation set runs against the old and new model or prompt, and you get the change per metric before anything switches. If your drift signal comes from model graders, check the graders first: our LLM evaluation guide covers how to test judge reliability.
Sources
- Introduction to Model Monitoring, Google Cloud, 2026-11-19
- Data drift, Evidently, 2026-01-07
- How is ChatGPT's behavior changing over time?, Chen, Zaharia, Zou (arXiv 2307.09009), 2023-10-31
- Learning under Concept Drift: A Review, Lu, Liu, Dong, Gu, Gama, Zhang (arXiv 2004.05785), 2020-04-13
- Model IDs and versioning, Anthropic (Claude Platform Docs), 2026-11
- A postmortem of three recent issues, Anthropic, 2025-09-17
Frequently asked questions
What is the difference between data drift and concept drift?
Data drift means the inputs changed, for example a new customer segment or language. Concept drift means the correct output for the same input changed, for example after a policy or price update. Data drift shows up in input statistics; concept drift shows up only when you check answers against current truth.
Is model drift the same as model decay?
They are used for the same symptom: a model that performed well at launch performs worse later. Drift usually names the cause (changed data, labels or provider behavior), while decay describes the falling metric.
How often should you check for model drift?
Match it to how fast your inputs change and how costly a bad answer is. A workable setup compares a daily or weekly window against a baseline and also runs a fixed eval set right after any provider or model announcement.
Does pinning an LLM version prevent drift?
It removes one cause. Anthropic, for example, says the weights behind a Claude model ID stay fixed. Your users' inputs still change, the serving infrastructure around a model can change under the same ID, and every model ID has its own deprecation and retirement schedule.
Should you retrain automatically when drift is detected?
Not blindly. Confirm the drift on a fixed eval set, find which slice changed, and check that the new training data is correct. Automatic retraining on drifted or mislabeled data can bake the problem in.
Read next
Related terms
Sergey AlmyashevChief Operating Officer14+ years in QA, automated, exploratory and performance testing, and continuous integration and delivery within Scrum, helping teams in product and outsourcing companies organize teams, processes and tools.LinkedIn