[Paper Review] Towards Semantic Query Segmentation
This paper proposes a supervised query segmentation method using low-dimensional distributed query embeddings, eliminating reliance on handcrafted NLP features and external knowledge bases. By training an XGBoost classifier on fastText embeddings (cbow architecture), the approach achieves 79.9% segmentation accuracy on eBay’s 50K eCommerce query corpus—surpassing baseline n-gram models and generalizing well across domains without fine-tuning.
Query Segmentation is one of the critical components for understanding users' search intent in Information Retrieval tasks. It involves grouping tokens in the search query into meaningful phrases which help downstream tasks like search relevance and query understanding. In this paper, we propose a novel approach to segment user queries using distributed query embeddings. Our key contribution is a supervised approach to the segmentation task using low-dimensional feature vectors for queries, getting rid of traditional hand tuned and heuristic NLP features which are quite expensive. We benchmark on a 50,000 human-annotated web search engine query corpus achieving comparable accuracy to state-of-the-art techniques. The advantage of our technique is its fast and does not use external knowledge-base like Wikipedia for score boosting. This helps us generalize our approach to other domains like eCommerce without any fine-tuning. We demonstrate the effectiveness of this method on another 50,000 human-annotated eCommerce query corpus from eBay search logs. Our approach is easy to implement and generalizes well across different search domains proving the power of low-dimensional embeddings in query segmentation task, opening up a new direction of research for this problem.
Motivation & Objective
- To address the challenge of semantic query segmentation in search engines, where traditional methods rely on expensive, heuristic NLP features.
- To develop a scalable, domain-general approach that avoids dependency on external knowledge bases like Wikipedia.
- To improve segmentation accuracy by leveraging low-dimensional distributed embeddings that implicitly capture semantic and syntactic relationships.
- To evaluate the method on both web search and eCommerce query corpora, demonstrating generalization across domains.
- To show that word embeddings can implicitly handle spelling variations and word order changes, improving robustness over n-gram baselines.
Proposed method
- The method uses fastText to learn low-dimensional distributed embeddings for entire queries, capturing semantic and syntactic context.
- Query embeddings are trained using the cbow and skip-gram architectures, with cbow yielding superior performance.
- An XGBoost classifier is trained to predict segmentation breaks between tokens based on the query embeddings.
- Hyperparameter tuning via grid search identifies optimal settings: 800 estimators and depth 6 for cbow, 500 estimators and depth 4 for skip-gram.
- The training data is derived from a 50K query corpus annotated by at least two of three human annotators, with 80-20% train-test split.
- Segmentation decisions are made by predicting break points between adjacent tokens using the learned embedding representations.
Experimental results
Research questions
- RQ1Can distributed query embeddings replace handcrafted NLP features in query segmentation while maintaining or improving accuracy?
- RQ2How well does a model trained on web search queries generalize to eCommerce search queries without fine-tuning?
- RQ3Does the use of low-dimensional embeddings improve robustness to word order variations compared to n-gram baselines?
- RQ4To what extent do semantic embeddings implicitly handle spelling variations and morphological forms in queries?
- RQ5How does the model perform on ambiguous or domain-specific queries where human annotation agreement is low?
Key findings
- The proposed method achieved 79.9% segmentation accuracy on the eBay eCommerce query corpus, significantly outperforming the baseline n-gram model (71.3%).
- Query-level accuracy improved from 57.8% (n-gram) to 68.3% (fastText cbow + XGBoost), indicating better overall understanding of query intent.
- The cbow architecture for fastText embeddings yielded better results than skip-gram, with optimal XGBoost settings found via grid search.
- The model generalized well across domains, achieving comparable performance on both the 50K AOL web search corpus and the eBay eCommerce corpus.
- The method demonstrated robustness to word order changes—e.g., correctly segmenting "boost 350 yeezy" as one unit despite n-gram models failing.
- Despite low human annotator agreement (25% agreement across all three), the model achieved high performance, suggesting it learns stable semantic patterns beyond annotation ambiguity.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.