liveBook · Manning

Training-serving skew

As explained in Machine Learning System Design

A condition in which a machine learning model performs poorly because its training data does not represent the data encountered during application or serving.

Training-serving skew occurs when a model learns from artificially constructed, cleaned, incomplete, or otherwise unrepresentative data, then encounters substantially different data in production. The mismatch can reduce real-world performance even when offline results look strong. section 14.3.5

Cloudy development, sunny deployment

An augmented-reality team collected and tested camera data in cloudy, rainy St. Petersburg. Investors later tested the product in sunny Cyprus, where the computer-vision component performed poorly because the deployment environment differed from the training environment. section 14.3.5

Reduce the risk by aligning data work with the real application:

  • Collect and label data from unsuccessful trials, then retrain or adapt the existing model when those examples expose the mismatch. section 14.3.5
  • Avoid filtering genuine user inputs too aggressively; unusual queries may be messy, but removing them can make training data unlike production traffic. section 14.5.2
  • Compare the diversity and quality of training examples with real images, queries, labels, and emerging user or content patterns. section 14.3.5 section 14.5.2
Figure 14.5 Such a drastic difference between sandbox sets of images and real-life photos can lead to significant drops in the model’s performance.
figure

Use the figure to contrast controlled image collections with varied real-life photos and identify visual sources of performance loss. section 14.3.5

How Machine Learning System Design covers it

How deep it goes
Explains causes, gives environmental and image examples, and recommends retraining or adaptation, without detailing implementation mechanics.
Examples
Uses crowdsourced versus real-world images, laboratory versus poor-lighting photos, and a St. Petersburg–Cyprus deployment mismatch.
What it assumes
Assumes familiarity with model training and production application data while illustrating the mismatch through concrete workplace scenarios.
What you can do after
Diagnose/debug with it by comparing production inputs with training data and responding through broader collection, labeling, retraining, or adaptation.
How it connects
Connects data distribution mismatch with data quality, data filtering, model adaptation, drift, validation, and testing.

Also explained in

Compare how 2 books explain training-serving skew →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning System Design. The section links point to the parts of the book it draws on.