27/36
Part 4 of 5 · Position bias and evaluationLearn and do

Fix two: feed position in to train, set it to 0 to score

Weighting is one fix for position bias. Airbnb used another.

ListingSlot
trainingL11booked: part of this booking is the slot
trainingL27not booked: part of this miss is the slot
scoringL10
scoringL20the slot is the same, so only the listing differs

Airbnb's own fix needs no propensity model. During training, position is an input to the network, so the network can explain part of each booking by where the listing sat. During scoring, position is set to 0 for every listing. Then position can't separate the listings, and only relevance does.

The network leans on position if it can. Added plainly and set to 0 at scoring, position cost about 1.3% NDCG against a model without it. So position goes through dropout at a rate of 0.15 during training: the input is hidden at random 15% of the time, which keeps the relevance part from depending on it.

Dates1234
Mar 3 to 7L2L5L8L1
Mar 10 to 14L5L1L8L2 booked, gone
Mar 17 to 21L8L2L5L1

The fix also needs listings to show up at different positions for reasons unrelated to quality. Airbnb gets that without shuffling any results.

  • Listings get booked and drop out of search, which moves the ones that remain.
  • Each listing has its own calendar, so the same listing lands at different positions for similar searches on different dates.

Removing position bias raised revenue

The online test lifted bookings 0.7% and revenue 1.8%. The paper explains the revenue surprise. Early models learned that cheap listings get booked, since price is a clean feature and quality is hard to learn. Each later model trained on rankings shaped by that, and inherited it.

The paper calls it stickiness: successive models overestimated how much guests prefer lower prices. Taking out position bias let the model weigh price against quality again.

In the editor, write position_input(positions, training, rng): the position column the network reads, in training and when scoring. rng is a numpy random generator, and rng.random(n) gives n numbers between 0 and 1.