Skip to content
Preptima
hardDesignScenarioMidSeniorStaff

Where does train-serve skew come from, and how do you stop it?

Train-serve skew is a mismatch between features used in training and features produced at serving time. Prevent it with shared transformations, point-in-time joins, feature logging, schema checks and monitoring of served feature distributions. It also connects feature store to the point an interviewer is testing.

6 min readUpdated 2026-08-15

Answer

Short answer

Train-serve skew happens when the model trains on one feature definition but receives a different value online. Prevent it by sharing transformation code, using point-in-time joins, logging served feature vectors, validating schemas, and monitoring production feature distributions against training.

Was this answer helpful?

Likely follow-ups

  • How do you detect skew on a feature that is legitimately different offline, such as one built from a nightly batch?
  • What does point-in-time correctness cost you in pipeline complexity, and when is it not worth it?
  • A feature takes 400 milliseconds to compute and your latency budget is 50. What are the options?
  • How would you backfill a new feature so that training data matches what serving will produce?

Related questions