Similar Listings (Airbnb / Item-to-Item Recommendations)
Goal: on a listing page, show other listings the user is likely to book next ("similar homes"), for a large catalog with constant churn.
training: user browsing sessions [l12, l7, l40, l3 (booked)] -> skip-gram on sessions (listing2vec)
positives = co-viewed within a window; global context = the booked listing; negatives = same-market samples
serving: listing embedding -> ANN index per market -> top 100 nearby in embedding space
-> filters (dates available, capacity, location radius) -> light re-rank (price, quality) -> top 12
- Session-based embeddings (word2vec on click sessions) capture what users actually consider similar — better than raw attribute similarity. Airbnb's trick: add the eventually-booked listing as global context and sample negatives from the same market so embeddings learn within-city distinctions.
- Cold start for new listings: average the embeddings of nearby listings with similar type/price/capacity until data accrues.
- Freshness: retrain embeddings daily; index refresh; availability changes constantly → filter at query time, not in the embedding.
- Metrics: offline — rank of the eventually booked listing among candidates (hit rate@k); online — CTR on the carousel, bookings, revenue.