Your Click Data Is Lying About Relevance, Politely
Train a ranking model on raw clicks and it learns that whatever you already show first is best. Position bias is not a footnote in learning to rank; it is the main thing the training pipeline has to defeat.
Clicks are not judgments. A product at position one gets clicked because it is relevant, because it is first, because its image is bright, and because its price is low, all mixed together in one number. The unbiased learning to rank literature, starting with the framework Joachims and co-authors published in 2017, treats a click as relevance multiplied by the probability the shopper even examined that position. eBay researchers Aslanyan and Porwal built a propensity estimator that needs no live experiments at all: it exploits the fact that the same product naturally changes rank for the same query over time as popularity and inventory shift, and reads the click differences as position effects.
What naive training actually learns
Feed raw clicks to a model and it discovers a shortcut: items historically shown high have high click rates, so it scores them high, so they get shown high. The loop is the same shape as the popularity feedback loop in recommendations, with position standing in for exposure. The model's offline metrics look wonderful, because the test data was generated by the same biased policy. It has learned to agree with the old ranker, which is the one thing you did not need a model for.
Taobao's relevance learning work makes a second point worth stealing: clicks measure attractiveness as much as relevance. Price, image quality, and title style all pull clicks toward products that may not match the query's intent. Their framework separates the relevance question, does this product match what was asked, from the attractiveness question, and trains them as related but distinct targets. Stores that skip the separation end up ranking photogenic wrong answers above correct ones.
The working corrections
Propensity weighting is the standard repair: divide each click's contribution by the estimated probability that position gets examined, so a click at position eight counts for more than a click at position one. Click models and expectation-maximization approaches estimate those propensities from logs; randomized position swaps on a small traffic slice measure them directly and are the gold standard when the traffic can afford it. eBay's natural-variation method is the budget option, and its published results beat the EM baseline it was tested against.
Whichever estimator you choose, validate on interleaving or a held-out slice served by a different policy. Offline NDCG on same-policy logs cannot see the bias you are trying to remove. The typo tolerance piece on this site covers the retrieval end of the same honesty problem: a search stack should be graded on what shoppers meant, not on what the current system happens to reward.
Where to start on a real store
You do not need a research team. Log position with every click and purchase, which many stores still fail to do, and you have the raw material. Start with purchase-weighted training targets instead of clicks, since purchases are sparser but far less position-drunk. Add propensity correction when the model is stable. And keep a human-judged set for your top queries, a few hundred query-product pairs graded by hand, as the one evaluation nobody's policy contaminated.
The out of stock ranking piece is a useful companion: availability is another case where the data records the system's own behavior, showing zero clicks for items it never really offered, and calls it irrelevance.
Frequently asked questions
What is position bias in search training data?
Shoppers click top results more because they are top results. Click probability combines relevance with the chance the position was examined at all, so raw clicks overstate the quality of whatever the current ranker already favors.
How does propensity weighting fix it?
Each click is weighted by the inverse of the probability that its position gets examined. A click at position eight, where few shoppers look, counts as stronger evidence than a click at position one.
Can I estimate position bias without running experiments?
Yes. eBay's published method uses natural rank changes: the same product appears at different positions for the same query over time, and the click differences reveal the position effect without any live intervention.
Why do offline ranking metrics look good on biased data?
Because the test logs came from the same policy as the training logs. The model is graded on agreeing with the old ranker. Interleaving or a differently-served holdout is needed for an honest read.