Distilling Knowledge From Graph Convolutional Networks

Yiding Yang, Jiayan Qiu, Mingli Song, Dacheng Tao, Xinchao Wang

Abstract

This paper introduces the first dedicated knowledge distillation (KD) framework specifically designed for Graph Convolutional Networks (GCNs). By introducing a "Local Structure Preserving" (LSP) module, the researchers enable a small student network to mimic how a large teacher network embeds complex topological relationships. This approach leads to state-of-the-art performance in model compression for non-grid data, such as 3D point clouds and biological networks, allowing efficient models to maintain the high performance of their larger counterparts.

Introduction

Knowledge distillation is a popular technique for "compressing" large, computationally expensive AI models (teachers) into smaller, efficient ones (students) by having the student mimic the teacher’s behavior. However, almost all existing KD methods were built for Convolutional Neural Networks (CNNs) operating on regular grids, like images.

Graph Convolutional Networks (GCNs) are fundamentally different; they handle irregular, non-grid data where the "topology"—how nodes are connected to their neighbors—is as critical as the data itself. Standard KD methods that only look at final predictions or raw feature maps fail to capture this structural "context," leaving the student model struggling to understand the underlying geometry of the graph.

Overview of the LSP framework (a) and qualitative results on point cloud data (b) showing how LSP helps the student match the teacher's structural understanding.

Methodology: Local Structure Preserving (LSP)

The authors propose a novel approach centered on the Local Structure Preserving (LSP) module. Instead of just matching feature values, the student tries to match the distribution of relationships within a node's neighborhood.

Local Structure as Distributions

For every node, the model calculates the similarity between that node and all its neighbors. These similarities are normalized into a probability distribution representing "topological semantics"—essentially, which neighbors are most influential to a specific node. The student is trained to minimize the Kullback-Leibler (KL) divergence between its own local structure distributions and those of the teacher.

Handling Dynamic Graphs

In some GCNs (like DGCNN), the graph structure changes as the model learns. To distill knowledge in these scenarios, the authors use a "union of edges" strategy. They create a temporary virtual graph containing all edges present in both the teacher and student models, providing a common ground for structural comparison and distribution matching.

The "union of edges" strategy allows for consistent distribution matching even when the teacher and student graphs have dynamic, differing topologies.

Experimental Results

The researchers evaluated their method on two distinct types of graph data: PPI (Protein-Protein Interaction) for node classification and ModelNet40 for 3D object recognition.

Key Insights and Performance

  • Topology is Knowledge: The core insight is that in GCNs, the way a teacher model perceives the graph's shape is a form of knowledge that can be transferred. Visualization shows that with LSP, the student's internal representation of an object begins to look like the teacher's representation very early in training.
  • Node Classification (PPI): The LSP-trained student achieved an F1 score of 96.1, outperforming the baseline student (95.7) and other KD methods, despite having significantly fewer parameters than the teacher (3.64M vs 0.16M).
  • 3D Object Recognition (ModelNet40): The student reached 91.9% accuracy, coming very close to the teacher's 92.4%, while being much faster and lighter (using only ~5% of the teacher's parameters).

Conclusion

The LSP method represents a significant advancement in GCN compression, demonstrating that preserving local topological distributions is key to effective knowledge transfer in non-grid domains. While the computational overhead of calculating edge unions for dynamic graphs remains a consideration for training, the resulting student models offer high efficiency for real-world deployment without sacrificing structural understanding.

Summary updated

BibTeX
@inproceedings{yang2020distilling,
  author = {Yiding Yang and Jiayan Qiu and Mingli Song and Dacheng Tao and Xinchao Wang},
  title = {{Distilling Knowledge From Graph Convolutional Networks}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.00710},
}
Figure