This paper, a collaboration between Yandex and the University of Glasgow, presents a unified framework for improving search engine query suggestions by balancing two often-conflicting goals: contextualization (tailoring suggestions to a user's current session) and diversification (ensuring suggestions cover a broad range of possible intents).
TL;DR
The authors propose a generative model that uses a user's recent search history—including previous queries, clicked documents, and even skipped results—to predict their next query. By treating diversification as a special case of contextualization, the framework significantly outperforms standard frequency-based baselines, especially for long, specific queries.
What Problem Does This Paper Address?
Most search engines use "Most Popular Suggestion" (MPS) as a baseline for auto-completion. While effective, MPS has two major flaws:
- Redundancy: It often suggests multiple variations of the same intent (e.g., "apache tomcat," "apache tomcat install," "apache tomcat download"), wasting valuable screen real estate.
- Lack of Context: It ignores what the user just did. If a user just searched for "apache" and clicked on pages about Native Americans, suggesting "apache tomcat" is likely a mistake.
Improving these requires two different strategies: contextualization (narrowing down to the user's likely intent) and diversification (broadening suggestions to cover multiple intents). These are naturally in opposition. The authors seek a mathematically motivated way to combine them into a single ranking framework.
Methods
The core of the paper is a framework that greedily selects the next query suggestion $q$ by maximizing the probability $P(q|T_k)$, where $T_k$ is the current context.
The Generative Model
The authors model user behavior using a mixture of intent-specific models. They assume that for any initial query $q_0$, there is a set of latent intents $I$. Each intent has its own:
- Click Model: Probabilities for document attraction and user satisfaction, inspired by the Simplified Dynamic Bayesian Network (DBN).
- Language Model: A distribution over the terms likely to appear in a follow-up query.
The relationship between these variables is captured in a graphical model:
Unifying Context and Diversity
The "aha!" moment of the paper is treating diversification as part of the context. When building a list of suggestions, the authors assume that if a user hasn't picked the first $k$ suggestions, those suggestions have "failed." This "failure" becomes part of the context for choosing the $(k+1)$-th suggestion, naturally pushing the model toward different, non-redundant intents.
This approach is mathematically related to the well-known xQuAD diversification framework but replaces the manual trade-off parameter ($\lambda$) with a dynamically calculated probability of "task continuation" based on the user's session behavior.
Datasets
The evaluation was performed offline using Yandex query logs:
- Training Set: 3 months of data (19M interactions, 17k unique starting queries).
- Test Set: 2 weeks of data (960k interactions, 7k unique starting queries).
- Filtering: To ensure robust intent modeling, the authors only included queries that had at least 400 observed interactions in the training set.
Key Insights and Ideas
- Clicks are Signals of Intent: Simply knowing the previous query is helpful, but knowing which documents the user clicked (or skipped) provides a much higher-fidelity signal for inferring their latent intent.
- Diversification as "Failure" Context: By framing diversification as a reaction to the "failure" of previous suggestions in the list, the authors eliminate the need for heuristic diversity scores.
- Context Helps Most Where MPS Fails: Contextualization provides the biggest gains for longer, more specific queries (which are rare and thus poorly served by frequency-based models) and for sessions where the user is clearly refining a previous search.
Key Results
The authors measured performance using Mean Reciprocal Rank (MRR) at a cut-off of 10.
- Overall Improvement: The full model (FCntxDiv), which uses previous queries, clicks/skips, and diversification, showed a 30.7% relative improvement over the baseline for all test interactions.
- Query Length Matters: As the target query gets longer (and thus harder to guess), the benefit of context grows. For queries longer than 3 words, the improvement over the baseline exceeded 100%.
- Prefix Refinement: When the user's second query contained the first query as a prefix (e.g., "apache" $\rightarrow$ "apache territory"), the model achieved a staggering 131.5% improvement (see Table 4).
Limitations and Future Work
- Lower Bound Evaluation: The offline evaluation assumes only the exact query the user eventually typed is "correct." In reality, other suggestions might have been equally useful, meaning the reported improvements are likely a conservative lower bound.
- Computational Complexity: Diversification is computationally expensive ($O(N^2)$). The authors mitigated this by only re-ranking the top 100 candidates, but real-time latency remains a concern for production systems.
- Future Directions: The authors suggest applying this intent-based mixture model to the diversification of the search results themselves, not just the query suggestions.
Summary updated