Airbnb's system has the same shape. Its embedding-based retrieval narrows the eligible homes to a smaller pool that heavier models score later in the ranking (1 source). Two of its tricks buy time without losing quality, and both are worth naming in the round.
Both rest on a two-tower model, which splits the work between two networks. The query tower turns the query into a vector. The listing tower turns a listing into a vector. The score is how close the two vectors are.
- Precompute the listing side. For the 2025 retrieval model, the team picked listing features that could be computed offline once a day. Only the query tower runs for each search.
- Run the query side once. In the 2020 ranker, the query tower doesn't depend on the listing. So it runs once for the whole search, and only the listing tower runs for each listing. Online, p99 scoring latency fell 33%.
In the editor, write tower_runs(searches, scored, listings, precompute, query_once): how many times each tower runs in a day, with each trick on or off. The example is a full day at 2,000 searches a second, 2,000 listings scored per search and 7 million listings.