NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Self-supervised Heterogeneous Graph Pre-training Based on Structural Clustering

Yaming Yang, Ziyu Guan, Zhe Wang, Wei Zhao, Cai Xu, Weigang Lu, Jianbin Huang

TL;DR

SHGP (Self-supervised Heterogeneous Graph Pre-training) is a novel framework that learns high-quality node embeddings for complex graphs without requiring manual data augmentation or the generation of "positive/negative" pairs. By combining an attention-based graph neural network with a structural clustering module, SHGP uses the graph's inherent community structure to generate its own supervision signals. This approach outperforms state-of-the-art unsupervised models and even competes with semi-supervised baselines.

What Problem Does This Paper Address?

Most real-world data—from academic citations to movie databases—is best represented as a Heterogeneous Information Network (HIN), where nodes and edges have different types (e.g., Authors, Papers, and Conferences).

To learn from these graphs without expensive human labels, researchers typically turn to Self-Supervised Learning (SSL), specifically contrastive learning. However, contrastive learning relies heavily on carefully designed strategies to create "positive" (similar) and "negative" (dissimilar) examples. A strategy that works for a social network (like dropping edges) might fail miserably for a biochemical network. This lack of generalization makes existing SSL methods difficult to apply flexibly across diverse datasets.

Methods

The authors propose a "leave the examples behind" approach. Instead of relying on contrastive pairs, SHGP uses structural clustering to provide the supervision signal. The architecture consists of two main modules that work in a symbiotic loop:

  1. Att-HGNN (The Encoder): An attention-based Heterogeneous Graph Neural Network that learns to aggregate features from a node's neighbors to produce embeddings and class predictions.
  2. Att-LPA (The Label Generator): A modified Label Propagation Algorithm. Unlike standard LPA, this version uses the attention coefficients learned by the HGNN to propagate labels. This ensures that the clustering process respects the importance of different neighbors as determined by the neural network.
The overall architecture of SHGP. Att-HGNN produces predictions, while Att-LPA produces pseudo-labels via structural clustering. The two are optimized together using a cross-entropy loss.

The Workflow: * Initialization: The model starts with a standard LPA to find initial clusters in the graph. These act as the first set of "pseudo-labels." * The Loop: In each iteration, the Att-HGNN generates predictions based on current node features. Simultaneously, the Att-LPA uses the HGNN's attention weights to refine the pseudo-labels. * Optimization: The model is trained using a standard Cross-Entropy (CE) loss, treating the pseudo-labels as ground truth. This creates a feedback loop: better embeddings lead to more accurate attention weights, which lead to better clusters (pseudo-labels), which in turn further improve the embeddings.

Datasets

The authors evaluated SHGP on four widely used HIN benchmarks:

  • MAG: A subset of the Microsoft Academic Graph (Papers, Authors, Institutions, Fields).
  • ACM: Academic data categorized into three research areas.
  • DBLP: Bibliography data categorized into four research areas.
  • IMDB: Movie data (Movies, Actors, Directors, Users) categorized by genre.
Dataset statistics showing the variety of object types and relations in the benchmark HINs.

Key Insights and Ideas

  • Ditching Augmentation: By moving away from contrastive learning, SHGP avoids the "trial-and-error" process of manual example generation. It proves that the inherent community structure of a graph is a sufficient signal for high-quality representation learning.
  • Attention as a Bridge: The core innovation is using the same attention weights for both feature aggregation and label propagation. This ensures that the structural clusters found by Att-LPA are semantically aligned with the features learned by Att-HGNN.
  • Label Consistency: Because the pseudo-labels evolve smoothly with the attention weights, the model avoids the "cluster switching" problem found in other clustering-based SSL methods (like DeepCluster), where labels might randomly swap between iterations.

Key Results

SHGP demonstrated significant performance gains across multiple tasks:

  • Node Classification: SHGP consistently outperformed state-of-the-art unsupervised methods (like HeCo and DMGI). Remarkably, it even beat some semi-supervised models (like HAN) that have access to real labels during training. On the MAG dataset, it achieved an F1-score of over 98%.
  • Clustering Quality: In terms of Normalized Mutual Information (NMI), SHGP showed massive improvements. On MAG, it scored 90.65%, while the next best unsupervised baseline (HeCo) only reached 79.33%.
  • Visualization: t-SNE visualizations of the learned embeddings showed that SHGP produces much tighter, more distinct clusters with clearer boundaries between classes compared to its competitors.

Limitations and Future Work

The primary limitation acknowledged by the authors is the Class Space assumption. Currently, SHGP clusters all types of objects (e.g., both Authors and Papers) into a single, shared class space. While this works well for "star-schema" graphs where one central node type defines the categories, it might struggle with more complex networks where different node types belong to entirely different categorical universes.

Future work will involve investigating how to cluster different types of objects into distinct, type-specific class spaces to further enhance the model's flexibility.

Summary updated

BibTeX
@inproceedings{yang2022self,
  author = {Yaming Yang and Ziyu Guan and Zhe Wang and Wei Zhao and Cai Xu and Weigang Lu and Jianbin Huang},
  title = {{Self-supervised Heterogeneous Graph Pre-training Based on Structural Clustering}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=gpk4sr1CT3},
}
Figure