Pointwise, Pairwise or Listwise Loss for Ranking Eats Stores
Last updated: November 29, 2026
Quick Overview
You are training the model that orders restaurants in the Uber Eats home feed. Compare pointwise, pairwise and listwise learning-to-rank objectives and pick one for this product.
Uber
November 29, 20260
0
0 solved
You are training the model that orders restaurants in the Uber Eats home feed. Compare pointwise, pairwise and listwise learning-to-rank objectives and pick one for this product.
The Eats home feed is a ranking problem with a strong top-of-list effect, and Uber ML onsites probe whether you understand what each loss optimizes. The interviewer is looking for a choice justified by the feed's structure and the labels available.
What the Interviewer Expects
- Define each family and give an example loss
- Relate each to the evaluation metric (NDCG at k)
- Discuss label types: clicks, orders, graded relevance
- Address the cost of listwise training at large candidate counts
- Make a clear recommendation with reasons
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 does LambdaMART connect gradients to NDCG?
- How would you combine ranking with business constraints like ads slots?
- What would you do if most sessions have no order at all?
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
A session shows about 50 stores; eaters mostly scroll the top 10. Labels per session: impressions, clicks, and at most one order. The offline metric is NDCG@10 with gain 3 for order, 1 for click, 0 ot...
Approach
- Pointwise: treat each (eater, store) as independent and fit with log loss. Simple, calibrated scores that other systems can reuse, but it spends effort on absolute accuracy ins...