Multi-Task Learning for Document Ranking and Query Suggestion

Wasi Uddin Ahmad, Kai-Wei Chang, Hongning WangICLR 2018

This paper explores a fundamental truth about web search: when we search, we are on a journey. We rarely type one query and find exactly what we need; instead, we refine our terms and click on various results as our intent evolves. The authors propose a way to capture this "journey" to improve search engines.

TL;DR

The authors introduce M-NSRF (Multi-task Neural Session Relevance Framework), a model that jointly learns to rank documents and suggest the next query. By sharing a "session-level" memory that tracks a user's evolving intent across multiple searches, the model significantly improves document ranking and provides highly relevant query suggestions.

What Problem Does This Paper Address?

Traditionally, search engines treat Document Ranking (deciding what results to show for the current query) and Query Suggestion (predicting what the user will search for next) as two separate problems.

However, both tasks are driven by the same thing: the user's underlying information need. If a user searches for "cheap furniture" and then "craigslist virginia," their intent is becoming clearer. Existing models often ignore this session context, treating each query in isolation. The challenge is to create a unified framework that uses the history of a search session to better understand what a user wants right now and what they might want next.

Methods

The authors propose a multi-task learning (MTL) framework where two tasks share a common "brain"—a session-level recurrent state.

The M-NSRF architecture, illustrating the shared session encoder feeding into both the query decoder and document ranker.
  1. Encoders: The model uses Bidirectional LSTMs with max-pooling to turn queries and document titles into fixed-size vectors. This captures the semantic meaning of the text.
  2. Session Encoder: This is the core innovation. A unidirectional LSTM takes the sequence of query representations in a session and maintains a "session state." This state acts as a running summary of the user's intent.
  3. The Multi-Task Split:
    • Document Ranker: Combines the current query vector with the session state to calculate a relevance score for candidate documents.
  4. Query Recommender: A Sequence-to-Sequence (Seq2Seq) decoder that uses the session state to predict the words in the user's likely next query.
  5. Joint Optimization: The model is trained on two losses simultaneously: a ranking loss (did we predict the click?) and a suggestion loss (did we predict the next query?). They also introduce entropy regularization in the suggestion task to prevent the model from becoming too repetitive or "skewed" in its vocabulary.

Datasets

The researchers evaluated their model using the AOL search log, a massive public dataset of real-world search behavior.

  • Scale: They used over 1 million sessions for training, filtering for sessions between 2 and 10 queries long.
  • Preprocessing: They focused on document titles and used a 30-minute window of inactivity to define the end of a session.
  • Baselines: They compared against traditional models (BM25, Query Likelihood) and modern neural models (DSSM, CLSM, DRMM, and HRED-qs).

Key Insights and Ideas

  • Mutual Reinforcement: The biggest "aha" moment is that modeling query reformulations actually helps the model rank documents better. By trying to guess what the user will search for next, the model is forced to learn a deeper representation of the user's current intent.
  • Context is King: The ablation study showed that removing the session-level recurrent state (the "memory") caused a significant drop in performance. Search is not a series of isolated events; it's a conversation.
  • The Power of Entropy: In query suggestion, models often get stuck repeating common words. Adding entropy regularization forced the model to be more "decisive" and diverse, leading to much better BLEU scores (a measure of text quality).
  • Architectural Flexibility: The authors showed their framework is "plug-and-play." They successfully integrated it with another complex model called Match-Tensor, proving the multi-task session approach is broadly applicable.

Key Results

Document ranking performance comparing traditional, representation-focused, and the proposed multi-task models.
  • Superior Ranking: M-NSRF achieved a Mean Average Precision (MAP) of 0.581, vastly outperforming traditional BM25 (0.164) and standalone neural models like DSSM (0.263).
  • Better Together: The multi-task version (M-NSRF) outperformed the single-task version (NSRF) by about 5% in ranking metrics, confirming the benefits of joint learning.
  • Competitive Suggestions: In query suggestion, M-NSRF outperformed the state-of-the-art HRED-qs model across all BLEU score metrics and Mean Reciprocal Rank (MRR). Specifically, the entropy-regularized version saw a jump in BLEU-4 from 6.1 to 8.3.

Limitations and Future Work

  • Title Only: Currently, the model only looks at document titles. The authors acknowledge that incorporating the full body text of documents would likely improve results but increase computational cost.
  • Click Sequences: The current model knows if a document was clicked, but not the order of clicks within a session. Incorporating click sequences could provide even finer-grained intent signals.
  • Short-term Focus: The model is limited to a single session (usually <30 minutes). It doesn't account for a user's long-term search history over weeks or months, which is a much harder but potentially more rewarding personalization challenge.

Summary updated

BibTeX
@inproceedings{ahmad2018multi,
  author = {Wasi Uddin Ahmad and Kai-Wei Chang and Hongning Wang},
  title = {{Multi-Task Learning for Document Ranking and Query Suggestion}},
  booktitle = {International Conference on Learning Representations},
  year = {2018},
  url = {https://openreview.net/forum?id=SJ1nzBeA-},
}
Figure