What is training–serving skew?

ML systems and evaluation, Deployment
Level L1 Beginner. Length One-liner. Nature Th Theoretical.

What's being asked

Whether you know that a model can fail in production even when the world has not changed, because its inputs are computed differently.

Key idea

Training–serving skew is any difference between the features or preprocessing the model saw in training and what it receives at serving time. Example: a feature computed by a batch SQL job for training but re-implemented in the online service with a different default for missing values.

Steps

  1. Define it in one sentence as a mismatch between the training pipeline and the serving pipeline.
  2. Give one cause: duplicated feature code, different aggregation windows, or training on a value that is not yet available at prediction time.
  3. Give the fix: one shared feature pipeline or feature store, and logging the features seen at serving time so their distributions can be compared with training.

Common mistakes

How long your answer should be

One sentence; one more with an example if asked.

Last checked on 4 December 2026.

Read this

Previous in ML systems and evaluation: What is an online A/B test, why are users split at random between the two versions, and what does 'statistically significant' roughly mean? If version A gets 50 clicks from 1000 users and B gets 60 from 1000, can you already say B is better?
Next in ML systems and evaluation: What is stratified k-fold cross-validation, and why is it preferred over ordinary k-fold on imbalanced classification datasets?