HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Neighborhood-Enhanced Supervised Contrastive Learning for Collaborative Filtering

Peijie Sun Le Wu Kun Zhang Xiangzhi Chen Meng Wang

Neighborhood-Enhanced Supervised Contrastive Learning for Collaborative Filtering

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.

Code Repositories

PeiJieSun/NESCL
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
collaborative-filtering-on-gowallaNESCL
NDCG@20: 0.1617
Recall@20: 0.1917
collaborative-filtering-on-yelp2018NESCL
NDCG@20: 0.0611
Recall@20: 0.0743
recommendation-systems-on-amazon-bookNESCL
Recall@20: 0.0624
nDCG@20: 0.0513
recommendation-systems-on-gowallaNESCL
Recall@20: 0.1917
nDCG@20: 0.1617
recommendation-systems-on-yelp2018NESCL
NDCG@20: 0.0611
Recall@20: 0.0743

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Neighborhood-Enhanced Supervised Contrastive Learning for Collaborative Filtering | Papers | HyperAI