Enhanced Pre-training of Graph Neural Networks for Million-Scale Heterogeneous Graphs
Shengyin Sun, Chen Ma, Jiehao Chen
TL;DR
This work tackles the scarcity of labeled data in large-scale heterogeneous graphs by introducing PHE, a pre-training framework with two contrastive tasks: a structure-aware task that uses a network-schema subspace and attention to capture fine-grained heterogeneity, and a semantic-aware task that uses a perturbation subspace of semantic neighbors to address semantic mismatch. A transformer-based heterogeneous encoder supports these tasks, and a scalable mini-batch sampling strategy enables pre-training on graphs with millions of nodes. Empirically, PHE outperforms strong baselines on the Open Academic Graph, demonstrates robust transferability across domains, and shows flexibility across architectures with acceptable training efficiency. The approach offers a practical pathway to learn transferable, high-quality representations for diverse downstream tasks in large heterogeneous graphs.
Abstract
In recent years, graph neural networks (GNNs) have facilitated the development of graph data mining. However, training GNNs requires sufficient labeled task-specific data, which is expensive and sometimes unavailable. To be less dependent on labeled data, recent studies propose to pre-train GNNs in a self-supervised manner and then apply the pre-trained GNNs to downstream tasks with limited labeled data. However, most existing methods are designed solely for homogeneous graphs (real-world graphs are mostly heterogeneous) and do not consider semantic mismatch (the semantic difference between the original data and the ideal data containing more transferable semantic information). In this paper, we propose an effective framework to pre-train GNNs on the large-scale heterogeneous graph. We first design a structure-aware pre-training task, which aims to capture structural properties in heterogeneous graphs. Then, we design a semantic-aware pre-training task to tackle the mismatch. Specifically, we construct a perturbation subspace composed of semantic neighbors to help deal with the semantic mismatch. Semantic neighbors make the model focus more on the general knowledge in the semantic space, which in turn assists the model in learning knowledge with better transferability. Finally, extensive experiments are conducted on real-world large-scale heterogeneous graphs to demonstrate the superiority of the proposed method over state-of-the-art baselines. Code available at https://github.com/sunshy-1/PHE.
