Abstract
Self-supervised learning (SSL) on heterogeneous graphs has traditionally relied on contrastive learning paradigms, which are often limited by fragile data augmentation techniques and the complexities of negative sampling. This paper presents HGOT, a novel framework that replaces contrastive objectives with Optimal Transport (OT) alignment. By matching optimal transport plans between the raw graph space and the learned representation space, HGOT captures complex semantic relationships without artificial perturbations. Experimental results across multiple benchmarks demonstrate that HGOT achieves state-of-the-art performance in node classification and clustering while significantly reducing training time.
1. Introduction
Heterogeneous graphs (HGs), characterized by diverse node and edge types, are essential for modeling complex systems such as academic networks or e-commerce platforms. Given the high cost of manual labeling, Self-Supervised Learning (SSL) has become a primary method for training Graph Neural Networks (GNNs) on these structures.
Currently, the dominant SSL paradigm is contrastive learning. This approach typically involves generating augmented views of the graph (e.g., through edge dropping or feature masking) and optimizing the model to maximize similarity between positive pairs while minimizing it for negative pairs. However, this approach faces two significant challenges:
- Topological Sensitivity: Graphs are discrete and semantically dense; even minor augmentations can inadvertently destroy critical structural information.
- Sampling Ambiguity: Defining and sampling effective positive and negative pairs is computationally expensive and often requires heuristic-driven strategies that may not generalize across different graph domains.
To address these limitations, we introduce HGOT (Heterogeneous Graph neural network with Optimal Transport), a framework that leverages OT theory to align inherent graph views without the need for augmentations or negative sampling.
2. Methodology
HGOT shifts the focus from instance-level contrast to distribution-level alignment. The framework consists of three primary components:
2.1 Node Feature Transformation
Because heterogeneous graphs contain nodes with varying feature dimensions, HGOT first projects all nodes into a unified latent space. This ensures that subsequent alignment operations are performed on a consistent manifold regardless of the original node type.
2.2 Aggregated View Generation
Rather than creating artificial augmentations, HGOT utilizes the natural heterogeneity of the graph. It decomposes the graph into multiple "branch views" based on meta-paths (e.g., Author-Paper-Author). These views are then integrated into a single "aggregated view" (or central view) using an attention mechanism that learns the relative importance of different meta-path signals.
2.3 Multi-view Optimal Transport Alignment
The core innovation of HGOT is the use of Optimal Transport to align the branch views with the aggregated view. This alignment occurs in two distinct spaces:
- Graph Space: The model calculates a transport plan based on raw node features and edge structures, utilizing a combination of Wasserstein distance and Gromov-Wasserstein distance.
- Representation Space: A parallel transport plan is calculated using the embeddings generated by the GNN.
The loss function is designed to minimize the discrepancy between these two plans. By forcing the representation-space OT plan to mirror the graph-space OT plan, the GNN learns to encode the inherent structural and semantic relationships of the graph directly.
3. Experimental Results
3.1 Performance Benchmarks
HGOT was evaluated on four standard datasets: DBLP, ACM, IMDB, and Yelp. The model consistently outperformed existing state-of-the-art (SOTA) methods, including HeCo and HGMAE.
- Node Classification: HGOT showed an average improvement of over 6% in Micro-F1 and Macro-F1 scores. Notably, on the ACM dataset, HGOT outperformed the GraphSAGE baseline by approximately 34%.
- Node Clustering: The framework improved average clustering performance by approximately 2.5% across the DBLP, IMDB, and Yelp datasets.
3.2 Efficiency and Scalability
By eliminating the need for computationally intensive graph augmentations and the generation of negative samples, HGOT achieves superior training efficiency. In comparative tests, HGOT recorded the lowest training time per epoch among seven leading heterogeneous SSL methods.
4. Discussion
4.1 The Role of Optimal Transport
OT serves as a natural replacement for contrastive sampling by treating graph views as distributions. This allows the model to discover matching relationships between nodes globally rather than relying on local, pairwise comparisons. Furthermore, the fusion of Wasserstein and Gromov-Wasserstein distances allows the model to account for both feature similarity and topological structure simultaneously.
4.2 Structural Information and Edge Pruning
An interesting finding during development was that considering all edge information in dense networks can sometimes introduce noise. The authors observed that selective edge consideration—effectively a form of implicit pruning—can improve the clarity of the structural signal and reduce the complexity of the Gromov-Wasserstein calculation.
5. Conclusion and Future Work
HGOT demonstrates that Optimal Transport is a powerful alternative to contrastive learning for heterogeneous graphs. By aligning inherent meta-path views, the model avoids the pitfalls of data augmentation while achieving superior accuracy and efficiency. Future research will focus on addressing the cubic time complexity of the Gromov-Wasserstein solver to improve scalability for massive-scale graphs and exploring automated methods for intelligent edge pruning.
Summary updated