MentorGNN: Deriving Curriculum for Pre-Training GNNs

Dawei Zhou, Lecheng Zheng, Dongqi Fu, Jiawei Han, Jingrui He

TL;DR

MentorGNN is a new framework for pre-training Graph Neural Networks (GNNs) that replaces hand-tuned hyperparameters with an automated curriculum learning strategy. By using a multi-scale encoder-decoder to translate knowledge across different domains and a "teacher" model to prioritize informative graph signals, it effectively prevents "negative transfer" and significantly improves performance on downstream tasks with limited labels.

What Problem Does This Paper Address?

Pre-training has become a cornerstone of modern machine learning, allowing models to learn general features from unlabeled data before being fine-tuned for specific tasks. In the world of graphs, this usually involves masking certain parts of a graph—like node attributes or edges—and asking a GNN to predict them.

However, graph pre-training faces two major hurdles:

  1. Cross-Graph Heterogeneity: How do you transfer knowledge from a citation network (source) to a social network (target) when their structures and features are completely different?
  2. Graph-Signal Heterogeneity: Graphs contain information at multiple scales (nodes, edges, subgraphs). Most current methods use fixed, hand-engineered weights to balance these signals. If these weights are wrong, the model might focus on "noisy" signals, leading to negative transfer—where pre-training actually makes the model perform worse on the target task.

Methods

The authors introduce MentorGNN, an end-to-end framework designed to navigate these complexities through two main modules:

1. Multi-Scale Encoder-Decoder

Directly mapping one large graph to another is computationally expensive. Instead, MentorGNN uses a multi-scale approach. It employs differentiable pooling to condense the source graph into a hierarchy of increasingly coarse "supernode" graphs. It then learns a translation function at the coarsest level and uses a decoder to reconstruct the target graph's representations. The intuition is that while fine-grained details differ, high-level organizational structures (like communities) are often similar across domains.

An overview of the MentorGNN architecture, showing the blue cross-graph adaptation module and the orange curriculum learning module.

2. Curriculum Learning (Teacher-Student Paradigm)

To solve the weighting problem, MentorGNN adopts a teacher-student training setup.

  • The Student: A GNN that learns to predict masked proxy signals (nodes, edges, subgraphs).
  • The Teacher: A model that automatically assigns an "attention weight" to each training signal.

The teacher guides the student through a domain-adaptive curriculum. It starts by emphasizing "easy" signals—those that align well with a small set of labeled examples in the target domain—and gradually introduces "harder," more complex signals as training progresses. This ensures the model focuses on the most relevant information for the target task.

Datasets

The researchers evaluated MentorGNN using several well-known benchmarks:

  • Source Domains: Citation networks including Cora, CiteSeer, and PubMed.
  • Target Domains: Three different Reddit datasets, representing social media interaction graphs.
  • Case Study: The DPPIN-Breitkreutz dataset, a dynamic protein-protein interaction graph used to test the model's ability to capture temporal evolution.
  • Scalability: Synthetic graphs generated via the Erdős–Rényi (ER) algorithm.

Key Insights and Ideas

  • Moving Beyond Manual Tuning: By automating signal weighting, MentorGNN removes human bias and the need for exhaustive hyperparameter searches, which are often sub-optimal.
  • High-Level Alignment: The paper suggests that cross-domain transfer is most effective when models look at the "big picture" (coarse granularities) rather than just individual nodes.
  • Theoretical Grounding: The authors derive a new generalization bound for domain-adaptive graph pre-training. They prove that their re-weighting strategy provides a tighter (more reliable) bound on error than traditional worst-case analysis.

Key Results

MentorGNN consistently outperformed state-of-the-art baselines like GPT-GNN and Pretrain-GNN across various settings:

  • Single-Source Transfer: In a CiteSeer $\rightarrow$ Reddit2 transfer task, MentorGNN achieved an accuracy of 98.34%, a significant jump over the ~95% achieved by other pre-training methods.
  • Multi-Source Transfer: The model successfully aggregated knowledge from multiple sources (Cora + CiteSeer + PubMed) to improve target performance even further, showing its robustness.
  • Efficiency: Scalability tests showed that the model's complexity is roughly quadratic relative to the number of nodes, making it practical for medium-to-large graphs.
Scalability analysis showing running time vs. number of nodes for different layer depths.

Limitations and Future Work

While powerful, MentorGNN is not entirely "label-free" in the target domain; it requires a "handful" of labeled examples to guide the teacher's curriculum. The authors also note that the multi-scale architecture adds architectural complexity compared to simpler GNNs.

Future research directions include exploring more diverse types of graph signals (like temporal dependencies) and refining the curriculum regularizers to handle even more extreme domain shifts.

Summary updated

BibTeX
@inproceedings{zhou2022mentorgnn,
  author = {Dawei Zhou and Lecheng Zheng and Dongqi Fu and Jiawei Han and Jingrui He},
  title = {{MentorGNN: Deriving Curriculum for Pre-Training GNNs}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2022},
  url = {https://openreview.net/forum?id=g6GZiTx60O},
}
Figure