22/31
Part 6 of 6 · What interviewers ask nextLearn

Production click rates by position aren't the propensities

The practice problem's levels 3 and 4 are the first two follow-ups: where the propensities come from, and what IPS does to variance. The third is offline against online. Comparing two rankers live and questioning the click model come right after.

First: where do the propensities come from? Not from production click-through rate by position. That number mixes examination with relevance, because the ranker put better items on top.

In one simulation, with random relevances, a ranker sorting by a noisy estimate of them, and true propensities of [1.0, 0.6, 0.35, 0.2], production click-through rate by position came out like this, relative to the top:

Position0123
true propensity1.000.600.350.20
production click rate1.000.380.140.04

At position 3 that says 0.04 where the truth is 0.20. Dividing by it would weight those clicks about five times too heavily.

You need variation in position that has nothing to do with relevance. Three ways to get it:

  • Randomize the top results. For a small slice of traffic, shuffle the top few. Every position then gets the same mix of items, so click-through rate by position is proportional to the propensity.
  • Swap two results. Joachims, Swaminathan and Schnabel's intervention swaps two ranks before the user sees the page. Swap the top result with the one at a random rank jj.
  • Harvest the interventions you already ran. Most systems log several rankers, from A/B tests and model updates. When two rankers put the same item for the same query at different positions, that's a swap you didn't have to run.