Abstract
Traditional query suggestion systems often rely solely on textual logs, ignoring the rich behavioral context of a search session. This paper introduces MeshBART, a framework that incorporates "behavioral hypotheses"—diverse signals such as previous queries and clicked document titles—into a Transformer-based generative model. By employing a tokenwise attention mechanism to "mesh" these signals, the model dynamically prioritizes different aspects of user history. Experimental results on a large-scale job search dataset demonstrate that MeshBART significantly outperforms standard generative and discriminative baselines, particularly in generating novel suggestions for "tail" queries.
Introduction
When a search engine suggests a better way to phrase a query, it is performing "query suggestion." While effective, traditional systems often have a blind spot: they ignore "behavioral breadcrumbs"—like specific clicks—that signal true user intent. Standard generative models typically only look at the text of previous queries. In their EMNLP 2020 paper, Chen and Lee propose MeshBART, a model that "meshes" multiple behavioral signals to produce more accurate and novel search suggestions.
Problem Statement: The Gap in Implicit Intent
Query suggestion is a balancing act. Discriminative models, which rank suggestions from logs, fail on "tail" queries—rare searches that haven't appeared before. Generative models can create new queries but often lack the context of user intent. For example, if a user searches for "python" and then clicks a "Data Scientist" job posting, their intent is clearer than the text alone suggests. Standard Transformers struggle to ingest these diverse signals because they expect linear token strings; simple concatenation often creates "noisy" inputs that drown out relevant cues.
Methods: Behavioral Hypotheses and Meshing
The authors define four Behavioral Hypotheses ($K_1$ through $K_4$) representing different session influences:
- $K_1$: The sequence of previous queries.
- $K_2$: Titles of documents clicked in previous steps plus the current query.
- $K_3$: A mix of queries and their respective clicked document titles.
- $K_4$: The most recent query and its specific clicked document titles.
To process these, MeshBART uses a shared BART encoder for each hypothesis. The core innovation is the Meshed Representation: a tokenwise attention mechanism that learns to weigh these four streams at every token step. This allows the model to dynamically decide which signal is most relevant at any point in the generation process.
Datasets
The model was evaluated using a dataset from SEEK, a major job search engine. The dataset includes 500K training sessions and, crucially, contains the text of clicked document titles and metadata, which is essential for testing behavioral hypotheses.
Key Insights: The Power of Meshing
A key finding is how the model handles session dynamics. By analyzing the attention weights, the authors observed that the model shifts its focus based on the user's current state.
As shown in the attention analysis, in longer search sessions, the model naturally shifts its attention toward the broader query history ($K_1$). Conversely, when a user is clicking heavily on results, the model prioritizes the immediate cues from those clicks ($K_4$). This "meshing" provides the benefits of multi-source encoding while maintaining the efficiency of a single shared Transformer instance.
Key Results
MeshBART was compared against standard Seq2Seq models, a "Most Popular Suggestion" (MPS) baseline, and a vanilla BART model:
- Accuracy: MeshBART achieved a Word Error Rate (WER) of 40.9 and a BertF1 score of 76.5, significantly outperforming vanilla BART.
- Ranking: In terms of Mean Reciprocal Rank (MRR@3), MeshBART (42.7) outperformed vanilla BART (42.5) and significantly beat the Seq2Seq baseline (9.8).
- Novelty: MeshBART produced at least one "novel" suggestion (not found in training logs) for 39.2% of test sessions, demonstrating its ability to generalize.
Limitations and Future Work
While efficient, MeshBART still requires additional computational cycles to process four hypotheses per suggestion. Furthermore, the results are domain-specific to job search; user behavior might differ in more exploratory domains like general web browsing. Future work includes automating hypothesis design and extending the framework to e-commerce or recommendation systems.
Reference: Chen, R.C., & Lee, C.J. (2020). Incorporating Behavioral Hypotheses for Query Generation. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 3105–3110.
Summary updated