Choosing Offline Metrics for a For You Feed Ranking Model
Last updated: November 29, 2026
Quick Overview
You trained a new ranking model for the For You feed. Which offline metrics would you use to decide if it is worth an online test, and why?
TikTok
November 29, 20260
0
0 solved
You trained a new ranking model for the For You feed. Which offline metrics would you use to decide if it is worth an online test, and why?
TikTok MLE screens often start with evaluation because offline metrics gate which ranking models reach expensive online experiments. The interviewer checks that you match metrics to the task (pointwise prediction vs list ranking) and know where offline and online disagree.
What the Interviewer Expects
- Separate pointwise prediction metrics from ranking metrics
- Explain AUC, log loss and NDCG and what each captures
- Evaluate per objective in a multi-objective ranker
- Use time-based splits to mimic deployment
- Discuss offline to online gaps such as exposure bias
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
- Why might AUC go up while online watch time goes down?
- How would you weight multiple objectives in one offline score?
- What is replay or counterfactual evaluation?
- How would you check calibration?
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
Clarify what the model predicts: probabilities of several actions (finish, like, share, follow) combined into a ranking score, or a learned list-wise score? What logs are available (impressions with o...
Approach
Use three layers of metrics:
- Per-head prediction quality: AUC (ranking quality of the score) and log loss (probability accuracy, which matters because heads are combined with weights).
- **Per...