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.

Google
Machine Learning
Machine Learning Engineer
Google
November 29, 2026
Machine Learning Engineer
Onsite
Machine Learning
Hard

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
Train-serving skew
Feature logging
Data leakage
Offline vs online metrics
Ranking evaluation
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. 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 Prep
Sample 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...


Submit Your Answer
Markdown supported