Learning a Product Relevance Model from Click-Through Data in E-Commerce

Shaowei Yao, Jiwei Tan, Xi Chen, Keping Yang, Rong Xiao, Hongbo Deng, Xiaojun Wan

Abstract

Training effective relevance models for e-commerce search is challenged by the "vocabulary gap" between user queries and product descriptions, as well as the inherent noise in click-through data. We present a robust framework that categorizes clicks into five fine-grained relevance levels and introduces the Multi-Aspect Semantic Model (MASM). By accounting for position bias and employing a novel threshold-based loss function, the proposed approach significantly improves search quality. Deployment on Taobao resulted in a 0.55% increase in Gross Merchandise Volume (GMV) while maintaining a low serving latency of 8ms.

Introduction

In e-commerce, a significant "vocabulary gap" often exists between how users search (using daily language) and how sellers describe products (using marketing or professional terminology). While neural networks can bridge this gap, they require massive training datasets. Standard web search models often use user clicks as a proxy for relevance; however, e-commerce clicks are notoriously noisy. A user might click a product due to an attractive image or low price, even if it does not perfectly match their query. Furthermore, "unclicked" results do not necessarily imply irrelevance, as products buried at the bottom of a page suffer from position bias.

Methodology

Fine-Grained Sample Construction

To address the noise in click data, the researchers moved beyond binary (relevant/irrelevant) labels to a five-category system: Strong Relevant, Relevant, Weak Relevant, Weak Irrelevant, and Strong Irrelevant.

Crucially, the first three levels are derived from Click-Through Rate (CTR) statistics. To ensure CTR reflects actual relevance rather than visibility, the team conducted a random re-ranking experiment to calculate and eliminate position bias. As shown in Figure 1, the relative bias decreases sharply as the exposure position increases, confirming that products at the top of the search results receive disproportionately more clicks regardless of relevance.

Relative bias vs. exposure position illustrating the necessity of position bias correction.

To further refine the model, "Weak Irrelevant" samples are generated via query rewriting (e.g., using "white dress" clicks as hard negatives for a "red dress" query), while "Strong Irrelevant" samples are randomly selected products.

Multi-Aspect Semantic Model (MASM)

To maintain the low latency required for production environments, the authors utilized a representation-based architecture where query and product embeddings are computed independently. To capture richer semantic detail, they introduced the Multi-Aspect Semantic Model (MASM).

The MASM architecture featuring multi-aspect attention for query and product embeddings.

As illustrated in Figure 2, MASM employs multi-aspect attention to compute multiple latent vectors for both queries and products across different semantic spaces. These vectors then interact through a "Sum-Diff-Concat" layer before passing through an MLP to produce a final relevance score.

Threshold-based Point-wise Loss

A new loss function was designed to use specific score thresholds for each of the five relevance levels (e.g., Strong Relevant targets > 0.9, while Strong Irrelevant targets < 0.1). This approach provides the ranking benefits of pair-wise learning while ensuring a calibrated, predictable score distribution necessary for online filtering.

Datasets and Evaluation

The model was trained on the LWR (Level-Wise Relevance) Dataset, a massive collection of 6.2 billion samples from Taobao search logs. For evaluation, a Human-Annotated Set of over 1 million query-product pairs labeled by experts as "Good" or "Bad" was used to ensure the model's predictions aligned with human judgment.

Key Results

  • Offline Performance: MASM+LWR achieved an ROC-AUC of 0.7948, significantly outperforming standard baselines like DSSM (0.6347) and fine-tuned SBERT (0.7188).
  • Online Impact: In live A/B testing on Taobao, the model increased GMV by 0.55% and improved the relevant result rate by 0.76 percentage points.
  • Efficiency: Architectural optimizations reduced online serving latency from 50ms to just 8ms, making it viable for high-traffic global search engines.

Conclusion

By treating CTR as a continuous spectrum of relevance and correcting for position bias, this framework successfully leverages noisy click data for high-precision ranking. The MASM architecture demonstrates that multi-aspect attention can capture complex semantics without the latency overhead of heavy interaction-based models. Future work will explore adapting pre-trained transformers like BERT into this pipeline while maintaining strict performance constraints.

Summary updated

BibTeX
@inproceedings{yao2021learning,
  author = {Shaowei Yao and Jiwei Tan and Xi Chen and Keping Yang and Rong Xiao and Hongbo Deng and Xiaojun Wan},
  title = {{Learning a Product Relevance Model from Click-Through Data in E-Commerce}},
  booktitle = {The Web Conference},
  year = {2021},
  doi = {10.1145/3442381.3450129},
}
Figure