Teach Harder, Learn Poorer: Rethinking Hard Sample Distillation for GNN-to-MLP Knowledge Distillation

Lirong Wu, Yunfan Liu, Haitao Lin, Yufei Huang, Stan Z. Li
7/20/2024
cs.LGcs.AI

No official code found. Best implementation: LirongWu/HGMD (5 stars, MIT, last commit 2025-02-08).

Abstract

To bridge the gaps between powerful Graph Neural Networks (GNNs) and lightweight Multi-Layer Perceptron (MLPs), GNN-to-MLP Knowledge Distillation (KD) proposes to distill knowledge from a well-trained teacher GNN into a student MLP. In this paper, we revisit the knowledge samples (nodes) in teacher GNNs from the perspective of hardness, and identify that hard sample distillation may be a major performance bottleneck of existing graph KD algorithms. The GNN-to-MLP KD involves two different types of hardness, one student-free knowledge hardness describing the inherent complexity of GNN knowledge, and the other student-dependent distillation hardness describing the difficulty of teacher-to-student distillation. However, most of the existing work focuses on only one of these aspects or regards them as one thing. This paper proposes a simple yet effective Hardness-aware GNN-to-MLP Distillation (HGMD) framework, which decouples the two hardnesses and estimates them using a non-parametric approach. Finally, two hardness-aware distillation schemes (i.e., HGMD-weight and HGMD-mixup) are further proposed to distill hardness-aware knowledge from teacher GNNs into the corresponding nodes of student MLPs. As non-parametric distillation, HGMD does not involve any additional learnable parameters beyond the student MLPs, but it still outperforms most of the state-of-the-art competitors. HGMD-mixup improves over the vanilla MLPs by 12.95% and outperforms its teacher GNNs by 2.48% averaged over seven real-world datasets.

View on arXivView PDF

Code Implementations(1)

LirongWu/HGMDCommunity100%
MIT

Code fo CIKM2024 paper "Teach Harder, Learn Poorer: Rethinking Hard Sample Distillation for GNN-to-MLP Knowledge Distillation"

51PythonJul 20, 20241 years agoMIT
graph-knowledge-distillationgraph-neural-networkshard-sampleknowledge-distillation

Similar Papers

Cite this paper

@article{wu2024teach,
  title  = {Teach Harder, Learn Poorer: Rethinking Hard Sample Distillation for GNN-to-MLP Knowledge Distillation},
  author = {Lirong Wu and Yunfan Liu and Haitao Lin and Yufei Huang and Stan Z. Li},
  year   = {2024},
  eprint = {2407.14768},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.14768v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.14768.svg)](https://codeofpaper.com/paper/2407.14768)

Discussion