Abstract
Result relevance prediction is an essential task of e-commerce search engines to boost the utility of search engines and ensure smooth user experience. The last few years eyewitnessed a flurry of research on the use of Transformer-style models and deep text-match models to improve relevance. However, these two types of models ignored the inherent bipartite network structures that are ubiquitous in e-commerce search logs, making these models ineffective. We propose in this paper a novel Second-order Relevance, which is fundamentally different from the previous First-order Relevance, to improve result relevance prediction. We design, for the first time, an end-to-end First-and-Second-order Relevance prediction model for e-commerce item relevance. The model is augmented by the neighborhood structures of bipartite networks that are built using the information of user behavioral feedback, including clicks and purchases. To ensure that edges accurately encode relevance information, we introduce external knowledge generated from BERT to refine the network of user behaviors. This allows the new model to integrate information from neighboring items and queries, which are highly relevant to the focus query-item pair under consideration. Results of offline experiments showed that the new model significantly improved the prediction accuracy in terms of human relevance judgment. An ablation study showed that the First-and-Second-order model gained a 4.3% average gain over the First-order model. Results of an online A/B test revealed that the new model derived more commercial benefits compared to the base model.
Introduction
In e-commerce search, "semantic relevance" is a complex challenge. A user searching for "iPad" should ideally see an "Apple tablet" (a semantic match), while a search for "Mac Pro" should not return "Mac lipstick" despite the textual overlap. Traditional state-of-the-art models, such as BERT or interaction-based neural networks, focus primarily on First-order Relevance: the direct textual alignment between a query and an item title.
However, these models often ignore the rich behavioral context hidden in search logs. If thousands of users searching for "Query A" eventually purchase "Item C," that interaction provides a powerful signal of relevance that text-only models might miss. This paper introduces the concept of Second-order Relevance, which leverages the network structure of queries and items to capture global semantic relationships.
The HG4SM Framework
The proposed model, HG4SM (Heterogeneous GNN for Semantic Match), integrates both textual and behavioral signals through a three-phase process:
1. Knowledge-Enhanced Network Refinement
User behavior data, such as clicks, is often noisy; users may click on items due to attractive images rather than actual relevance. To address this, HG4SM uses a fine-tuned BERT model as an "offline teacher" to score query-item pairs. This process prunes the search log graph by removing noisy edges and adding missing, highly relevant edges that users may not have discovered yet.
2. First-order Relevance Modeling
This component captures direct textual relationships using a hybrid approach:
- Macro matching: A representation-focused view of the entire sentence.
- Micro matching: A word-level interaction matrix that aligns specific attributes (e.g., "256GB" or "iPhone") between the query and the title.
3. Second-order Relevance Modeling
This is the core innovation of the framework. Using metapaths (e.g., Query → Item → Query), the model examines neighbors in the bipartite graph. If two queries frequently lead to the same item, they are likely semantically related. A Graph Neural Network (GNN) with graph attention is employed to weigh which neighbors provide the most useful context.
Experimental Evaluation
The researchers evaluated HG4SM using massive real-world datasets from JD.com, including a specialized mobile-phone dataset and a general all-categories dataset containing over 10 million pairs. Evaluation was performed against a "gold standard" of human-judged relevance scores.
Key Results
- Offline Performance: HG4SM outperformed 11 state-of-the-art models (including DSSM and MatchPyramid), achieving a 1.8% to 5.4% gain in AUC over the next best model.
- Ablation Study: Removing the network component led to a significant performance drop, confirming that Second-order Relevance provides essential auxiliary information when textual signals are sparse or ambiguous.
- Online Impact: In a live A/B test on JD.com, the model increased the UV-value (Gross Merchandise Volume per user) by 5.7%, demonstrating that improved semantic relevance directly translates to commercial growth.
Conclusion
HG4SM demonstrates that behavioral context acts as a vital semantic bridge in e-commerce search. By using BERT to refine the network offline, the model gains deep semantic knowledge without incurring real-time latency penalties. Future work may explore incorporating edge weights (e.g., purchase frequency) and automated metapath discovery to further refine the capture of complex user-item relationships.
Summary updated