Query Segmentation for Relevance Ranking in Web Search

Haocheng Wu, Yunhua Hu, Hang Li, Enhong ChenarXiv 2013

Abstract

This paper investigates methods to improve relevance ranking in web search through query segmentation—the process of dividing an input query into natural language phrases. We propose a two-stage re-ranking approach: a generative model first creates the top $k$ segmentation candidates, followed by a discriminative model that re-ranks them to identify the optimal result. Furthermore, we introduce a novel integration method that represents queries using both original words and segmented phrases. Our experiments across three large-scale web search datasets demonstrate that this approach significantly enhances the performance of state-of-the-art relevance models, including BM25, key n-gram, and dependency models.

Introduction

In the evolution of search technology, the transition from "bag of words" processing to semantic understanding remains a critical frontier. Query segmentation—identifying which words in a search query belong together as a single unit—is essential for capturing user intent. For instance, a query like "hot dog" should be treated differently than a search for "hot" and "dog" independently. This paper presents a robust framework for accurate query segmentation and its effective integration into ranking algorithms.

The Challenge of Ambiguity

The primary obstacle in query segmentation is linguistic ambiguity. Consider the query "my heart will go on mp3 download." While a human recognizes "my heart will go on" as a song title, a naive engine might fragment the query, leading to irrelevant results. Existing methods often rely on heuristics or unsupervised models that lack the precision needed for complex queries. Moreover, simply replacing words with phrases can be risky; if a segmenter incorrectly groups terms, the search engine might miss relevant documents that use the individual words.

Proposed Methodology

Two-Stage Re-ranking Approach

To address accuracy, we employ a re-ranking strategy common in natural language processing.

  1. Generative Stage: An unsupervised Wikipedia-Based Normalization (WBN) model generates the top $k$ (e.g., $k=6$) most probable segmentations.
  2. Discriminative Stage: A Support Vector Machine (SVM) re-ranks these candidates using features such as Mutual Information, capitalization patterns, and divergence from the initial unsupervised ranking.
Table 1: Examples of query segmentation candidates and their labels.

As shown in the table above, a single query can yield multiple plausible segmentations. The re-ranking model evaluates these candidates to select the one that most closely aligns with human intent (labeled as $+1$).

The "Both/And" Integration Strategy

A key contribution of this work is the "safety net" principle. Rather than choosing between word-based or phrase-based representations, we utilize both. By creating feature vectors for both individual unigrams/bigrams and segmented phrases, we ensure that even if the segmentation is slightly off, the word-based features allow the engine to maintain baseline relevance. These features are integrated into models like BM25 and combined using the LambdaMART learning-to-rank algorithm.

Experimental Results

The methodology was validated using three datasets: the Bergsma-Wang-Corpus (BWC), the Webis-QSec-10 (WQS), and a massive commercial web search dataset containing 240,000 queries.

  • Segmentation Accuracy: The re-ranking method significantly outperformed previous benchmarks. On the BWC dataset, query accuracy improved from 0.572 to 0.602.
  • Ranking Performance: The "Both/And" approach yielded statistically significant gains in Normalized Discounted Cumulative Gain (nDCG) across all tested relevance models.
  • Query Types: Improvements were most notable in "head" (popular) and random queries. "Tail" (rare) queries remain a challenge due to data sparsity, which limits the effectiveness of mutual information features.

Conclusion

Query segmentation is most effective when it augments, rather than replaces, traditional word-based indexing. By employing a two-stage re-ranking process and a dual-representation strategy, search engines can better navigate the nuances of natural language. Future research will focus on improving performance for tail queries and reducing the computational overhead of the re-ranking stage to meet the millisecond-latency requirements of real-time search.

Summary updated

Abstract

In this paper, we try to answer the question of how to improve the state-of-the-art methods for relevance ranking in web search by query segmentation. Here, by query segmentation it is meant to segment the input query into segments, typically natural language phrases, so that the performance of relevance ranking in search is increased. We propose employing the re-ranking approach in query segmentation, which first employs a generative model to create top $k$ candidates and then employs a discriminative model to re-rank the candidates to obtain the final segmentation result. The method has been widely utilized for structure prediction in natural language processing, but has not been applied to query segmentation, as far as we know. Furthermore, we propose a new method for using the result of query segmentation in relevance ranking, which takes both the original query words and the segmented query phrases as units of query representation. We investigate whether our method can improve three relevance models, namely BM25, key n-gram model, and dependency model. Our experimental results on three large scale web search datasets show that our method can indeed significantly improve relevance ranking in all the three cases.
BibTeX
@misc{wu2013query,
  author = {Haocheng Wu and Yunhua Hu and Hang Li and Enhong Chen},
  title = {{Query Segmentation for Relevance Ranking in Web Search}},
  year = {2013},
  eprint = {1312.0182},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1312.0182},
}
Figure