Diagnose Train-Serving Skew in a Play Store App Ranking Model
Last updated: November 29, 2026
Quick Overview
A new ranking model for Play Store search shows a 3% offline NDCG gain but is flat or negative online. Walk through how you would find whether train-serving skew is the cause and how to prevent it.
0
0
0 solved
A new ranking model for Play Store search shows a 3% offline NDCG gain but is flat or negative online. Walk through how you would find whether train-serving skew is the cause and how to prevent it.
Google's ML engineering culture (the Rules of ML tradition) treats train-serving skew as one of the most common silent failures. The interviewer wants a systematic debugging process, not guesses, and concrete prevention mechanisms.
What the Interviewer Expects
- Separate the hypotheses: skew, offline metric mismatch, feedback loops, and experiment issues
- Describe logging served features and comparing to training features
- Name specific skew sources: different code paths, freshness, leakage, default values
- Propose prevention: shared feature code, logged features for training, monitoring
- Quantify the impact by replaying served features through the model
Key Topics to Cover
How to Approach This
- Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
- Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
- Feature engineering is often more impactful than model selection.
- Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
- Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
- How would you detect label leakage that only exists offline?
- What if the skew comes from a feature that is fresh offline but cached for hours online?
- How do you handle features whose serving value is legitimately different, like time of request?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Explore ML Interview PrepSample Answer
Clarify
Confirm the experiment itself is healthy (sample ratio, logging, enough power) and that the online metric (installs per search) should move with NDCG. If those check out, skew is a prime suspect....
Approach
Treat it as hypothesis elimination. Skew means the model sees different inputs at serving than it saw in training. The cleanest test: log the exact feature vectors used at serving for a sample of requ...