Pre-Training Graph Neural Networks for Generic Structural Feature Extraction

Ziniu Hu, Changjun Fan, Ting Chen, Kai-Wei Chang, Yizhou SunarXiv 2019

Introduction

Graph Neural Networks (GNNs) have revolutionized the modeling of relational data, yet they often suffer from a significant "data hunger" problem. High-performing GNNs typically require extensive labeled datasets and rich, domain-specific node features. In fields like neuroscience or rare disease research, such labels are often prohibitively expensive or impossible to obtain. Furthermore, GNNs can become overly dependent on specific input features, failing to generalize the underlying "grammar" of graph structures. This paper addresses these challenges by proposing a framework to teach GNNs the universal geometry of graphs through pre-training on synthetic data.

The Proposed Framework

The authors introduce a two-stage approach consisting of Pre-training on synthetic graphs followed by Adaptation to real-world tasks. This method allows the model to learn transferable structural features that are independent of specific domain attributes.

Architecture of the pre-training and adaptation framework.

Synthetic Data Generation

To ensure the model captures a wide variety of structural patterns without domain bias, the researchers utilize the Degree-Corrected Stochastic Block Model (DCBM). This allows for the generation of thousands of synthetic graphs with diverse statistical properties, including variations in density and degree distributions (e.g., power-law vs. uniform).

Visualizations of synthetic graphs with diverse structural properties used for pre-training.

Self-Supervised Pre-training Tasks

The model is trained on three self-supervised tasks that require no manual labeling:

  • Denoising Link Reconstruction: The model predicts edge existence after random removals, learning local connectivity.
  • Centrality Score Ranking: Nodes are ranked by importance (e.g., PageRank), forcing the GNN to capture global network roles.
  • Cluster Preserving: The model identifies community memberships, capturing higher-level hierarchical structures.

Adaptation and Key Results

When transitioning to downstream tasks, such as node or link classification, the authors employ a "fix-tune" strategy. This involves freezing lower layers to preserve generic structural knowledge while fine-tuning upper layers for specific dataset nuances.

Performance and Insights

  • General Improvement: Pre-training led to an average improvement of 7.7% in Micro-F1 score across six downstream benchmarks compared to training from scratch.
  • Data Efficiency: Pre-training is most effective when labeled data is scarce. In experiments with only 10% of training data, the pre-trained model significantly outperformed baselines.
  • Complementary Features: Even with rich node attributes, pre-trained structural features provided a performance boost, indicating that structural knowledge is complementary to domain-specific data.

Conclusion

The core insight of this work is that structural patterns—such as hubs, bridges, and clusters—are mathematically universal across different fields. By using well-designed synthetic graphs as a "gymnasium," GNNs can learn these fundamental patterns, offering a powerful solution for domains where data is limited.

Summary updated

BibTeX
@misc{hu2019pre,
  author = {Ziniu Hu and Changjun Fan and Ting Chen and Kai-Wei Chang and Yizhou Sun},
  title = {{Pre-Training Graph Neural Networks for Generic Structural Feature Extraction}},
  year = {2019},
  eprint = {1905.13728},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.13728},
}
Figure