What is training-serving skew?

Quick Overview

Explain training-serving skew, the mismatch between what a model sees in training and what it receives at inference. Tests whether you can name its common causes in feature pipelines and timing, tell it apart from data drift, and describe how to prevent and detect it.

What is training-serving skew?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

A model scores well in offline evaluation and then underperforms once deployed, with no change to the model itself. What is training-serving skew? ```hint Follow one feature Trace a single feature from raw data to model input twice, once through the training pipeline and once through the request path, and list every place the two could differ. ``` ### What a Strong Answer Covers - A definition that places the mismatch between training-time and serving-time data or processing, with the model unchanged. - The main sources: separate feature code paths, feature values whose timing or availability differs, and training data that does not represent live traffic. - How to prevent it through pipeline design. - How to detect it once a model is live. - How it differs from data drift. ### Follow-up Questions - How would you confirm that a drop in online metrics comes from skew rather than drift or a model bug? - What does a feature store do to reduce skew, and which kinds of skew can it not fix? - How do you build point-in-time correct training data for features aggregated over time windows? - If you train on logged serving features, what problem does that create when you add a new feature?

Overview: Explain training-serving skew, the mismatch between what a model sees in training and what it receives at inference. Tests whether you can name its common causes in feature pipelines and timing, tell it apart from data drift, and describe how to prevent and detect it.

PracHub logo
General
Nov 25, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

A model scores well in offline evaluation and then underperforms once deployed, with no change to the model itself. What is training-serving skew?

What a Strong Answer Covers Guidance

  • A definition that places the mismatch between training-time and serving-time data or processing, with the model unchanged.
  • The main sources: separate feature code paths, feature values whose timing or availability differs, and training data that does not represent live traffic.
  • How to prevent it through pipeline design.
  • How to detect it once a model is live.
  • How it differs from data drift.

Follow-up Questions Guidance

  • How would you confirm that a drop in online metrics comes from skew rather than drift or a model bug?
  • What does a feature store do to reduce skew, and which kinds of skew can it not fix?
  • How do you build point-in-time correct training data for features aggregated over time windows?
  • If you train on logged serving features, what problem does that create when you add a new feature?