Correct Position Bias When Training Wholesale Search Ranking From Clicks
Last updated: November 29, 2026
Quick Overview
Retailer clicks and orders on search results are used to train a product ranking model, but items shown higher get more engagement regardless of relevance. Explain how you would measure and correct this position bias in training and evaluation.
Faire
November 29, 20260
0
0 solved
Retailer clicks and orders on search results are used to train a product ranking model, but items shown higher get more engagement regardless of relevance. Explain how you would measure and correct this position bias in training and evaluation.
Search and browse ranking drives most product discovery on a wholesale marketplace, and logged engagement is the main training signal. The interviewer is probing whether you understand counterfactual learning to rank, propensity estimation, and why offline metrics on biased logs can mislead.
What the Interviewer Expects
- Explain why naive training on clicks reinforces the current ranker
- Describe propensity estimation via randomisation or intervention harvesting
- Apply inverse propensity weighting to the loss
- Mention position as a feature with a fixed value at serving time as an alternative
- Evaluate with unbiased offline metrics and confirm with A/B tests
- Note the role of orders versus clicks as labels
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 the user experience much?
- How does this interact with a grid layout rather than a list?
- How would you handle missing features for new products in the same model?
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
Labels: clicks, add to cart, and orders, which are rarer but closer to value. Layout: product grids on web and app, so 'position' is row and column. The goal is a ranker that orders by true relevance ...
Approach
Model the click as , where exposure probability depends on position and relevance on query and document. Estimate , then tr...