Large-scale Real-time Personalized Similar Product Recommendations

Zhi Liu, Yan Huang, Jing Gao, Li Chen, Dong Li · DOI

Abstract

Similar product recommendation is one of the most common scenes in e-commerce. Many recommendation algorithms such as item-to-item Collaborative Filtering are working on measuring item similarities. In this paper, we introduce our real-time personalized algorithm to model product similarity and real-time user interests. We also introduce several other baseline algorithms including an image-similarity-based method, item-to-item collaborative filtering, and item2vec, and compare them on our large-scale real-world e-commerce dataset. The algorithms which achieve good offline results are also tested on the online e-commerce website. Our personalized method achieves a 10% improvement on the add-cart number in the real-world e-commerce scenario.

Introduction

In the competitive landscape of e-commerce, "similar product" recommendations—such as "Customers who viewed this also viewed..."—are critical drivers of user engagement. In the authors' study, these systems accounted for approximately 33% of total user visits. However, traditional implementations are often non-personalized, presenting the same list of items to every user viewing a specific product. This leads to a "conversion gap," where high click-through rates do not necessarily translate into "add-to-cart" actions. The challenge lies in integrating real-time user intent into similarity calculations while maintaining sub-100ms latency for high-traffic environments.

Methodology

The proposed framework utilizes a two-stage approach to balance scale and personalization:

  1. Candidate Pool Generation (Recall): An initial set of ~200 candidate items is generated using a combination of offline algorithms, including item-to-item collaborative filtering, attribute-based similarity, and business rules for new products.
  2. Real-time Personalized Ranking: The core of the system is a neural network that ranks these candidates by integrating a User Interest Vector. This vector is created through weighted average pooling of the user’s most recent click history (typically the last 8 items).
Architecture of the real-time personalized ranking model showing weighted average pooling and embedding layers.

A key innovation is the Add-Cart Enhance feature. To align the model with business objectives, the loss function is modified: when a user’s next action is an "add-to-cart" event—a stronger signal of intent than a click—the loss is multiplied by a factor ($\omega = 2$). This prioritizes items more likely to lead to conversions.

Experimental Results

The model was evaluated on a dataset comprising 200 million clicks from 2 million users across a catalog of 700,000 items.

Offline Performance

The personalized model consistently outperformed baselines like Image-Similarity (ResNet152) and standard Item-to-Item Collaborative Filtering. In predicting the next click (Top-5 Hit Ratio), the personalized model achieved 45.6%, compared to 40.9% for standard CF. With "Add-Cart Enhance," the Top-5 Hit Ratio for cart additions reached 53.7%, significantly outperforming traditional methods.

Online Impact

In a live A/B test on a production platform, the personalized approach demonstrated a significant uplift in business metrics.

Online performance comparison showing the daily add-cart numbers for different recommendation methods over a week.

As shown in the figure, the "Add cart enhance" method consistently outperformed both standard Item-to-item and Item2vec methods, resulting in a 10% overall improvement in the total number of "add-to-cart" events over the test period.

Conclusion and Future Work

Personalization effectively bridges the conversion gap in similar product recommendations by tailoring suggestions to the user's historical context and immediate intent. While successful, future work will focus on addressing the "cold start" problem for new items and incorporating deeper features such as product price and granular attributes. Additionally, the authors plan to explore more sophisticated cross-category recommendation logic to better model complex user journeys.

Summary updated

Abstract

Similar product recommendation is one of the most common scenes in e-commerce. Many recommendation algorithms such as item-to-item Collaborative Filtering are working on measuring item similarities. In this paper, we introduce our real-time personalized algorithm to model product similarity and real-time user interests. We also introduce several other baseline algorithms including an image-similarity-based method, item-to-item collaborative filtering, and item2vec, and compare them on our large-scale real-world e-commerce dataset. The algorithms which achieve good offline results are also tested on the online e-commerce website. Our personalized method achieves a 10% improvement on the add-cart number in the real-world e-commerce scenario.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Top-K hit ratio on test clicksPersonalized (real-time personalized method)Top 5 hit ratio45.6%split: test
Source quote
L163: Personalized │ 45.6 │ 55.2 │ 64.1
Top-K hit ratio on test clicksItem2vecTop 5 hit ratio42.4%split: test
Source quote
L161: Item2vec │ 42.4 │ 53.3 │ 61.0
Top-K hit ratio on test clicksPersonalized (real-time personalized method)Top 10 hit ratio55.2%split: test
Source quote
L163: Personalized │ 45.6 │ 55.2 │ 64.1
Top-K hit ratio on test clicksItem2vecTop 10 hit ratio53.3%split: test
Source quote
L161: Item2vec │ 42.4 │ 53.3 │ 61.0
Top-K hit ratio on test clicksPersonalized (real-time personalized method)Top 20 hit ratio64.1%split: test
Source quote
L163: Personalized │ 45.6 │ 55.2 │ 64.1
Top-K hit ratio on test clicksItem-to-itemTop 20 hit ratio61.8%split: test
Source quote
L159: Item-to-item │ 40.9 │ 50.7 │ 61.8
BibTeX
@misc{liu2020large,
  author = {Zhi Liu and Yan Huang and Jing Gao and Li Chen and Dong Li},
  title = {{Large-scale Real-time Personalized Similar Product Recommendations}},
  year = {2020},
  eprint = {2004.05716},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.05716},
}
Figure