Problem
Yandex Maps, Navigator and Search answer queries about organizations using a directory where owners assign rubrics and features. Candidates are matched by name, rubric and feature, and CatBoost ranks them. This works for [cafe] but fails for [cozy cafe]: "cozy" cannot be formalized as a feature, and users read rubrics differently from owners. A fast-food chain tagged "restaurant" appears for [restaurant], where users expect expensive places with good service. Complex queries miss relevant places or show irrelevant ones.
Example from the article: for [cakes Ryazan] the results included a pizzeria chain and KFC; for [hookah bars in St. Petersburg] they included a sushi bar.
Solution in brief
Use review texts as a relevance signal at the final ranking stage. Fine-tune Large BERT to predict expert relevance labels for (query, organization reviews) pairs, then distill it into a DSSM network. DSSM computes organization representations ahead of time, so only the query is processed at runtime. In the shipped version it works as a filter that removes irrelevant organizations.
Questions this case answers
- How to add a text-based relevance signal to a ranking model when structured item attributes cannot express what users ask for and click logs only repeat the current ranking
- How to move a heavy transformer relevance model into production under a tight latency budget by distilling it into a cheaper network
- How to make local search understand queries such as [cozy cafe] that owner-assigned categories and features cannot express?
- How to use review texts as a relevance signal in a ranking model?
Tools and methods
- Large BERT (YATI-based) — fine-tuned on expert relevance labels for query and top reviews.
- DSSM — two-tower network that imitates BERT cheaply at runtime.
- Knowledge distillation — trains DSSM on BERT scores for about 300 million query-organization pairs.
- CatBoost — the existing geosearch ranker that receives the new feature.
- Expert relevance labeling — judgments of whether an organization solves the query.
Google or a one-time email code. No password.
