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
Machine Learning
Machine Learning Engineer
Faire
November 29, 2026
Machine Learning Engineer
Onsite
Machine Learning
Hard

0

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
position bias
inverse propensity weighting
learning to rank
counterfactual evaluation
implicit feedback
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
  • 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 Prep
Sample 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 P(c=1)=P(e=1∣k)⋅P(r=1∣q,d)P(c=1) = P(e=1 \mid k) \cdot P(r=1 \mid q, d), where exposure probability depends on position kk and relevance on query and document. Estimate θk=P(e=1∣k)\theta_k = P(e=1 \mid k), then tr...


Submit Your Answer
Markdown supported

Related Questions