Community-Aware Efficient Graph Contrastive Learning via Personalized Self-Training

Yuecheng Li, Yanming Hu, Lele Fu, Chuan Chen, Lei Yang, Zibin ZhengarXiv 2023 · DOI

Abstract

Graph Contrastive Learning (GCL) has emerged as a powerful technique for node representation learning. However, standard GCL approaches often fail to capture global community structures and suffer from "class collision," where nodes belonging to the same semantic cluster are incorrectly treated as negative pairs. This paper introduces CueGCL (Cluster-aware Graph Contrastive Learning), a framework designed to bridge the gap between contrastive learning and unsupervised clustering. By employing a Personalized Self-Training (PeST) strategy centered on real-node "medoids," CueGCL achieves superior clustering performance and robustness.

Introduction

The core principle of GCL involves pulling positive pairs closer while pushing negative pairs apart. Despite its success, GCL faces two critical challenges in unsupervised graph clustering:

  1. Lack of Cluster Awareness: Traditional GCL focuses on local node-level similarities, ignoring the broader community context.
  2. Class Collision: Random negative sampling often selects nodes from the same community as the target node, leading the model to learn incorrect boundaries.

CueGCL addresses these issues by integrating community-level information directly into the contrastive learning objective, ensuring that the learned embeddings are optimized for global structure.

Methodology: The CueGCL Framework

CueGCL introduces several novel components to ensure embeddings are optimized for clustering tasks.

The CueGCL framework architecture, illustrating the interaction between the GCN, the PeST module, and the Aligned Graph Clustering (AGC) module.

Personalized Self-Training (PeST)

The PeST module periodically identifies "medoids"—the most central real nodes within each cluster. Unlike virtual centroids used in K-means, medoids are actual graph nodes, providing a more grounded representation of community features. This strategy acts as a debiased form of contrastive learning, guiding nodes toward their respective community centers and forcing nodes in the same cluster to adaptively converge in Euclidean space.

Aligned Graph Clustering (AGC)

To prevent drift between the feature space and the clustering space, CueGCL utilizes an Aligned Graph Clustering module based on Deep Embedding Clustering (DEC). This ensures that the learned representations are inherently well-suited for the downstream clustering task by aligning the clustering space with the feature space learned during self-training.

Joint Optimization

The model is trained end-to-end using a multi-objective loss function that balances standard contrastive loss ($L_{cl}$), self-training loss ($L_{st}$), clustering loss ($L_{clus}$), and alignment loss ($L_{al}$).

Experimental Evaluation

The framework was evaluated on five benchmark datasets: Cora, Citeseer, PubMed (citation networks), and Cornell, Texas (webpage networks).

Key Results

CueGCL consistently outperforms existing state-of-the-art (SOTA) methods. On the Cora dataset, it achieved a clustering accuracy (ACC) of 77.9%, a significant jump over previous methods like gCooL and GDCL.

t-SNE visualizations of node embeddings on the Cora dataset. (a) Raw features, (b) gCooL baseline (ACC=72.3), and (c) CueGCL (ACC=77.9). Red boxes highlight areas where CueGCL achieves better cluster separation.

Robustness to Negative Samples

A significant advantage of CueGCL is its stability. While traditional GCL models require large numbers of negative samples (which increases class collision risk), CueGCL remains effective with as few as 10 negative pairs. In experiments on Citeseer, standard GCL models saw their performance plummet as negative samples increased, whereas CueGCL maintained high performance, proving its fairness toward all clusters.

Conclusion and Future Work

CueGCL provides a scalable ($O(n)$ complexity) and cluster-aware approach to graph contrastive learning. By leveraging medoid-based self-training, it effectively mitigates the class collision problem and captures community structures. Future research directions include automating the selection of the number of clusters ($K$) and extending the framework to dynamic or temporal graph structures.

Summary updated

BibTeX
@misc{li2023community,
  author = {Yuecheng Li and Yanming Hu and Lele Fu and Chuan Chen and Lei Yang and Zibin Zheng},
  title = {{Community-Aware Efficient Graph Contrastive Learning via Personalized Self-Training}},
  year = {2023},
  eprint = {2311.11073},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.11073},
}
Figure