Generative-Contrastive Graph Learning for Recommendation

Yonghui Yang, Zhengwei Wu, Le Wu, Kun Zhang, Richang Hong, Zhiqiang Zhang, Jun Zhou, Meng Wang

Introduction

Collaborative Filtering (CF) is the cornerstone of modern recommendation systems, leveraging user-item interaction graphs to predict preferences. However, these graphs are notoriously sparse, as most users interact with only a fraction of available items. To mitigate this, researchers have turned to Graph Contrastive Learning (GCL). Traditional GCL methods create "augmented" views of the graph—typically by randomly dropping edges or nodes—and train models to recognize that different versions of the same node should remain close in the embedding space.

Despite their success, the authors of this paper identify two critical flaws in existing GCL approaches. First, Structure Distortion: random augmentations can inadvertently destroy the intrinsic nature of user-item relationships. Second, One-Size-Fits-All Noise: current methods apply uniform noise levels to all nodes, ignoring the fact that a "power user" with thousands of interactions requires a different level of augmentation than a "long-tail" user with only a few.

The VGCL Framework

To address these limitations, the authors propose VGCL (Variational Graph Generative-Contrastive Learning). This framework moves away from heuristic data augmentations toward a generative approach that learns node-specific distributions. By sampling from these distributions, VGCL creates contrastive views that are statistically grounded in the graph's original structure.

The VGCL framework: Variational Graph Reconstruction and Cluster-aware Contrastive Learning.

As shown in the architecture above, the framework consists of three main components:

  1. Variational Graph Reconstruction: Utilizing a Variational Graph Auto-Encoder (VGAE) with a LightGCN backbone, the model estimates a multivariate Gaussian distribution (mean $\mu$ and variance $\sigma$) for every node. This allows the model to capture the uncertainty and unique characteristics of each user and item.
  2. Generative Contrastive Views: Instead of stochastic edge dropping, VGCL generates views by sampling twice from the learned Gaussian distribution of each node. This ensures the views preserve the "sufficient invariants" of the data.
  3. Cluster-Aware Twofold Contrastive Learning: The model employs both node-level and cluster-level losses. Node-level loss ensures samples of the same node stay close, while cluster-level loss (using K-Means) encourages nodes within the same semantic group to have consistent representations.

Adaptive Noise and Performance

A key innovation of VGCL is its ability to scale noise adaptively. The learned variance ($\sigma$) acts as a personalized noise scale. The authors observed that the model naturally learns larger variances for users with more interactions, providing stronger self-supervised signals where they are most beneficial.

Performance improvement and adaptive noise analysis on Douban-Book and Dianping datasets.

As illustrated in the experimental analysis, VGCL consistently outperforms state-of-the-art baselines like SimGCL. On the Douban-Book dataset, VGCL improved NDCG@20 by 28.17% over standard LightGCN and by 6.36% over SimGCL. The model demonstrates particularly strong gains in denser user groups (U1-U4), validating the effectiveness of the adaptive noise mechanism.

Efficiency and Robustness

Beyond accuracy, VGCL offers significant efficiency gains. Standard GCL models often require three separate graph convolution passes (one for the main task and two for augmentations). In contrast, VGCL requires only a single pass to estimate distributions, reducing time complexity from approximately $O(6|E|d)$ to $O(2|E|d)$. By reconstructing the graph, the model ensures that contrastive views maintain critical interactions that random dropout might otherwise remove.

Conclusion and Future Work

VGCL represents a shift toward more principled, generative self-supervision in recommendation systems. While the model introduces some complexity through clustering and additional hyperparameters, its ability to preserve graph structure while adaptively scaling noise leads to superior performance and robustness. Future research may explore non-Gaussian distribution types and the application of this generative-contrastive paradigm to broader graph-based machine learning tasks.

Summary updated

BibTeX
@inproceedings{yang2023generative,
  author = {Yonghui Yang and Zhengwei Wu and Le Wu and Kun Zhang and Richang Hong and Zhiqiang Zhang and Jun Zhou and Meng Wang},
  title = {{Generative-Contrastive Graph Learning for Recommendation}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2023},
}
Figure