Graph Learning for Exploratory Query Suggestions in an Instant Search System

4 Nov 2023

Problem

Search on a content platform leans toward a small set of highly consumed items, because users mostly look for what they already know. Query suggestions could push them toward exploration, but the usual sources fail in two ways. Suggestions based on semantic similarity lack diversity and ignore how people really search. Suggestions mined from search logs are sparse and biased toward popular queries.

Example from the article: in Spotify's instant search, the goal is more clicks on exploratory queries.

Solution in brief

Treat query suggestion as link prediction on a heterogeneous graph of queries and documents, then learn node embeddings with node2vec. The embeddings carry both semantic and collaborative information, and suggestions come from predicted links.

Questions this case answers
  • How to generate diverse query suggestions from search logs when semantic similarity lacks diversity and log-based similarity is sparse and dominated by popular queries
  • How to suggest queries that push users toward new content instead of the few popular items?
  • How to build query suggestions that combine meaning and real search behavior when logs are sparse?
  • How to measure whether query suggestions increase exploratory search?

Tools and methods

  • node2vec — learns embeddings of queries and documents from the graph
  • Link prediction — frames suggestion as predicting query-to-query or query-to-document links
  • Result diversification — the offline evaluation checks diversity as well as accuracy
  • Large-scale A/B test — measures coverage, clicks and exploratory clicks online
Continue reading — it's free

Google or a one-time email code. No password.