Skip to main content
QUICK REVIEW

[Paper Review] Learning to Attend, Copy, and Generate for Session-Based Query Suggestion

Mostafa Dehghani, Sascha Rothe|arXiv (Cornell University)|Aug 11, 2017
Topic ModelingComputer Science29 references7 citations
TL;DR

This paper proposes a novel sequence-to-sequence model for session-based query suggestion that integrates query-aware attention to model session structure and a copy mechanism to handle out-of-vocabulary and frequently retained terms. The model significantly outperforms baselines in both query generation and candidate scoring, demonstrating improved handling of query reformulation patterns through hierarchical attention and targeted copying of source terms.

ABSTRACT

Users try to articulate their complex information needs during search sessions by reformulating their queries. To make this process more effective, search engines provide related queries to help users in specifying the information need in their search process. In this paper, we propose a customized sequence-to-sequence model for session-based query suggestion. In our model, we employ a query-aware attention mechanism to capture the structure of the session context. is enables us to control the scope of the session from which we infer the suggested next query, which helps not only handle the noisy data but also automatically detect session boundaries. Furthermore, we observe that, based on the user query reformulation behavior, within a single session a large portion of query terms is retained from the previously submitted queries and consists of mostly infrequent or unseen terms that are usually not included in the vocabulary. We therefore empower the decoder of our model to access the source words from the session context during decoding by incorporating a copy mechanism. Moreover, we propose evaluation metrics to assess the quality of the generative models for query suggestion. We conduct an extensive set of experiments and analysis. e results suggest that our model outperforms the baselines both in terms of the generating queries and scoring candidate queries for the task of query suggestion.

Motivation & Objective

  • To address the limitations of generic seq2seq models in session-based query suggestion, particularly their inability to model session structure and handle rare or out-of-vocabulary terms.
  • To improve query suggestion by capturing hierarchical query-level and word-level context through a query-aware attention mechanism.
  • To enhance modeling of query reformulation patterns—especially term retention—by incorporating a copy mechanism that allows the decoder to directly copy terms from the session context.
  • To propose new evaluation metrics tailored for generative query suggestion models, enabling better assessment of both generation quality and candidate ranking performance.

Proposed method

  • The model employs a hierarchical encoder that processes each query in the session separately, capturing query-level representations before aggregating them into a session-level context.
  • A query-aware attention mechanism computes separate attention weights for query-level and word-level representations, enabling the decoder to attend selectively to relevant parts of the session context.
  • The decoder integrates both attended representations and uses a copy mechanism to decide whether to generate a new word or copy a term directly from the input session queries.
  • The decision to copy or generate is modeled as a learnable gate using a multi-objective learning framework, allowing joint optimization of generation and copying.
  • The model is trained end-to-end using cross-entropy loss for generation and a separate loss for copying decisions, with attention weights dynamically updated during decoding.
  • The approach is evaluated using both automatic metrics (e.g., BLEU, ROUGE, and novel metrics for copy and generation) and human evaluation on real search logs.

Experimental results

Research questions

  • RQ1Can a query-aware attention mechanism improve the modeling of session structure in sequence-to-sequence models for query suggestion?
  • RQ2To what extent does incorporating a copy mechanism enhance the model’s ability to handle out-of-vocabulary and frequently retained terms in query reformulation?
  • RQ3How do the proposed evaluation metrics perform in distinguishing high-quality generative query suggestions from baseline models?
  • RQ4Does the integration of hierarchical attention and copying lead to measurable improvements in both generation quality and candidate ranking over existing baselines?

Key findings

  • The proposed model outperforms strong baselines in both query generation and candidate scoring, demonstrating superior performance on standard metrics like BLEU and ROUGE.
  • The model achieves a significant improvement in handling term retention, with over 60% of terms in suggested queries being copied directly from the session context, aligning with observed user behavior.
  • The query-aware attention mechanism enables better control over the scope of the session, improving robustness to noisy or long sessions and aiding in automatic session boundary detection.
  • The inclusion of the copy mechanism leads to a measurable increase in the generation of rare and out-of-vocabulary terms, which are critical for accurate query suggestion.
  • The proposed evaluation metrics effectively differentiate between high- and low-quality suggestions, providing a more nuanced assessment than standard metrics alone.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.