NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Self-supervised Graph Learning for Recommendation

Jiancan Wu, Xiang Wang, Fuli Feng, Xiangnan He, Liang Chen, Jianxun Lian, Xing XieSIGIR 2020 · DOI

Abstract

Representation learning on user-item graphs for recommendation has evolved from using single IDs or interaction history to exploiting higher-order neighbors. This leads to the success of graph convolution networks (GCNs) for recommendation such as PinSage and LightGCN. Despite their effectiveness, we argue that they suffer from two limitations: (1) high-degree nodes exert a larger impact on representation learning, deteriorating the recommendations of low-degree (long-tail) items; and (2) representations are vulnerable to noisy interactions, as the neighborhood aggregation scheme further enlarges the impact of observed edges. In this work, we explore self-supervised learning on user-item graphs to improve the accuracy and robustness of GCNs for recommendation. The idea is to supplement the classical supervised task of recommendation with an auxiliary self-supervised task, which reinforces node representation learning via self-discrimination. Specifically, we generate multiple views of a node, maximizing the agreement between different views of the same node compared to that of other nodes. We devise three operators to generate the views — node dropout, edge dropout, and random walk — that change the graph structure in different manners. We term this new learning paradigm as Self-supervised Graph Learning (SGL), implementing it on the state-of-the-art model LightGCN. Through theoretical analyses, we find that SGL has the ability to automatically mine hard negatives. Empirical studies on three benchmark datasets demonstrate the effectiveness of SGL, which improves recommendation accuracy, especially on long-tail items, and robustness against interaction noises.

Introduction

Modern recommendation systems increasingly rely on Graph Convolutional Networks (GCNs) to capture high-order relationships between users and items. However, these models face significant challenges. First, user-item interactions are often extremely sparse, making high-quality representation learning difficult. Second, real-world data distributions are skewed; popular items (high-degree nodes) dominate the learning process, often at the expense of niche "long-tail" items. Finally, implicit feedback like clicks is inherently noisy, and GCN neighborhood aggregation can amplify the impact of these accidental edges.

The SGL Framework

To address these issues, we propose Self-supervised Graph Learning (SGL). SGL supplements the standard supervised recommendation task (optimized via Bayesian Personalized Ranking loss) with an auxiliary self-supervised task based on node self-discrimination. The framework generates multiple "views" of the user-item graph through random augmentations and uses a contrastive InfoNCE loss to maximize the agreement between different views of the same node (positive pairs) while minimizing it for different nodes (negative pairs).

The SGL framework architecture, illustrating the joint optimization of the main recommendation task and the auxiliary self-supervised task using graph augmentations.

Crucially, SGL introduces no new trainable parameters, ensuring that its space complexity remains identical to the underlying GCN model, such as LightGCN.

Graph Augmentation Strategies

We introduce three primary operators to create perturbed graph views for self-supervision:

  • Node Dropout (ND): Randomly removes nodes and their connected edges to identify influential nodes and reduce sensitivity to specific structural changes.
  • Edge Dropout (ED): Randomly removes edges, which is particularly effective at mitigating the bias of high-degree nodes and improving robustness against noisy interactions.
  • Random Walk (RW): Applies different edge dropout masks at each layer of the GCN, effectively simulating a random walk across the graph structure.
Visual comparison of Edge Dropout and Random Walk augmentation strategies on a user-item graph across multiple layers.

Theoretical and Empirical Insights

Theoretical analysis reveals that the InfoNCE loss used in SGL naturally performs automatic hard negative mining. It focuses the learning process on "hard negatives"—nodes that appear similar in latent space but are distinct—making the training process significantly more efficient.

Empirical evaluations on the Yelp2018, Amazon-Book, and Alibaba-iFashion datasets demonstrate several key advantages:

  1. Superior Performance: SGL-ED consistently outperforms state-of-the-art models. For instance, on Amazon-Book, it achieved a 17.4% relative improvement in Recall@20 over LightGCN.
  2. Long-tail Success: SGL successfully shifts model attention toward low-degree items, significantly improving their recommendation accuracy compared to standard GCNs.
  3. Robustness and Speed: SGL is remarkably robust to noise; even with 20% random interaction noise, it can outperform a standard LightGCN trained on clean data. Furthermore, it exhibits massive speedups in convergence, reaching peak performance on Yelp2018 in just 18 epochs compared to 720 for LightGCN.

Conclusion

SGL provides a powerful, parameter-efficient framework for enhancing graph-based recommendation. By leveraging self-supervised contrastive learning, it overcomes the inherent biases and noise sensitivity of traditional GCNs. Future work may explore adaptive augmentation strategies to further refine the identification of influential graph structures.

Summary updated

BibTeX
@inproceedings{wu2020self,
  author = {Jiancan Wu and Xiang Wang and Fuli Feng and Xiangnan He and Liang Chen and Jianxun Lian and Xing Xie},
  title = {{Self-supervised Graph Learning for Recommendation}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2020},
  doi = {10.1145/3404835.3462862},
}
Figure