Abstract
Graphs are powerful representations for relations among objects. A fundamental challenge for graph learning is training an effective Graph Neural Network (GNN) encoder without expensive labels. Contrastive Learning (CL) is a popular paradigm for this, but it faces two major issues: semantic errors from random topology-based augmentations and the difficulty of modeling multiplexity in real-world graphs. We propose X-GOAL, a multiplex heterogeneous graph prototypical contrastive learning framework. X-GOAL uses the GOAL framework for single-layer learning and an alignment regularization to jointly model different layers. Specifically, it captures node-level information via graph transformations and cluster-level information by pulling nodes within the same semantic cluster closer. We demonstrate X-GOAL's effectiveness on various real-world datasets.
Introduction
Graph Neural Networks (GNNs) have revolutionized relational data processing but typically require massive labeled datasets. Contrastive Learning (CL) has emerged as a powerful self-supervised alternative, training models by discriminating between "positive" and "negative" node pairs. However, current CL methods suffer from two significant gaps:
- Semantic Errors: Traditional CL relies on topological proximity. Semantically similar nodes that are distant in the graph may be incorrectly treated as negative pairs, leading the model to push them apart in the embedding space.
- Multiplexity: Real-world graphs often contain multiple types of relations (e.g., co-authorship vs. co-citation). Existing methods often struggle to integrate these "layers" efficiently, often relying on computationally expensive attention mechanisms.
Methodology: The X-GOAL Framework
The proposed X-GOAL (Multiplex Heterogeneous Graph Prototypical Contrastive Learning) framework addresses these challenges through two primary components.
The GOAL Framework
For each relation layer, the GOAL framework performs dual-level contrastive learning:
- Node-Level Contrast: Positive views are created using graph transformations (dropout on attributes and adjacency matrices), while negatives are generated via feature shuffling.
- Cluster-Level (Prototypical) Contrast: The model periodically employs K-means clustering to identify "prototypes" or latent semantic centers. Nodes are pulled toward their assigned cluster centers, ensuring that semantically similar nodes are grouped together even if they lack direct topological connections.
Alignment Regularization
To handle multiplexity, X-GOAL introduces a "nimble" alignment strategy. Instead of complex attention layers, it enforces consistency across different relation layers. A node’s embedding in one layer (e.g., "Author-Paper") is aligned with its embedding in another (e.g., "Paper-Conference"). This alignment occurs at both the node level and the cluster level, using KL-divergence to synchronize semantic distributions across the multiplex structure.
Experimental Results
X-GOAL was evaluated on four benchmark datasets: ACM, IMDB, DBLP, and Amazon.
Performance Benchmarks
X-GOAL consistently outperformed state-of-the-art self-supervised methods like HDMI and DMGI. For instance, on the Amazon dataset, X-GOAL achieved a Macro-F1 of 0.858, a significant improvement over HDMI's 0.808. In unsupervised tasks such as node clustering (NMI) and similarity search (Sim@5), X-GOAL showed marked improvements, particularly on the ACM and Amazon datasets, where NMI increased by up to 7%.
The Impact of Over-Clustering
A key insight from the study is the benefit of "over-clustering." The authors found that setting the number of clusters ($K$) significantly higher than the number of ground-truth classes yielded the best results. For example, using 30 clusters for a 3-class dataset allowed the model to capture fine-grained sub-communities.
Conclusion
X-GOAL provides a robust framework for self-supervised learning on complex multiplex graphs. By moving beyond simple topology-based contrast and incorporating semantic prototypes, it reduces semantic errors and effectively integrates multi-relational data. While the periodic use of K-means introduces some overhead, the performance gains and theoretical grounding in Mutual Information maximization make it a compelling approach for modern graph representation learning. Future work may explore adaptive augmentation techniques and extensions to dynamic graphs.
Summary updated