Diffusion-Assisted Distillation for Self-Supervised Graph Representation Learning with MLPs

Seong Jin Ahn, Myoung-Ho KimarXiv 2025 · DOI

Abstract

Graph Neural Networks (GNNs) are the state-of-the-art for graph-structured data but face significant scalability and latency challenges due to their recursive message-passing mechanism. While Multi-Layer Perceptrons (MLPs) offer superior inference speed, they struggle to capture graph structure, especially in self-supervised settings. This paper presents DAD-SGM, a novel framework that utilizes a denoising diffusion model as a "teacher assistant" to distill complex graph-aware knowledge into high-speed MLPs. Our approach bridges the performance gap in self-supervised representation learning, enabling MLPs to achieve GNN-level accuracy with up to an 8,000x speedup.

Introduction

Analyzing massive graphs with millions of nodes requires models that are both accurate and computationally efficient. GNNs excel at the former by leveraging neighbor information, but their dependency on graph topology makes them slow during inference. MLPs are the natural alternative for low-latency applications, yet they suffer from a lack of "spatial inductive bias." Traditional knowledge distillation—where an MLP student mimics a GNN teacher—has proven effective for supervised tasks but often fails in self-supervised representation learning (SSGRL), where features are deeply intertwined with the graph's structural properties.

The Challenge: The Capacity Gap

A critical observation in this research is the "capacity gap" between GNNs and MLPs. In supervised learning, the performance difference is often manageable. However, in self-supervised settings, the gap widens significantly. This suggests that message-passing is far more critical for discovering underlying data patterns than for simply fitting labels. Standard distillation methods, which often rely on simple value matching (e.g., Mean Squared Error), fail to transfer the nuanced "graph-aware" intuition required for SSGRL.

Methodology: Diffusion-Assisted Distillation (DAD-SGM)

To overcome this, the authors introduce Diffusion-Assisted Distillation (DAD-SGM). The framework employs an MLP-based Denoising Diffusion Model (DDM) as an intermediate "Teacher Assistant" (TA) in a two-stage process:

  1. Training the Assistant: An MLP-based diffusion model is trained to predict the noise added to the teacher GNN’s output representations. By learning to denoise these features, the assistant captures the "score function" (the gradient of the log-density) of the teacher’s feature space.
  2. Distilling to the Student: The student MLP is trained to produce representations that, when processed by the pre-trained assistant, yield the same noise predictions as the teacher’s. This ensures the student matches the fine-grained distribution and "texture" of the teacher's data.

By using an MLP architecture for the assistant, the knowledge is formatted in a way that is architecturally compatible with the student, creating a smoother "knowledge bridge."

Key Insights and Results

Performance comparison across tasks (a) and the capacity gap between supervised and self-supervised settings (b).

Performance and Efficiency

DAD-SGM demonstrates substantial improvements over existing baselines, including up to a 15% boost in node classification and a 19% improvement in link prediction. Notably, the student MLP can match or even exceed the teacher's performance in specific tasks like link prediction.

The efficiency gains are even more dramatic. On the OGBN-Products dataset, the distilled student MLP achieved inference speeds 1,048 times faster than a 1-layer GNN and 8,781 times faster than a 3-layer GNN.

Robustness and Generalization

Beyond speed and accuracy, the distilled MLPs exhibited high resilience to adversarial attacks (FGSM) and random Gaussian noise, often maintaining higher accuracy than the original teacher GNN. The model also showed strong inductive generalization, performing effectively on nodes not seen during the distillation process.

Conclusion

DAD-SGM successfully addresses the limitations of MLPs in graph learning by treating distillation as a score-matching problem facilitated by diffusion models. This framework allows for the deployment of graph-aware models in latency-sensitive, large-scale environments. Future work will explore extending this approach to heterogeneous graphs containing diverse node and edge types, further broadening its applicability in real-world recommendation systems and knowledge graphs.

Summary updated

BibTeX
@misc{ahn2025diffusion,
  author = {Seong Jin Ahn and Myoung-Ho Kim},
  title = {{Diffusion-Assisted Distillation for Self-Supervised Graph Representation Learning with MLPs}},
  year = {2025},
  eprint = {2510.04241},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.04241},
}
Figure