Abstract
Search engine ranking performance often suffers from "data sparsity," where rare "tail" queries or newly indexed URLs lack sufficient click history for accurate relevance prediction. This paper proposes a method to bridge this gap by decomposing queries and URLs into n-gram components and calculating the Mutual Information (MI) between them. By moving from exact string matching to feature-based matching, the authors demonstrate significant improvements in ranking quality for infrequent and complex queries.
Introduction
Modern search engines rely heavily on clickthrough logs to determine relevance. For instance, if users searching for "Yahoo" consistently click on www.yahoo.com, that URL becomes a high-confidence "Exact Match." However, this approach faces two critical challenges:
- Sparsity: Long-tail queries (e.g., "how to file irs form 1040 for 2023") are often unique. Without prior click data for the exact string, traditional models struggle to rank results.
- Bias: Exact match models naturally favor older URLs with established click histories, creating a barrier for relevant new content.
To address these issues, the authors propose a framework that generalizes from known click patterns to unseen query-URL pairs using n-gram feature matching.
Methodology
The core of the proposed approach is the construction of a "Query-URL N-gram Dictionary" through a multi-stage pipeline.
- Seed List Generation: The process begins by identifying 15 million "NavClicks"—query-URL pairs where a specific URL was the clear user favorite (the first and last clicked result).
- Segmentation: These pairs are broken down into n-grams (unigrams, bigrams, and trigrams). The authors also utilize skip-grams (e.g., extracting "irs form" from "irs 1040 form") to capture core semantic meanings that persist even when intermediate words are omitted.
- Mutual Information (MI) Calculation: An MI score is computed for every query n-gram and URL n-gram pair. A positive score indicates a strong association, while a negative score suggests the terms are unlikely to appear together.
- Feature Engineering: Two primary feature types are derived: Concept Segmentation, which identifies the optimal query split to maximize total MI with a URL, and Affix Segmentation, which uses structural anchors like the first and last words.
Experimental Setup
The model was trained and evaluated using large-scale real-world data:
- Mining Data: Six months of Yahoo! search logs, resulting in 15 million seed pairs and 0.5 billion query-URL n-gram associations.
- Evaluation Data: A human-labeled dataset of 94,000 training queries and 3,400 test queries. Each query-URL pair was graded on a five-point relevance scale.
Key Insights and Ideas
The n-gram approach reveals powerful semantic regularities within search behavior. For example, the presence of the word "form" in a query has a high MI with URLs containing "pdf," while "video" correlates strongly with "watch."
Furthermore, the method captures contextual nuances that unigram models miss. As shown in the table above, while "iphone" is strongly associated with apple.com, the addition of the word "plan" (forming the bigram "iphone plan") shifts the preference toward service providers like att.com. This allows the engine to "back off" to informative sub-sequences when a full query is unrecognized.
Key Results
The authors integrated 20 new n-gram features into GBRank, a gradient-boosted decision tree ranking model.
- Overall Performance: The augmented model achieved a statistically significant improvement (p < 0.0001) over a strong baseline that already utilized exact-match click features.
- Tail Query Gains: The most substantial improvements occurred for rare and long queries, with a relative increase of 1.11% to 1.40% in DCG5.
- Feature Importance: Analysis showed that the "Main Domain" feature—matching a query concept to a URL's top-level domain—was the most influential new addition.
Conclusion
While n-gram features significantly enhance tail query performance, they can slightly degrade results for simple navigational queries (e.g., "craigslist") where exact matches are already optimal. Future work may involve integrating toolbar data to track post-click behavior and exploring statistical smoothing techniques to better handle extremely rare n-grams.
Summary updated