Billion-scale Commodity Embedding for E-commerce Recommendation in Alibaba

Jizhe Wang, Pipei Huang, Huan Zhao, Zhibo Zhang, Binqiang Zhao, Dik Lun LeeKDD 2018 · DOI

Introduction

Taobao, Alibaba's flagship C2C platform, manages a catalog of over 2 billion items for 1 billion users. At this unprecedented scale, traditional recommendation systems like Collaborative Filtering (CF) face three critical challenges: scalability (processing billions of items), sparsity (limited user-item interactions), and cold starts (recommending new items with no history). To address these, Alibaba researchers developed a graph embedding framework that leverages user behavior and item metadata.

Methodology: From Clicks to Embeddings

The core of the approach is a two-stage "Matching and Ranking" framework. This paper focuses on the matching stage, where a candidate set of similar items is generated using graph embeddings.

1. Item Graph Construction

The process begins by transforming user behavior into a weighted directed graph. Edges are created between items clicked consecutively by a user within a one-hour session. This temporal window ensures the graph captures specific shopping intents while filtering out unrelated "interest drift."

2. Embedding Techniques

The researchers proposed three levels of embedding complexity:

  • Base Graph Embedding (BGE): Uses DeepWalk—generating random walks on the item graph and applying the Skip-Gram model—to learn item representations. This captures higher-order relationships (e.g., $A \rightarrow B \rightarrow C$) that simple co-occurrence misses.
  • Graph Embedding with Side Information (GES): Addresses sparsity and cold starts by integrating "side information" like brand, category, and price. Embeddings for these attributes are averaged with the item's behavior-based embedding.
  • Enhanced Graph Embedding with Side Information (EGES): Introduces a weighted average layer to learn the relative importance of different side information types per item. For instance, "Brand" might be a stronger signal for electronics than for generic apparel.
The end-to-end graph embedding pipeline: from user behavior sequences to item embeddings via random walks and Skip-Gram.

Evaluation and Results

The framework was evaluated on the Amazon Electronics dataset and a massive internal Taobao dataset (2.6 million nodes for offline testing, scaled to 2 billion for production).

Offline Performance

In link prediction tasks, the EGES model achieved an AUC of 0.9746 on the Taobao dataset, significantly outperforming BGE (0.8797) and other baseline algorithms like LINE. This demonstrates the effectiveness of incorporating weighted side information.

Online Impact and Efficiency

In live A/B tests on the Mobile Taobao App, the embedding-based matching system delivered a consistent increase in Click-Through Rate (CTR) compared to the legacy CF-based system. Operationally, the system is highly efficient, utilizing 100 GPUs to update the billion-item similarity map in under six hours.

Conclusion

By combining graph-based behavior modeling with a flexible mechanism for integrating side information, Alibaba has successfully scaled high-quality recommendations to billions of items. The EGES model effectively mitigates the cold start problem and captures nuanced item relationships, providing a robust foundation for large-scale e-commerce discovery.

Summary updated

BibTeX
@inproceedings{wang2018billion,
  author = {Jizhe Wang and Pipei Huang and Huan Zhao and Zhibo Zhang and Binqiang Zhao and Dik Lun Lee},
  title = {{Billion-scale Commodity Embedding for E-commerce Recommendation in Alibaba}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2018},
  doi = {10.1145/3219819.3219869},
}
Figure