Problem
A maps app wants to recommend places (cafes, parks, museums) on its home screen. A place helps only if it is near the user and fits the time of day, so a generic recommender wastes slots. Users choose slowly, may visit days or weeks later, and rarely rate places. Human-rater labels, the first quality measure, are subjective and unrepresentative.
Example from the article: a bowling club in Blagoveshchensk shown to a Moscow resident has a near-zero chance of a visit.
Solution in brief
Yandex Maps ranks places with a transformer over the user's event history. User and candidate embeddings are computed separately, so relevance is a dot product and most work is precomputed offline. Candidates come from popularity lists and HNSW nearest-neighbor search. Training and evaluation use proxy signals (route building, bookmarks, calls) instead of ratings. Online quality is the share of discovery choices made through recommendations, and offline nDCG@10 filters models before an A/B test.
Questions this case answers
- How to rank candidates for a user when feedback is delayed and sparse and relevance depends on location, time and a limited display area
- How to serve a sequence-model recommender at low latency over a large candidate set
- How to recommend places (cafes, parks, museums) when distance, time of day and map viewport limit what can be shown?
- How to train and evaluate a recommender when users choose slowly and rarely leave ratings?
Tools and methods
- Transformer over event sequence — user as a sequence of actions, predicts target-action probability.
- Late binding (two-tower style) — separate user and candidate embeddings, dot-product relevance.
- HNSW — nearest organizations to the user embedding, for candidate generation.
- Collaborative and content-based filtering, matrix factorization — classical models used alongside.
- nDCG@10 — offline metric for screening models.
- A/B test — online comparison with the current version.
Google or a one-time email code. No password.