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.
- Generative Stage: An unsupervised Wikipedia-Based Normalization (WBN) model generates the top $k$ (e.g., $k=6$) most probable segmentations.
- 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.
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