Abstract
Query facet mining is the process of automatically grouping search result attributes—such as "brands" or "materials" for a query like "watches"—to help users disambiguate intent and navigate results. Traditional methods primarily rely on rule-based statistical features, which often fail to capture "long-tail" items that are semantically relevant but appear infrequently. This paper presents DeepQFM, a novel framework that integrates deep semantic embeddings with traditional statistical metrics. By leveraging contrastive learning to pre-train item encoders, DeepQFM significantly improves the recall and ranking effectiveness of query facets, outperforming previous state-of-the-art methods.
Introduction
When users enter broad or ambiguous queries (e.g., "US universities"), search engines often struggle to satisfy specific information needs. Query facets—structured groups of related items like {Harvard, Princeton, Yale} or {Business, Law, Engineering}—provide a powerful mechanism for users to refine their search.
Existing mining methods, such as QDMiner, rely heavily on statistical features like word frequency and overlap. However, these methods are limited by their inability to recognize semantic proximity without high co-occurrence. For instance, a statistical model might ignore a specific luxury watch brand if it rarely appears in the retrieved document set, whereas a deep learning model can identify its relevance through semantic embeddings. DeepQFM bridges this gap by incorporating deep semantic information into the mining pipeline.
Methodology
DeepQFM follows a comprehensive four-step pipeline designed to extract, encode, cluster, and rank query facets.
1. List Extraction and Weighting
The process begins by extracting potential facet items from search results using text patterns, HTML tags, and "repeat region patterns." The authors introduce a "repeat context pattern" to identify items sharing common prefixes or suffixes, enhancing the discovery of structured data. This approach allows the model to extract structured data that isn't explicitly tagged in HTML but is visually obvious to a human reader. Extracted lists are then weighted based on their relevance to the query using traditional metrics like Inverse Document Frequency (IDF).
2. Deep Semantic Encoders with Contrastive Learning
To address the challenge of limited labeled training data (only 190 examples), DeepQFM utilizes contrastive learning. A BERT-based encoder is fine-tuned to pull representations of items from the same facet closer together in the embedding space while pushing items from different facets apart. This self-supervised approach allows the model to learn high-quality item representations that generalize well to new queries.
3. List Clustering ($WQT_{Deep}$)
The model groups similar lists using a modified Quality Threshold (QT) algorithm. The distance between lists is calculated as a linear combination of statistical overlap and semantic distance (cosine similarity of BERT embeddings). Experimental results indicate that the model performs best when relying heavily on semantic distance (90% weight) compared to statistical overlap (10% weight).
4. Facet and Item Ranking
Finally, the generated facets and their constituent items are ranked. The ranking algorithm integrates statistical frequency with semantic consistency scores to ensure that the most important and cohesive facets are presented to the user first.
Experimental Evaluation
The performance of DeepQFM was evaluated using two established benchmarks:
- UserQ: 83 queries issued by human subjects.
- RandQ: 105 queries randomly sampled from commercial search engine logs.
Both datasets include the top 100 search result documents per query, with manual labels categorizing facets as "good," "fair," or "bad."
Key Results
DeepQFM outperformed previous state-of-the-art methods (QDMiner) and supervised baselines (QF-I/QF-J) across multiple metrics:
- Recall: On the UserQ dataset, DeepQFM achieved a recall of 0.355, a significant improvement over QDMiner’s 0.227.
- Ranking Effectiveness: The model improved rp-nDCG (a measure of facet ranking quality) by approximately 21% over QDMiner.
- Clustering Quality: Higher Purity and F1 scores were observed, indicating more cohesive and accurate facet generation.
Discussion and Insights
The success of DeepQFM highlights several key insights:
- Semantics Over Statistics: Semantic features are significantly more effective than simple word overlaps for clustering related items.
- Self-Supervision for Small Data: Contrastive learning provides a critical "self-supervised" signal, allowing deep models to excel even when labeled data is scarce.
- Handling the Long Tail: By utilizing semantic embeddings, the model can "recall" items that are statistically rare but contextually relevant, leading to substantial gains in overall recall.
Conclusion and Future Work
DeepQFM demonstrates that integrating deep semantic information into query facet mining significantly enhances the quality and coverage of search attributes. While the model is computationally more intensive than purely statistical methods due to the BERT encoding step, strategies such as caching frequent item representations can mitigate efficiency concerns. Future research will explore refining list-level contrastive learning and integrating external knowledge bases to further improve the precision and depth of mined facets.
Summary updated