Neighborhood-Enhanced Supervised Contrastive Learning for Collaborative Filtering

Peijie Sun, Le Wu, Kun Zhang, Xiangzhi Chen, Meng Wang
2/18/2024
cs.IRcs.AI

No official code found. Best implementation: PeiJieSun/NESCL (104 stars, MIT, last commit 2024-07-24).

Abstract

While effective in recommendation tasks, collaborative filtering (CF) techniques face the challenge of data sparsity. Researchers have begun leveraging contrastive learning to introduce additional self-supervised signals to address this. However, this approach often unintentionally distances the target user/item from their collaborative neighbors, limiting its efficacy. In response, we propose a solution that treats the collaborative neighbors of the anchor node as positive samples within the final objective loss function. This paper focuses on developing two unique supervised contrastive loss functions that effectively combine supervision signals with contrastive loss. We analyze our proposed loss functions through the gradient lens, demonstrating that different positive samples simultaneously influence updating the anchor node's embeddings. These samples' impact depends on their similarities to the anchor node and the negative samples. Using the graph-based collaborative filtering model as our backbone and following the same data augmentation methods as the existing contrastive learning model SGL, we effectively enhance the performance of the recommendation model. Our proposed Neighborhood-Enhanced Supervised Contrastive Loss (NESCL) model substitutes the contrastive loss function in SGL with our novel loss function, showing marked performance improvement. On three real-world datasets, Yelp2018, Gowalla, and Amazon-Book, our model surpasses the original SGL by 10.09%, 7.09%, and 35.36% on NDCG@20, respectively.

View on arXivView PDF

Code Implementations(1)

PeiJieSun/NESCLCommunity73%
MIT

The code repository for the paper: Peijie et al., Neighborhood-Enhanced Supervised Contrastive Learning for Collaborative Filtering. IEEE TKDE, 2023.

10414C++, ShellMay 28, 20242 years agoMIT
collaborative-filteringitemknnlightgcnnearest-neighborsneighborhood-recommendation+5 more

Similar Papers

Cite this paper

@article{sun2024neighborhoodenhanced,
  title  = {Neighborhood-Enhanced Supervised Contrastive Learning for Collaborative Filtering},
  author = {Peijie Sun and Le Wu and Kun Zhang and Xiangzhi Chen and Meng Wang},
  year   = {2024},
  eprint = {2402.11523},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.11523v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.11523.svg)](https://codeofpaper.com/paper/2402.11523)

Discussion