NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning a Replacement Model for Query Segmentation with Consistency in Search Logs

Wei Zhang, Yunbo Cao, Chin-Yew Lin, Jian Su, Chew Lim TanIJCNLP 2013

Abstract

Query segmentation (QS) is a critical task in search engine optimization, helping systems understand the semantic structure of user queries. Traditional methods face a trade-off between the scalability of unsupervised approaches and the accuracy of supervised ones. This paper introduces LRMC (Learning a Replacement Model with Consistency), a novel framework that leverages search logs to provide weak supervision. By identifying "intent sets"—groups of queries with similar search goals—the system automatically generates high-quality training data to refine the outputs of existing segmenters, resulting in a 7% improvement in F-score performance.

The Challenge of Query Segmentation

When a user enters a query like "download adobe writer," a search engine must determine whether the intended segments are [download] [adobe] [writer] or [download] [adobe writer]. This process, known as Query Segmentation, is essential for accurate document retrieval.

Historically, researchers have relied on two types of methods:

  1. Unsupervised methods: These scale easily to massive datasets but often lack the nuance required for high accuracy.
  2. Supervised methods: While accurate, these require expensive manual labeling and struggle to keep pace with the rapid emergence of new web terminology and slang.

LRMC bridges this gap by using unlabeled search log data to provide "weak supervision," keeping the system both accurate and adaptable.

The LRMC Framework

The LRMC framework operates as a refinement layer on top of existing segmentation tools. Instead of generating segmentations from scratch, it evaluates the top candidates produced by a "base segmenter" and determines if a lower-ranked candidate is actually more accurate based on cross-query consistency.

The LRMC framework: A base segmenter generates candidate segmentations, and a replacement model selects the most consistent one.

Methodology: Three Stages of Consistency

  1. Mining Intent Sets: The researchers define an "intent set" as a group of distinct queries that lead users to the same web pages (clicks). The core hypothesis is that queries within the same intent set should share consistent segmentation patterns.
  2. Automatic Labeling (The Consistency Trick): The system uses a base segmenter to generate the top-5 possible segmentations for every query in an intent set. It then applies two strategies to identify the "correct" one:
  3. M1 (Similarity): Choosing segmentations that are most similar across the entire intent set.
  4. M2 (Popularity): Choosing the segmentation whose individual segments appear most frequently across all top-n results in the set. This "wisdom of the crowd" approach proved most effective.
  5. The Replacement Model: Using this auto-labeled data, the authors train a binary SVM classifier. This model analyzes the #1 result from a base segmenter and decides whether to replace it with a different candidate from the top-n list.

Key Insights: The "Top-n" Opportunity

A pivotal discovery in this research was that for over 35% of queries, the correct segmentation already exists within the top-5 results of standard segmenters, even if it is not ranked first. This suggests that "re-ranking" or "replacing" is a more efficient path to accuracy than generative modeling.

Examples of queries where the Rank-2 segmentation result is more accurate than the Rank-1 result.

By using user behavior (clicks) as a proxy for linguistic structure, LRMC can identify when a shared segment like "adobe writer" is a single semantic unit, even if the base segmenter initially split it.

Performance and Results

The LRMC framework was tested against major benchmarks, including BW07 (500 noun-phrase queries) and WQ10 (4,850 diverse queries). Key findings include:

  • Significant Gains: LRMC improved the F-score of state-of-the-art unsupervised systems by approximately 7%.
  • Plug-and-Play Utility: The model showed consistent improvements across various base segmenters (Base-H1, Base-H2, and Base-CN), demonstrating its robustness as a general enhancement tool.
  • Discovery Power: The M2 strategy successfully discovered correct segmentations that base segmenters missed entirely in over 20% of cases.
  • Break-Level Accuracy: The model achieved approximately 80% accuracy in deciding whether to place a segment break between specific word pairs.

Limitations and Future Directions

While LRMC significantly advances the state of the art, it is not without limitations. If a base segmenter is consistently incorrect in the same way across an entire intent set, the model may learn and reinforce that error. There remains a performance gap between LRMC and a theoretical "Oracle" selector.

Future work will focus on Semantic Labeling, moving beyond simple segmentation to automatically assigning semantic tags (e.g., identifying "Adobe Writer" as a Software Product) using the same intent-set logic to further enrich search engine understanding.

Summary updated

BibTeX
@inproceedings{zhang2013learning,
  author = {Wei Zhang and Yunbo Cao and Chin-Yew Lin and Jian Su and Chew Lim Tan},
  title = {{Learning a Replacement Model for Query Segmentation with Consistency in Search Logs}},
  booktitle = {IJCNLP},
  year = {2013},
}
Figure