Feature Stores & Training–Serving Skew
Q: What is training–serving skew and how do you prevent it?
Skew = the model sees different feature values in production than in training (different code paths, stale data, time-travel leakage).
- Feature store: one feature definition, computed by batch/stream pipelines, written to an offline store (historical, for training with point-in-time correct joins) and an online store (low-latency KV for serving). Examples: Feast, Tecton.
- Log features at serving time and train on the logged values when possible.
- Monitor feature distributions online vs training (PSI / KL), null rates, freshness.