Abstract
Graph Neural Networks (GNNs) have become the standard for graph-based learning tasks but face significant challenges in real-time industrial deployment due to high inference latency caused by recursive neighborhood fetching. While Multi-Layer Perceptrons (MLPs) offer superior inference speed, they typically lack the structural awareness required for high accuracy on graph data. This paper introduces TGS (Teacher-Free Graph Self-Distillation), a novel framework that bridges this gap by baking structural knowledge into MLPs through dual self-distillation at both the feature and label levels. TGS eliminates the need for a pre-trained "Teacher" GNN, achieving GNN-level accuracy while remaining up to 89x faster during inference.
Introduction: The Latency Hurdle in Graph Learning
In academic research, Graph Neural Networks (GNNs) are the gold standard for node classification and other graph tasks. However, their reliance on "message passing"—gathering features from a node's neighbors to calculate its state—creates a major bottleneck for industrial applications: neighborhood-fetching latency. For a deep GNN, the data dependency grows exponentially with the number of layers, making real-time inference computationally expensive and slow.
Multi-Layer Perceptrons (MLPs) are an attractive alternative because they treat each node independently, resulting in extremely fast inference. However, they are traditionally "topology-blind," failing to leverage the rich connectivity information in graphs. Previous attempts to address this via Graph Knowledge Distillation (GKD) typically required training a large "Teacher" GNN first to guide a "Student" MLP. TGS challenges this paradigm by demonstrating that a teacher-free approach can achieve superior results by using the graph structure itself as a direct supervision signal.
Methodology: Dual Self-Distillation
The TGS framework is designed to be purely MLP-based during both training and inference. It employs two primary "Dual Self-Distillation" mechanisms to implicitly teach the MLP about the graph's underlying structure without requiring explicit message passing at test time.
1. Feature-level Self-Distillation
To help the MLP understand local connectivity, TGS utilizes a modified version of the Mixup technique. During training, the framework creates "synthetic nodes" by interpolating features between a target node and its neighbors. The model is then trained to minimize the distance between the target node's representation and these synthetic neighborhood-aware representations. This process forces the MLP to learn representations that are informed by local topology.
2. Label-level Self-Distillation
This mechanism acts as an implicit form of label propagation. The model is trained to ensure that a node’s prediction is consistent not only with its own ground-truth label but also with the predicted labels of its neighbors. This encourages the model to produce smooth predictions across connected regions of the graph.
3. Scalable Training
To ensure scalability to massive graphs, TGS incorporates an edge-sampling strategy for batch training. This avoids the need to load the entire graph into memory, a common limitation of standard GNN training. Crucially, once training is complete, all neighborhood-fetching components are discarded. The final inference model is a standard MLP that has "learned" the patterns of the graph topology.
Key Insights and Experimental Results
The authors evaluated TGS on six widely-used real-world graph benchmarks, including citation networks (Cora, Citeseer), co-authorship networks, and e-commerce networks. Several key insights emerged from the study:
- Teachers are Optional: A "Teacher-Free" approach can match or outperform traditional teacher-student models by using the graph structure as a direct supervision signal. TGS improved the performance of vanilla MLPs by an average of 15.54%.
- Implicit vs. Explicit Topology: While GNNs use topology explicitly through message passing, TGS uses it implicitly as a loss constraint. This shifts the heavy computational burden from the inference stage (where speed is critical) to the training stage.
- The "Cascading" Effect: Although TGS only performs distillation between 1-hop neighbors, information from multi-hop neighbors "cascades" down to the target node over many training epochs, effectively capturing long-range structural information.
- Unprecedented Speed: TGS is 75x to 89x faster than standard GNNs and significantly faster than classical acceleration methods like pruning or quantization. Furthermore, its inference time scales linearly with the number of layers, whereas GNN inference time grows exponentially.
- Robustness to Noise: TGS proved remarkably resilient to label noise. By regularizing predictions based on neighborhood consistency, it can "smooth out" errors in training labels more effectively than standard GNN architectures.
Conclusion and Future Directions
TGS demonstrates that simple MLPs, when trained with the right self-distillation objectives, can achieve GNN-level accuracy without the associated latency overhead. This makes it a highly practical solution for real-time graph applications. A primary limitation is the current reliance on the homophily assumption (neighbors are similar). Future research will focus on extending TGS to heterophily graphs, where connected nodes may have different properties, by learning more complex distillation strategies that account for node dissimilarity.
Summary updated