Eliciting Structural and Semantic Global Knowledge in Unsupervised Graph Contrastive Learning

Kaize Ding, Yancheng Wang, Yingzhen Yang, Huan Liu

Abstract

Unsupervised Graph Contrastive Learning (GCL) often struggles to capture long-range structural dependencies and high-level semantic patterns due to the local nature of message passing and instance-level contrastive objectives. We present $S^3$-CL, a novel framework that decouples feature propagation from network depth and employs Bayesian non-parametric clustering to bridge these gaps. By integrating multi-scale structural views with semantic prototype inference, $S^3$-CL enables simple neural networks to achieve state-of-the-art performance on standard graph benchmarks, often surpassing complex supervised models.

Introduction

Graph Neural Networks (GNNs) primarily rely on local neighborhood aggregation. While effective for many tasks, this approach faces two significant challenges in unsupervised settings: the structural gap and the semantic gap. The structural gap refers to the difficulty of capturing long-range dependencies without deep architectures, which are prone to oversmoothing. The semantic gap arises because standard GCL methods focus on instance-level similarity, neglecting the global community structure inherent in graphs. $S^3$-CL addresses these issues by explicitly modeling both structural and semantic global knowledge.

The $S^3$-CL Framework

The $S^3$-CL framework is designed for simplicity and efficiency, typically utilizing a single-layer MLP as an encoder. Its effectiveness stems from two core components:

Structural Contrastive Learning

To capture long-range context without deep stacking, $S^3$-CL uses multi-scale feature propagation. It pre-calculates graph views at various hop distances ($1, 2, \dots, L$). The model then maximizes agreement between a node's local representation and these high-order structural views, effectively learning long-range dependencies while avoiding oversmoothing.

Semantic Contrastive Learning

To bridge the semantic gap, $S^3$-CL identifies group-level patterns using a Dirichlet Process Mixture Model (DPMM). This Bayesian approach automatically determines the optimal number of clusters ($K$). The model follows an Expectation-Maximization (EM) optimization strategy: the E-step infers cluster prototypes, and the M-step updates the encoder to align node representations with these semantic prototypes.

Overview of the $S^3$-CL framework, illustrating the structural and semantic contrastive learning components.

Experimental Evaluation

The model was evaluated on several benchmarks, including citation networks (Cora, Citeseer, Pubmed), co-purchase/co-authorship graphs (Amazon-P, Coauthor CS), and the large-scale ogbn-arxiv dataset.

Key Results

  • Classification Accuracy: $S^3$-CL consistently outperformed state-of-the-art unsupervised methods. On Cora, it achieved 84.5% accuracy, exceeding supervised baselines like SGC and GAT.
  • Clustering Performance: Significant improvements were observed in node clustering, with a 2.2% NMI increase on Cora over previous SOTA methods.
  • Low-Resource Generalization: The model maintained a lead in scenarios with minimal labeled data (e.g., 1% label rate), demonstrating the robustness of its learned features.
  • Visual Clarity: t-SNE visualizations confirm that $S^3$-CL produces more distinct clusters with sharper boundaries than competing methods like SUGRL.
t-SNE visualizations comparing SUGRL and $S^3$-CL, demonstrating clearer cluster separation in the latter.

Conclusion

$S^3$-CL demonstrates that sophisticated graph representations can be achieved through simple architectures by focusing on the objective function rather than network depth. By decoupling propagation and leveraging Bayesian clustering, it effectively captures both structural and semantic global knowledge. Future work may explore its application to heterophily graphs and its scalability to even larger datasets beyond the current efficient K-means approximation for DPMM.

Summary updated

BibTeX
@inproceedings{ding2023eliciting,
  author = {Kaize Ding and Yancheng Wang and Yingzhen Yang and Huan Liu},
  title = {{Eliciting Structural and Semantic Global Knowledge in Unsupervised Graph Contrastive Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i6.25898},
}
Figure