Two-stage query segmentation for information retrieval

Michael Bendersky, W. Bruce Croft, David A. Smith

Abstract

Modeling term dependencies is essential for high-quality information retrieval (IR), yet standard approaches like the Sequential Dependence Model (SDM) suffer from high computational latency. This paper proposes a two-stage query segmentation framework that identifies meaningful concepts within queries to reduce unnecessary dependency calculations. By combining syntactic noun phrase detection with supervised learning from external knowledge sources (e.g., Wikipedia and query logs), the proposed Two-stage Dependence Model (TDM) achieves an approximately 50% reduction in query latency while maintaining retrieval effectiveness comparable to state-of-the-art models.

Introduction

In modern IR, the concept of "term dependence" recognizes that words in a query are often linked (e.g., "rock group" or "Nirvana"). While modeling these relationships improves relevance, the standard Sequential Dependence Model (SDM) evaluates every adjacent pair of words. As queries grow in length, this exhaustive approach leads to significant computational overhead, making it difficult to deploy in real-time web search environments. This research explores "segmentation" as a solution—breaking queries into discrete, meaningful chunks to limit dependency modeling only to terms that truly belong together.

Methodology

The authors introduce two models based on Markov Random Fields (MRF):

  1. Noun phrase Dependence Model (NDM): A purely syntactic approach that uses a shallow parser to identify noun phrases. It assumes dependencies only exist within these identified chunks.
  2. Two-stage Dependence Model (TDM): The core contribution of this work. Recognizing that noun phrases can be overly broad, TDM applies a second stage of refinement.
  3. Stage 1: Identify initial noun phrases via syntactic parsing.
  4. Stage 2: Use a supervised segmenter to break these phrases into statistically significant concepts.
Comparison of query segmentation strategies and their resulting Average Precision (AP).

The second-stage segmenter is trained on features including n-gram counts from Google, Wikipedia title matches, and Microsoft query logs. This allows the model to distinguish between random word sequences and legitimate concepts recognized by the broader web.

Experimental Evaluation

The models were evaluated across three standard TREC corpora: ROBUST04 (newswire), W10g (web crawl), and GOV2 (large-scale .gov crawl). The primary metrics for comparison were CPU time (latency) and retrieval effectiveness (Mean Average Precision and P@5).

Key Results

As shown in the performance data, the TDM approach successfully balances speed and accuracy:

  • Efficiency: Both NDM and TDM reduced CPU time by approximately 50% compared to SDM. For instance, on the GOV2 dataset, TDM reduced processing time from 16,488 to 7,785 units.
  • Effectiveness: On the W10g and GOV2 datasets, TDM's retrieval effectiveness was statistically indistinguishable from the more expensive SDM. In some cases, such as the W10g dataset, TDM even slightly outperformed the baseline.
  • The Necessity of Stage Two: TDM consistently outperformed the single-stage NDM, demonstrating that syntactic parsing alone is insufficient for optimal segmentation; external knowledge is required to refine concepts effectively.
Performance comparison across TREC datasets showing CPU time (cpu-t) and retrieval effectiveness (P@5, b-pref, MAP).

Conclusion and Future Work

The two-stage query segmentation framework proves that sparsity in dependency modeling can lead to massive efficiency gains without sacrificing search quality. By leveraging external data to identify "concepts," TDM avoids the "noisy" word pairings that slow down traditional models. Future research will focus on modeling non-adjacent dependencies in long queries and exploring weighted concept importance to further refine retrieval intent.

Summary updated

BibTeX
@inproceedings{bendersky2009two,
  author = {Michael Bendersky and W. Bruce Croft and David A. Smith},
  title = {{Two-stage query segmentation for information retrieval}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2009},
  doi = {10.1145/1571941.1572140},
}
Figure