Correct Position Bias When Training a Ranker on Click Logs
Last updated: November 29, 2026
Quick Overview
Your product search ranker is trained on clicks, but items shown at the top get clicked more just because of their position. How would you remove position bias from training and from offline evaluation?
Amazon
November 29, 20260
0
0 solved
Your product search ranker is trained on clicks, but items shown at the top get clicked more just because of their position. How would you remove position bias from training and from offline evaluation?
Amazon search and recommendations learn from implicit feedback that is heavily shaped by what the current system showed. Interviewers check knowledge of counterfactual learning to rank: examination models, propensity estimation, and inverse propensity weighting.
What the Interviewer Expects
- Explain the examination hypothesis
- Estimate position propensities with interventions or EM
- Apply inverse propensity weighting to the loss
- Discuss variance and clipping
- Evaluate offline with debiased metrics and validate online
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 estimate propensities without hurting customers with random shuffles?
- How does the grid layout on mobile change the position model?
- How would you handle trust bias, where top results are also trusted more?
- What is the bias-variance trade-off when clipping weights?
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
- Layout: list or grid? Propensity depends on screen position, not just rank.
- Signal: clicks, add-to-cart, or purchases? Purchases have less position bias but are sparser.
- Can we run small interve...
Approach
Examination hypothesis: a click happens if the item is examined and relevant: If we know , we can ...