Two towers score the distance to an ideal listing
Airbnb's next ranker came from looking hard at its own mistakes, not from a bigger network.
The 2020 paper adds a lesson about architecture. More layers, residual connections and attention all came back neutral. What worked was a change aimed at a problem they could see in the data. The model had learned that cheaper is better, but it was missing the right price for a trip, which depends on the query.
One tower took the query and the guest and built a vector for the ideal listing for them. The other tower built a vector for each listing. The score was the distance between the two.
Online, against the 2019 network, bookings rose 0.6% and the average price of results fell 2.3%. And p99 scoring latency fell by a third, since the query tower runs once per search.
In the editor, write rank_by_ideal(ideal, listings): the listing ids sorted by straight-line distance to ideal, the query tower's vector, closest first.