Distribution Shift
“Performance measured on one population doesn’t automatically carry over to another.”
The bottom line
Test a system on data from the people, places, and period where it will actually run.
Keep in mind: Not every change in data hurts; what matters is whether your deployment differs in ways the model is sensitive to.
See it in a real case: A screening tool studied in eleven clinics; Covid-19 prediction models, reviewed
Reviewed 19 Oct 2026 · 4 sources · v1.4 · Cite
Details
- Source types
- 4 peer-reviewed or classic
- Evidence base
- Well sourced. 4 sources, 4 peer-reviewed or classic (from 4 separate lead authors). This counts sources, not how large or certain the effect is; the Evidence section says what the studies found. How this is rated
- Name
- Established term: This name is used in the research literature.
- Version
- v1.4, published 5 Oct 2026
Evidence base: Well sourcedEstablished termIndependent, not peer reviewed. Status
In plain terms
A score measured on one group of people, places, or times doesn’t automatically carry over to another. Test on data from where the system will actually run.
Takeaways #
- A test set is a snapshot of certain people, places, times, and conditions.
- Change any of those and performance can drop, sometimes sharply.
- Even careful rebuilds of the same benchmark produce lower scores.
- Evaluate on data from the setting where the system will run, and keep checking over time.
What it means #
Models learn patterns from the data they’re trained on and get tested on data that usually looks a lot like it. The real world rarely cooperates. A new hospital has different patients and equipment. A new market uses different language. Next year’s users behave differently than last year’s. Each change is a shift, and a benchmark score doesn’t tell you how the system handles it.
The evidence #
reviewed 19 Oct 2026Same recipe, lower scores. Recht et al. (2019) rebuilt the CIFAR-10 and ImageNet test sets by following the original collection process. Accuracy fell by 3 to 15 percentage points on CIFAR-10 and 11 to 14 points on ImageNet. The authors traced the drop to the new test sets being slightly harder, not to overfitting to the old ones. Engstrom et al. (2020) argued that statistical bias in how the new ImageNet set was built explains most of its drop, so the true size of the shift is debated.
Real-world shifts, measured. Koh et al. (2021) built WILDS, a benchmark of ten datasets with real distribution shifts across hospitals, cameras, regions, and time. Models showed large gaps between in-distribution and out-of-distribution performance.
Drift erodes gains. Hand (2006) argued that population drift over time is one reason gains from sophisticated models shrink in practice.
Use it #
- Ask where and when the eval data came from, and compare that to your actual users.
- Split test results by site, time period, or source to see how performance moves.
- Run a local validation before rolling out to a new market, language, or customer segment.
- Monitor production for drift and re-evaluate on a schedule.
Questions to ask #
For vendor reviews, model cards, and launch reviews.
Where this doesn’t apply #
Not every change in data hurts. In Recht et al., model rankings mostly held, and follow-up work suggests part of the ImageNet drop came from how the new test set was sampled. The question is whether your deployment differs from the test data in ways the model is sensitive to.
Origins #
Distribution shift, also called dataset shift, is a long-standing problem in statistics and machine learning. It is comparable to external validity in the social and medical sciences, which asks whether findings carry over to other settings.
Sources #
- [1]Engstrom, L., Ilyas, A., Santurkar, S., Tsipras, D., Steinhardt, J., & Madry, A. (2020). Identifying statistical bias in dataset replication.Proceedings of the International Conference on Machine Learning (ICML 2020)Open ↗ (opens in a new tab)
- [2]Hand, D. J. (2006). Classifier technology and the illusion of progress.Statistical Science, 21(1), 1-14Open ↗ (opens in a new tab)
- [3]Koh, P. W., et al. (2021). WILDS: A benchmark of in-the-wild distribution shifts.Proceedings of the International Conference on Machine Learning (ICML 2021)Open ↗ (opens in a new tab)
- [4]Recht, B., Roelofs, R., Schmidt, L., & Shankar, V. (2019). Do ImageNet classifiers generalize to ImageNet?.Proceedings of the International Conference on Machine Learning (ICML 2019)Open ↗ (opens in a new tab)
Cite this pattern #
AI Evaluation Field Guide. (2026, October 5). Distribution Shift (v1.4). https://evalfieldguide.com/patterns/distribution-shift@misc{efg-distribution-shift,
title = {Distribution Shift},
author = {{AI Evaluation Field Guide}},
year = {2026},
month = oct,
note = {Version 1.4},
howpublished = {\url{https://evalfieldguide.com/patterns/distribution-shift}}
}https://evalfieldguide.com/patterns/distribution-shiftRevision history #
- v1.419 Oct 2026Removed Wong et al. (2021), which the page itself called not a clean case of distribution shift. It stays on the Functionality Fallacy page and the sepsis case study.
- v1.319 Oct 2026Tightened the bottom line and its caveat.
- v1.219 Oct 2026Added a one-sentence bottom line with its main caveat.
- v1.119 Oct 2026Reworded the sepsis-model example, which the authors attribute mostly to how timing was handled, and gave the Recht et al. drops in percentage points with a note that follow-up work disputes part of the ImageNet drop.
- v1.05 Oct 2026Published.
Full changelog · Spot a mistake or a better source? Report it. Corrections are logged in the changelog.