Frameless Graph Knowledge Distillation

Dai Shi, Zhiqi Shao, Junbin Gao, Zhiyong Wang, Yi GuoIEEE TNNLS 2023

TL;DR

This paper introduces "Frameless Graph Knowledge Distillation" (FGD), a novel approach to accelerate Graph Neural Networks (GNNs) by distilling knowledge from complex "teacher" GNNs into simpler "student" models. FGD uniquely leverages multi-scale graph information (graph framelets) to enable student models to effectively learn from both homophilic and heterophilic graphs, achieving performance comparable to or exceeding the teacher model while significantly improving inference speed.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) have achieved state-of-the-art performance on graph-structured data, but their complexity often leads to slow inference times, hindering real-world deployment. Knowledge Distillation (KD) offers a solution by training smaller, faster "student" models to mimic the behavior of larger, more accurate "teacher" models. However, existing KD methods for GNNs often rely on simplified student models (like MLPs) that don't fully capture the rich, multi-scale graph information inherent in teacher GNNs, especially those employing techniques like graph framelets. This limits their ability to adapt to diverse graph structures (homophilic vs. heterophilic) and can exacerbate issues like over-smoothing. This paper aims to bridge this gap by developing a KD framework that effectively distills multi-scale graph knowledge from framelet-based GNNs into a student model.

Methods

The core of this work is the proposed "Frameless Graph Knowledge Distillation" (FGD) framework. It utilizes graph framelets, a multi-resolution analysis tool for graph signals, as the basis for knowledge distillation.

  • Teacher Models: The authors consider two teacher models based on graph framelets:
  • Original Spatial Framelet (Eq. 11): This model propagates information through spatial domain using framelet filters.
  • Simplified Framelet (Eq. 13): A computationally more efficient version that simplifies the framelet propagation.
  • Student Models: The student models are designed as MLP-based architectures that act as universal approximators. Two variants are proposed:
  • FMLP-O (Frameless MLP - Original): This model first encodes the graph feature knowledge (X) and framelet-decomposed adjacency knowledge from the original spatial framelet teacher. It then uses score vectors (α) to balance the importance of this encoded knowledge, effectively learning to mimic the teacher's first layer. This process is repeated for a second layer, allowing the student to capture multi-hop graph information.
  • FMLP-S (Frameless MLP - Simplified): This variant is designed to learn from the simplified framelet teacher model.
  • Knowledge Encoding and Decoding: The student models employ an encoding-decoder scheme. The encoder transforms the teacher's graph information into a unified space. The decoder then reconstructs the node representations, guided by score vectors that adaptively weigh the importance of feature and adjacency information. This allows the student to learn from both homophilic and heterophilic graph properties.
  • Score Vectors (α): These are crucial for adapting to different graph types. They are generated using a sigmoid function and dynamically balance the influence of encoded graph connectivity versus node features, enabling the student to learn more effectively on heterophilic graphs.

Datasets

The paper evaluates the proposed methods on a variety of datasets:

  • Synthetic Cora Dataset: Used to demonstrate the models' adaptability to homophilic and heterophilic graphs by controlling the homophily index H(G).
  • Homophilic Graphs:
    • Citation Networks: Cora, Citeseer, Pubmed
    • Other: Coauthor-physics, Coauthor-CS, Amazon-photo
    • Large-scale: ogbn-arxiv
  • Heterophilic Graphs:
    • Chameleon, Squirrel, Actor, Wisconsin, Texas, Cornell

Key Insights and Ideas

  • Multi-scale Graph Knowledge is Key: Effectively distilling multi-scale graph information (via framelets) is crucial for student models to adapt to diverse graph structures, especially heterophilic ones.
  • Score Vectors for Adaptability: The introduction of score vectors (α) in the student model provides a mechanism to dynamically balance the importance of graph adjacency and node features, leading to improved performance on both homophilic and heterophilic graphs.
  • MLP as a Powerful Student: MLPs, when properly guided by distilled graph knowledge, can act as effective universal approximators capable of mimicking complex GNN behaviors.
  • Simplified Framelets are Viable Teachers: The simplified framelet model offers comparable performance to the original framelet while being computationally more efficient, making it a practical choice for teacher models.
  • Over-squashing Mitigation: The paper hints at how the sensitivity analysis of framelets can inform strategies to alleviate over-squashing, a common GNN problem, by suggesting graph rewiring techniques.

Key Results

  • Outperforming Teachers: Both FMLP-O and FMLP-S student models consistently outperform their respective teacher models (spatial framelet and simplified framelet) on most homophilic and heterophilic graph datasets.
  • Heterophily Advantage: The student models demonstrate a notable advantage in adapting to heterophilic graphs, as evidenced by the synthetic experiments and performance on heterophilic datasets.
  • Comparable to State-of-the-Art: The proposed models achieve competitive or state-of-the-art results on various benchmarks. For instance, on homophilic graphs, they achieve accuracies in the high 80s and low 90s, often surpassing baselines like MLP and GLNN.
  • Curvature Rewiring Benefits: For deeper models (l=3, 4), graph rewiring techniques (like SDRF) further enhance performance, particularly on heterophilic graphs, by mitigating over-squashing.
  • Simplified Framelet Efficacy: The simplified framelet teacher model achieves performance very close to the original framelet, validating its efficiency without significant accuracy loss.

Limitations and Future Work

  • Computational Issues: The paper acknowledges potential computational issues, particularly with large-scale graphs, and suggests that further research could focus on optimizing the graph knowledge supplied by the teacher and the student model's architecture.
  • Optimal Encoding Dimension: While the paper notes that the first encoding dimension significantly affects learning speed, the optimal dimension is not explored in depth.
  • Further Exploration of Curvature: The paper mentions investigating curvature-based rewiring for deeper models, suggesting this as a promising direction for future work.
  • Generalizing to Other GNNs: The current framework is tailored for framelet-based GNNs. Future work could explore its applicability to other GNN architectures.

Summary updated

BibTeX
@article{shi2023frameless,
  author = {Dai Shi and Zhiqi Shao and Junbin Gao and Zhiyong Wang and Yi Guo},
  title = {{Frameless Graph Knowledge Distillation}},
  journal = {IEEE Transactions on Neural Networks and Learning Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=YrartuIihG},
}
Figure