Graph Contrastive Learning with Multi-Objective for Personalized Product Retrieval in Taobao Search

Longbin Li, Chao Zhang, Sen Li, Yun Zhong, Qingwen Liu, Xiaoyi ZengarXiv 2023 · DOI

Abstract

Researchers at Alibaba have developed GCL-MO, a Graph Contrastive Learning framework that optimizes for multiple user behaviors—clicks, purchases, and relevance—simultaneously. By utilizing a two-level graph structure and a modified contrastive loss, the model significantly improves personalized product retrieval in Taobao search, particularly for "long-tail" items that are often ignored by standard algorithms.

Introduction

In massive e-commerce platforms like Taobao, retrieval systems usually follow a "query-to-item-to-item" (q2i2i) pipeline. While effective, standard Collaborative Filtering (CF) and Embedding-Based Retrieval (EBR) suffer from three main issues: weak relevance, incomplete personalization, and popularity bias. Standard graph methods tend to over-recommend "head" (popular) items, leaving "long-tail" (niche or new) products invisible. GCL-MO addresses these by treating relevance as an explicit optimization objective and modeling nuanced user intent through multi-objective learning.

Methodology

The authors propose GCL-MO (Graph Contrastive Learning with Multi-Objective), which introduces three key innovations:

Two-Level Graph Structure

  • Objective-Level: Connects "trigger" items (from user history) directly to "candidate" items (what they saw/clicked/bought) to model specific behaviors.
  • Neighbor-Level: Builds a graph of items in the same category that were co-clicked, allowing the model to learn structural similarities and transfer knowledge to less-active items.

Multi-Objective Optimization

The model optimizes for four distinct binary labels: Relevance (determined by a pre-trained teacher model), Exposure, Click, and Purchase.

The GCL-MO framework integrates multi-objective contrastive learning with a robust graph structure.

Modified Contrastive Loss

Standard contrastive losses often involve a "mutual suppression" where multiple positive samples compete against each other. GCL-MO modifies the loss to ensure that one strong positive sample doesn't drown out other valid positive signals, which is vital for learning robust representations of long-tail items. Mathematically, this is achieved using a max-approximation of LogSumExp to prevent "intra-positive" conflict.

Data Augmentation

To make the embeddings more robust, the system uses "Node Dropping" and "Edge Perturbation" during training, forcing the model to learn the underlying semantics rather than just memorizing the graph structure.

Experimental Setup

The model was trained and evaluated using real-world data from Taobao Search:

  • Training Set: 14 days of online click and purchase logs.
  • Evaluation Set: 1 million search records (0.5M clicks, 0.5M purchases) from the day following the training period.
  • Scale: The offline inverted index contains approximately 100 million candidate items.

Results and Discussion

GCL-MO was tested against strong baselines like LightGCN and UltraGCN.

Offline Performance

GCL-MO achieved a Recall@6000 of 0.5732, outperforming the best baseline (UltraGCN) by a significant margin.

Comparison of GCL-MO against various graph-based recommendation baselines.

Online A/B Testing

In live Taobao traffic, the model delivered:

  • +0.36% increase in Gross Merchandise Volume (GMV).
  • +0.78% improvement in the "Good Rate" (relevance).
  • +1.53% increase in click-through rates.

Long-Tail Success

The model was particularly effective for niche products, increasing the exposure of long-tail items by 3.38% and their purchase rate by 1.37% compared to the previous production model. By treating relevance as a first-class citizen, the model ensures that personalized results stay within the constraints of the user's search query.

Conclusion

GCL-MO successfully addresses the challenges of relevance and popularity bias in large-scale retrieval. While it relies on a teacher model for relevance estimation and requires significant engineering overhead for index construction, its ability to handle "multi-positive" classification makes it a powerful tool for e-commerce. Future work may explore applying this modified contrastive loss to other domains.

Summary updated

BibTeX
@misc{li2023graph,
  author = {Longbin Li and Chao Zhang and Sen Li and Yun Zhong and Qingwen Liu and Xiaoyi Zeng},
  title = {{Graph Contrastive Learning with Multi-Objective for Personalized Product Retrieval in Taobao Search}},
  year = {2023},
  eprint = {2307.04322},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.04322},
}
Figure