Abstract
Graph Contrastive Learning (GCL) has emerged as a powerful paradigm for self-supervised representation learning on graphs. However, existing methods often rely on heuristic augmentations that may destroy critical structural information and suffer from the "false negative" problem, where semantically similar graphs are incorrectly contrasted. We propose Model-driven Graph Contrastive Learning (MGCL), a framework that leverages graphons—non-parametric probabilistic generative models—to guide the augmentation process. MGCL introduces Graphon-Informed Augmentations (GIA) to maintain semantic faithfulness and a model-aware contrasting strategy that utilizes clustering to mitigate the false negative trap. Our approach achieves state-of-the-art performance across diverse node-level and graph-level benchmarks.
Introduction
The standard recipe for Graph Contrastive Learning involves creating two augmented views of a graph and training an encoder to maximize their agreement while minimizing agreement with other "negative" samples in a batch. Despite its success, GCL faces two primary challenges:
- Heuristic Augmentations: Common techniques like random edge dropping or node masking are data-agnostic and can inadvertently remove structural features essential for downstream tasks.
- The False Negative Trap: In graph-level tasks, every other graph in a batch is typically treated as a negative sample. However, large datasets often contain structurally similar graphs (e.g., molecules with similar functions). Forcing the model to push these similar graphs apart in the embedding space hinders the learning of meaningful representations.
Methods: Leveraging Graphons for Self-Supervision
MGCL addresses these issues by integrating the theory of graphons into the contrastive learning pipeline. A graphon represents the limit of a sequence of dense graphs and serves as a generative template for a family of graphs.
Graphon-Informed Augmentations (GIA)
Instead of stochastic perturbations, MGCL employs a generative approach. It first estimates the underlying graphon $\mathcal{W}(x,y)$ of the dataset using Scalable Implicit Graphon Learning (SIGL). Augmented views are then generated by resampling edges according to the probabilities defined by the estimated graphon. This ensures that the structural properties of the original data distribution are preserved in the augmented views.
Model-Aware Contrasting
To solve the false negative problem in graph-level tasks, MGCL moves beyond a single global model. The process involves:
- Clustering: Partitioning the dataset into $K$ clusters based on initial structural embeddings.
- Multi-Model Estimation: Estimating a unique graphon for each cluster to capture local structural variations.
- Model-Aware Loss: Modifying the contrastive loss (e.g., InfoNCE) such that a graph is only contrasted against samples from different clusters. This prevents the model from being penalized for treating structurally similar graphs as similar.
Experimental Evaluation
The authors evaluated MGCL on a comprehensive suite of benchmarks, including citation networks (Cora, CiteSeer, PubMed), co-purchase graphs (Photo, CS, Physics), and various biochemical and social network datasets from the TUDataset collection.
Performance and Robustness
MGCL consistently outperforms existing self-supervised methods. As shown in the results table, it achieves the lowest average rank across node-level tasks, surpassing strong baselines like GraphCL, GRACE, and GBT.
Mitigating False Negatives
A key metric for evaluating the effectiveness of the model-aware contrasting strategy is the True Negative to False Negative Ratio (TFR). MGCL demonstrated significant improvements in TFR across multiple datasets, notably achieving a 9.2% increase on the COLLAB dataset. This confirms that the clustering-based approach successfully identifies and protects semantically similar pairs from being incorrectly contrasted.
Conclusion
MGCL represents a significant step toward principled self-supervised learning on graphs. By replacing heuristic augmentations with graphon-informed generative priors and addressing the false negative problem through model-aware contrasting, MGCL provides a robust and theoretically grounded framework for graph representation learning. Future work may extend this approach to incorporate node features into the generative process and explore more complex generative models like graph diffusion.
Summary updated