Diagnose a Ranking Model That Wins Offline but Loses Online
Last updated: November 29, 2026
Quick Overview
Your new ranking model improved offline AUC and NDCG, but in an A/B test it decreased time spent. Walk through how you would diagnose the discrepancy.
Meta
November 29, 20260
0
0 solved
Your new ranking model improved offline AUC and NDCG, but in an A/B test it decreased time spent. Walk through how you would diagnose the discrepancy.
This is a common Meta ML practical question because offline and online disagreement happens constantly on Feed, Reels, and Ads. Interviewers want a structured investigation covering data, features, evaluation bias, and metric mismatch, not guesses.
What the Interviewer Expects
- Verify the experiment itself (assignment, logging, sample ratio)
- Check training-serving skew and feature availability at serving time
- Question whether offline labels and metrics match the online goal
- Consider feedback-loop and position bias in the offline set
- Slice results to find where the loss concentrates
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 change the offline evaluation so it predicts online results better?
- What if the online loss only appears after two weeks?
- How would you decide whether to ship anyway?
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
Ask: how big are both effects, how long has the test run, is the decrease significant, and what was the offline label (clicks?) versus the online metric (time spent)?...
Approach
Go from cheapest and most likely to deeper causes: (1) experiment validity, (2) model is not the same online as offline, (3) offline metric measures the wrong thing, (4) offline data is biased toward ...