Introduction
Recommending complementary products—items frequently purchased together, such as a camera and its corresponding memory card—is a cornerstone of e-commerce cross-selling. Traditional recommendation engines typically rely on co-occurrence patterns in purchase baskets. However, this approach faces a significant "cold-start" challenge: the vast majority of products in a large catalog have few to no recorded purchases, making statistical inference of complementarity difficult.
Conversely, browsing data (product views) is significantly more abundant, often exceeding purchase volume by 20 to 100 times. While browsing data frequently signals substitutability (comparing similar items) rather than complementarity, it contains valuable structural information about product relationships. This paper introduces BB2vec, a framework designed to leverage plentiful but noisy browsing data to enhance sparse purchase-based recommendations.
Methodology: The BB2vec Framework
The core of BB2vec is a multi-task learning (MTL) framework built upon the word2vec (specifically prod2vec) architecture. The model learns vector representations (embeddings) for products by simultaneously optimizing two distinct tasks:
- Task A (Baskets): Predicting co-occurrence within a shopping cart.
- Task B (Browsing): Predicting co-occurrence within a browsing session.
By sharing "input" and "output" vectors across these tasks, the model forces a unified representation that satisfies both purchase and browsing patterns. This effectively uses browsing data as a regularizer for sparse purchase data.
To handle the massive scale of browsing data, the authors employ Stochastic Matrix Factorization of the Pointwise Mutual Information (PMI) matrix for the browsing task. This method is approximately 1,000 times faster than standard Skip-gram while maintaining asymptotic equivalence. Furthermore, the model adopts a learning-to-rank objective rather than simple binary classification, optimizing directly for the generation of top-N recommendation lists.
Experimental Setup
The model was evaluated across four e-commerce datasets:
- RecSys’15: Clicks and purchases from the 2015 ACM RecSys challenge.
- RecSys’15 - 10%: A subsampled version to test performance under extreme sparsity.
- CIKM’16: Browsing logs and transactions from the CIKM Cup 2016.
- CIKM’16 Categories: A denser variant using category IDs instead of product IDs.
Results and Discussion
BB2vec consistently outperformed standard prod2vec and traditional co-counting baselines in terms of HitRate@10 and NDCG.
The most significant gains were observed for "cold-start" items—those with zero or very few purchases in the training set. As shown in the performance analysis, traditional methods fail entirely when purchase data is absent, whereas BB2vec provides high-quality recommendations by drawing insights from browsing logs.
Interestingly, the benefit of incorporating browsing data diminishes for highly popular items. For products with abundant purchase data, the "clean" signal from baskets is sufficient, and the "noisy" browsing signal adds little value. This confirms that BB2vec's primary strength lies in addressing the "long tail" of the product catalog.
Conclusion
BB2vec demonstrates that multi-task learning can effectively bridge the gap between sparse, high-intent purchase data and dense, lower-intent browsing data. By treating browsing behavior as a prior for product relationships and employing efficient ranking objectives, the model significantly mitigates the cold-start problem in complementary product recommendation. Future work may involve incorporating product metadata (titles, images) to address "true" cold-start scenarios where neither views nor purchases are available.
Summary updated