How it works · 4 of 27 Advanced

What are training-serving skew and a feature store?

Same recipe, different scales

Training–serving skew & feature stores: Training–serving skew is when the live system builds a model's inputs differently from the way training did (other code, other units, other timing), so a model that tested well fails quietly in production; a feature store keeps one definition of each input and serves the same values to training and to the live app.

Loading the animation…

Say it like this Training–serving skew is when the live system computes a model's inputs differently from training, so a model that tested well quietly fails; one shared feature definition, logged at serving time, keeps the two the same.

Under the hood — for builders
Worked example: the scene, run for real
A late-delivery model trained on 20,000 synthetic orders, weight in grams. Fed the same weights in kilograms, it flags no late orders, and nothing errors.
Google's definition
Rules of Machine Learning: "Training-serving skew is a difference between performance during training and performance during serving."
Google's fix, and a real result
Rule #29: "save the set of features used at serving time" and train on that log. "YouTube home page switched to logging features at serving time with significant quality improvements".
Feature, pipeline, serving path
Feature: one input the model reads (basket weight). Training pipeline: batch code building features from history. Serving path: live code building them per request.
Skew and feature store
Skew: the two paths disagree. Feature store: one definition per feature, written to an offline store for training and an online store for serving.
The check that catches it
TensorFlow Data Validation scores numeric skew with "approximate Jensen-Shannon divergence" against your threshold. Our run: 1.0, the maximum; after the fix, 0.0005.
Three ways to cause it
Google's rules name the first two; the third is a training row built with a fact known only later.
How a feature store prevents it
Feast keeps "an offline store (batch training) and an online store (real-time serving) under one feature server", with "point-in-time correct" training rows.
Measure it
Offline score vs the same metric live, weekly · per-feature skew distance with an alert · features from one shared definition (target: all).
Watch out
Unit or time-zone changes upstream · blank vs 0 defaults · a cached older copy served live · a prompt template built one way in tests, another live.
Sources
Google, Rules of Machine Learning · TensorFlow Data Validation guide · Feast docs · all read 21 Nov 2026 · our run, Python 3.13 + numpy 2.5, 21 Nov 2026.

What happens in the Training–serving skew & feature stores animation, step by step?

One shared scale at the pass: Two scales

  1. Upstairs, the test kitchen: a late-delivery model learns from past orders, with each basket's weight logged in grams. Offline it catches 63% of late orders (our run).
  2. The same model is carried downstairs to the restaurant: the live app. Its scale reads the same basket in kilograms, so 3,200 arrives as 3.2.
  3. To the model every basket now looks almost empty. The cake collapses: it catches 0% of late orders. No error, no crash, no alert.
  4. Your turn: switch on one scale at the pass, above the picture, so both floors weigh the same way.

One shared scale at the pass: One scale

  1. One scale at the pass: both floors take the weight from one definition, one piece of code. That shared shelf of inputs is what a feature store keeps.
  2. Downstairs, the same basket reads 3,200 grams again, and the restaurant's cake rises: 63% of late orders caught, as in testing.
  3. A daily check compares the two floors' weights: 1.0 when they disagreed, 0.0005 now (our run). Next: the recipe is consistent, but is it any good?

What everyday example explains Training–serving skew & feature stores?

Test kitchen in grams, restaurant in cups. The recipe is the model, the ingredients are its inputs, the scales are the code that measures them; the test kitchen's cake rises, the restaurant's collapses, and one shared scale at the pass fixes both floors.

Why should a team care about Training–serving skew & feature stores?

A team choosing between a quick serving path written by the app developers and a shared feature definition is choosing whether offline scores mean anything live; the check costs one comparison per feature per day, the skew costs every prediction until someone notices.