Transfer Learning of Graph Neural Networks with Ego-graph Information Maximization

Qi Zhu, Yidan Xu, Haonan Wang, Chao Zhang, Jiawei Han, Carl Yang

Training Graph Neural Networks (GNNs) from scratch on massive datasets is computationally expensive. While pre-training has revolutionized natural language processing and computer vision, the principles for transferring GNNs across different graphs have remained underdeveloped. This research introduces Ego-Graph Information Maximization (EGI), a theoretically grounded framework that treats a graph as a collection of local "ego-graphs" to improve model generalization and transferability.

The Challenge of GNN Transferability

Most GNNs are trained and evaluated on the same graph. When a model trained on a source graph is applied to a target graph with different structural properties, performance often degrades significantly. Existing unsupervised pre-training methods, such as Deep Graph Infomax (DGI) or Variational Graph Auto-Encoders (VGAE), often focus on global graph properties or node features that do not translate well across domains. Furthermore, there has been a lack of rigorous theoretical analysis to explain this "transfer gap."

Conceptual overview of EGI transferability: Graphs are viewed as distributions of ego-graphs, where structural similarity (distance d) determines transfer success.

The EGI Framework

EGI shifts the perspective from global graph structures to local $k$-hop neighborhoods, known as ego-graphs. The core idea is that while global properties change wildly between datasets, local patterns—such as the structural role of a "hub" or a "bridge" node—are often universal across different graphs.

Core Mechanism

  1. Objective: EGI utilizes a mutual information maximization objective. It trains an encoder to create node embeddings that can effectively "reconstruct" the local ego-graph.
  2. The Discriminator: Unlike standard methods that predict simple connectivity, EGI uses a discriminator to determine if a specific edge belongs to a given node's ego-graph through edge-wise decisions across multiple hops.
  3. Structure-Respecting Features: The framework emphasizes using features like node degrees or PageRank scores during pre-training. These are inherently "structure-respecting" and more likely to be consistent between source and target graphs than raw node attributes.
The EGI architecture: An encoder $\Psi$ generates center node embeddings $z_i$, which a discriminator $D$ uses to make edge-wise decisions across multiple hops.

Theoretical Grounding

A key contribution of this work is the proof that the GNN transferability gap is bounded by the difference between the local graph Laplacians of the source and target graphs. This provides a mathematical "pre-judge" for transferability: by comparing the structural statistics of two graphs, researchers can estimate how well a pre-trained model will perform on a new target before training begins.

Experimental Validation

The researchers validated EGI across several settings:

  • Direct Transfer (Role Identification): In airport networks (flight connections in Brazil, USA, and Europe), EGI achieved significantly higher accuracy than baselines. For example, when transferring from Europe to the USA, EGI reached 64.6% accuracy, outperforming the next best baseline at 62.2%.
  • Few-Shot Learning (Relation Prediction): On the YAGO knowledge graph, EGI outperformed state-of-the-art methods in few-shot scenarios, demonstrating that its pre-trained structural insights provide a superior starting point for fine-tuning on specific tasks.
  • Synthetic and Biological Graphs: Controlled experiments on synthetic models (Forest-fire and Barabasi) and protein-protein interaction networks confirmed a clear negative correlation between the proposed structural difference metric ($\Delta_D$) and transfer success.

Conclusion

EGI moves GNN transfer learning from a trial-and-error process toward an engineering discipline. By maximizing the mutual information of local ego-graphs and providing a Laplacian-based bound for transferability, EGI offers a robust path for developing generalizable graph models. Future work may extend this to handle highly heterogeneous node attributes and further explore the privacy implications of transferring structural patterns across datasets.

Summary updated

BibTeX
@inproceedings{zhu2021transfer,
  author = {Qi Zhu and Yidan Xu and Haonan Wang and Chao Zhang and Jiawei Han and Carl Yang},
  title = {{Transfer Learning of Graph Neural Networks with Ego-graph Information Maximization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=yW_3SOoMt1M},
}
Figure