Search engine technology relies heavily on understanding how users group words in a query to retrieve relevant results. However, search queries often lack standard grammatical structure, making traditional natural language processing (NLP) parsers ineffective. This paper, originally published in Computer and Information Science (2012), proposes a novel "hack" of traditional NLP tools: repurposing bilingual word alignment models for unsupervised query segmentation.
The Challenge of Query Segmentation
When a user enters a query like "chanel the fifth avenue new york," the search engine must identify that "new york" and "the fifth avenue" are distinct semantic units. This process, known as query segmentation, is difficult because queries are often telegraphic and non-grammatical. Traditional methods typically fall into two categories: supervised methods, which require expensive manually labeled data, or n-gram frequency methods, which often fail to capture long-distance relationships between words and typically only provide "flat" segments.
The Monolingual Word Alignment (MWA) Method
The researchers introduced the Monolingual Word Alignment (MWA) method to discover hierarchical phrase structures automatically. The core innovation lies in treating a search query as its own "translation" pair.
In statistical machine translation, word alignment models (such as IBM Model 3) map words from a source language to a target language. The authors created a parallel dataset where each query is paired with an identical copy of itself. To prevent the model from simply mapping every word to its identical twin, they imposed a critical constraint: a word cannot align to itself. This forces the statistical model to find the next most semantically related word within the query.
By identifying these relationships, the system performs iterative bottom-up parsing. It merges the most related terms into single units, repeating the process to create a tree-like, multilevel segmentation of the query.
Experimental Setup and Results
The model was trained on 5 million queries randomly sampled from Sogou search engine logs. For evaluation, the researchers used a set of 604 unique queries manually labeled by three human annotators to establish a "gold standard."
The MWA method was compared against a state-of-the-art baseline: a language model approach using Google Chinese n-gram data. The results demonstrated that the MWA method significantly outperformed the baseline across all metrics. Specifically, the MWA method achieved an average accuracy of 49.4%, compared to the baseline's 44.1%.
In terms of F-value, the MWA model achieved an average of 0.613, a relative improvement of approximately 13% over the baseline's 0.480. These results are particularly impressive given that human annotators only agreed on segmentation 60-72% of the time, highlighting the inherent subjectivity of the task.
Conclusion and Future Directions
The MWA method proves that word alignment is an effective tool for relationship discovery in an unsupervised, language-agnostic manner. By considering the relationship of terms across the entire span of a query, it captures long-span dependencies that n-gram models miss.
While the current model relies on statistical co-occurrence, future work could involve integrating linguistic features like part-of-speech tags. Additionally, the researchers aim to measure the downstream impact of this improved segmentation on actual search engine retrieval relevance, such as Mean Average Precision (MAP).
Summary updated