Choose Offline Metrics for a Home Feed Ranking Model

Last updated: November 29, 2026

Quick Overview

You trained a new home feed ranking model that predicts the probability a user saves a Pin. Which offline metrics would you use to compare it with production before an online test, and why?

Pinterest
Machine Learning
Machine Learning Engineer
Pinterest
November 29, 2026
Machine Learning Engineer
Technical Screen
Machine Learning
Easy

0

0

0 solved


You trained a new home feed ranking model that predicts the probability a user saves a Pin. Which offline metrics would you use to compare it with production before an online test, and why?

Pinterest ranks home feed candidates with multi-task models predicting saves, closeups and clicks, and ranking teams need offline metrics that predict online wins. The interviewer checks that you know ranking metrics, compute them per user rather than globally, and understand their limits.

What the Interviewer Expects
  • Distinguishes classification metrics (log loss, AUC) from ranking metrics (NDCG, recall at k)
  • Computes ranking metrics per request or per user, then averages
  • Explains why calibration matters if scores feed a value model
  • Mentions slicing by user tenure and content type
  • Acknowledges offline-online mismatch due to logged-policy bias
Key Topics to Cover
model evaluation
ranking metrics
NDCG
calibration
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
  • Offline AUC improved but the online save rate did not; give three reasons.
  • How would you weight multiple engagement types in one offline metric?
  • How do you evaluate fairness to new creators offline?
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
  • Labels come from logged impressions: saved (1) or not (0), plus graded signals like closeup and click.
  • The model output is used to sort a candidate set of several hundred Pins per request....
Approach

Use a small set of complementary metrics: log loss for probabilistic quality, global AUC as a sanity check, per-request AUC or NDCG@k for ranking quality where it matters, and calibration (predicted v...


Submit Your Answer
Markdown supported