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
Machine Learning
Machine Learning Engineer
TikTok
November 29, 2026
Machine Learning Engineer
Technical Screen
Machine Learning
Medium

0

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
model evaluation
AUC
NDCG
log loss
offline-online gap
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
  • 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 Prep
Sample 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:

  1. Per-head prediction quality: AUC (ranking quality of the score) and log loss (probability accuracy, which matters because heads are combined with weights).
  2. **Per...

Submit Your Answer
Markdown supported