Abstract
Collaborative Similarity Embedding (CSE) is a unified framework designed to enhance recommender systems by integrating direct user-item interactions with indirect neighborhood relationships. By leveraging $k$-step random walks on the user-item bipartite graph and employing a scalable sampling strategy, CSE effectively addresses the pervasive issue of data sparsity. Empirical evaluations across eight diverse datasets demonstrate that CSE consistently outperforms state-of-the-art collaborative filtering models.
Introduction
Most recommendation algorithms rely on Collaborative Filtering (CF), which learns user preferences based on past interactions. These interactions are typically represented as a bipartite graph where edges connect users to the items they have liked or purchased. However, these graphs are often incredibly sparse—most users only interact with a tiny fraction of available items.
Standard models often struggle because they primarily focus on direct proximity (the edges that actually exist). They miss out on higher-order proximity: implicit relationships like "users who have similar tastes" or "items that are frequently co-consumed." Collaborative Similarity Embedding (CSE) addresses this by providing a unified, efficient framework that captures both direct and indirect relationships, scaling effectively to millions of users and items.
Methodology
The CSE framework consists of two primary modules integrated into a single objective function:
- Direct Similarity Embedding (DSEmbed): This module captures explicit edges in the graph. It is flexible enough to support both rating-based losses (predicting association strength) and ranking-based losses (ensuring a "positive" item is ranked higher than a "negative" one).
- Neighborhood Similarity Embedding (NSEmbed): This module captures indirect relationships using $k$-step random walks to identify "contexts" for users and items. For example, a 2-step walk from a user might land on another user who liked the same item, capturing user-user similarity.
To manage these relations simultaneously, CSE learns three distinct embedding matrices: a vertex mapping ($\Phi$) and two context mappings ($\Phi^{UC}$ for users and $\Phi^{IC}$ for items). This triplet structure allows a single node to play different roles (target vs. context) during training. To handle massive datasets, the authors use asynchronous stochastic gradient descent (ASGD) combined with negative sampling, ensuring the model's complexity remains linear relative to the number of observed interactions.
Key Insights and Results
A critical component of the CSE objective function is the hyperparameter $\lambda$, which balances the contribution of direct and neighborhood similarity. By combining these losses, the model forces embeddings to satisfy both local and global graph structures simultaneously.
The model was evaluated on eight diverse benchmark datasets, including Frappe, Netflix, MovieLens, and Amazon-Book. Key findings include:
- Superior Accuracy: CSE outperformed the best-performing baselines on 7 out of 8 datasets. On MovieLens-Latest, CSE showed an improvement of over 18% in Recall@10 and mAP@10 compared to the next best baseline.
- Robustness to Sparsity: The model performed particularly well on very sparse datasets like Amazon-Book, where indirect relationships are vital for bridging the gap between isolated users and items.
- Bipartite Awareness: Unlike general graph embedding tools (like DeepWalk), CSE is specifically designed for the bipartite nature of recommendation data, preventing users and items from being inadvertently pushed apart in the embedding space.
Conclusion
CSE provides a robust and efficient approach to recommendation by unifying local and global graph structures. While the optimal values for neighborhood order ($k$) and loss balance ($\lambda$) require empirical tuning, the framework's ability to learn high-quality embeddings from sparse data makes it a powerful foundation for modern recommender systems. Future work may involve incorporating content features to address "cold start" scenarios where no interaction data exists.
Summary updated