Shared Growth of Graph Neural Networks via Prompted Free-direction Knowledge Distillation

Kaituo Feng, Yikun Miao, Changsheng Li, Ye Yuan, Guoren Wang

TL;DR

FreeKD introduces a "free-direction" knowledge distillation framework for Graph Neural Networks (GNNs) that abandons the traditional deep teacher-student paradigm in favor of collaborative mutual learning between shallow models. By leveraging hierarchical reinforcement learning to manage knowledge flow and prompt learning for semantic-preserving graph augmentation, FreeKD enables shallow GNNs to achieve performance comparable to, or even exceeding, models distilled from much deeper, computationally expensive teachers.

What Problem Does This Paper Address?

Knowledge Distillation (KD) is a popular technique for boosting the performance of small "student" models by having them mimic a larger, pre-trained "teacher." In the world of GNNs, however, this approach hits a wall. Training a deep GNN teacher is notoriously difficult due to over-smoothing (where node features become indistinguishable as layers increase) and over-parameterization.

Furthermore, a "stronger" teacher doesn't always lead to a better student; a massive capacity gap between the two can make the student's learning task impossible. The authors identify a key observation: different GNN architectures often have complementary strengths, performing well on some nodes while struggling on others within the same graph.

![Fig.

  1. Cross entropy losses for nodes with ID from 1 to 10 on the Cora dataset obtained by two typical GNN models, GraphSAGE and GAT. Note how their performance varies node-by-node.](/figures/art_7111e7bc008b497890468e430fd70565)

Methods

The authors propose a multi-layered framework to facilitate "free-direction" exchange of knowledge:

  1. FreeKD (Hierarchical Reinforcement Learning): Instead of a fixed teacher, two shallow GNNs learn from each other. A "Reinforced Knowledge Judge" (an RL agent) makes two levels of decisions:
  2. Node-level action: Decides for each node which GNN should act as the "teacher" for the other based on their current performance (soft labels and losses).
  3. Structure-level action: Decides which local neighborhood structures are reliable enough to be propagated between models.
  4. FreeKD-Prompt: To ensure the models see diverse but semantically valid versions of the data, the authors use prompt learning. They learn "prompt graphs" that are inserted into the original graph. Unlike random methods like DropEdge, which can accidentally destroy critical graph structures (like a carbon ring in a molecule), prompt learning is optimized to preserve mutual information while maximizing diversity.
  5. FreeKD++: An extension that allows a whole ensemble of $K$ shallow GNNs to exchange knowledge in a many-to-many fashion.

![Fig.

  1. An illustration of the FreeKD framework showing the hierarchical reinforcement learning agent guiding both node-level and structure-level distillation.](/figures/art_a1f54f365fdf4644983e470e6d7493e0)

Datasets

The framework was evaluated on five diverse benchmarks:

  • Citation Networks: Cora and Citeseer (transductive setting).
  • Web Networks: Chameleon and Texas (transductive setting).
  • Biological Network: PPI (Protein-Protein Interaction) (inductive setting).

Key Insights and Ideas

  • Node-Level Complementarity: The core "aha" moment is that GNN performance is spatially heterogeneous. By allowing the distillation direction to flip node-by-node, the models can "trade" their local expertise.
  • Robustness through "Flatter" Minima: The authors found that FreeKD acts as a powerful regularizer. Models trained this way are more robust to parameter noise, suggesting they have found "flatter" and more generalizable minima in the loss landscape.
  • Controlled Augmentation: Standard graph augmentations are often too destructive. By using prompt graphs (illustrated in Figure 4 below), the system learns to "nudge" the graph representation into new, useful perspectives without losing the underlying signal.

![Fig.

  1. An illustration of FreeKD-Prompt. Learned prompt graphs are alternately inserted to the input graph for exchanging varied knowledge.](/figures/art_d4153621a3bc4816a58938a868832297)

Key Results

  • Superiority over Base Models: FreeKD consistently improved base GNNs (GCN, GAT, GraphSAGE) by significant margins, such as a 4.7% F1 score increase on the Chameleon dataset.
  • Beating the "Deep Teacher": Surprisingly, FreeKD (using two shallow GATs) often outperformed traditional KD methods that used a state-of-the-art, 32-layer GCNII as a teacher.
  • Prompting Power: FreeKD-Prompt provided the biggest boosts, yielding up to 10.27% improvement on the Texas dataset compared to vanilla GNNs, proving that diverse, learned views are critical for effective distillation.

Limitations and Future Work

The authors acknowledge that their current work focuses on static graphs with a single type of relationship between nodes.

Future research directions include:

  • Extending the framework to heterogeneous graphs (multiple node/edge types) and dynamic graphs (evolving over time).
  • Testing the efficacy of FreeKD on other fundamental graph tasks like link prediction and community detection, beyond just node classification.

Summary updated

BibTeX
@article{feng2023shared,
  author = {Kaituo Feng and Yikun Miao and Changsheng Li and Ye Yuan and Guoren Wang},
  title = {{Shared Growth of Graph Neural Networks via Prompted Free-direction Knowledge Distillation}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2023},
  url = {https://openreview.net/forum?id=tn97hzQ9Pf},
}
Figure