Abstract
Graph Neural Networks (GNNs) face significant challenges as they scale in depth, primarily due to over-smoothing, where node embeddings converge and lose discriminative power. Traditional Knowledge Distillation (KD) solutions are often impractical due to the high cost of training a teacher model and the difficulty of finding a teacher that does not itself suffer from over-smoothing. We present GNN-SD (GNN Self-Distillation), a novel, teacher-free distillation framework. GNN-SD utilizes a Neighborhood Discrepancy Rate (NDR) to quantify local structural distinctness and an Adaptive Discrepancy Retaining (ADR) regularizer to transfer this information from shallow to deep layers. Our approach effectively mitigates over-smoothing, improves performance on standard benchmarks, and maintains high computational efficiency.
Introduction
Deepening Graph Neural Networks (GNNs) typically leads to a performance plateau or decline. This is largely attributed to over-smoothing, a phenomenon where repeated message-passing causes node features to become increasingly similar to their neighbors. While Knowledge Distillation (KD) has been proposed to alleviate this, standard KD relies on a pre-trained "teacher" model. In the context of GNNs, this "teacher tax" is heavy: training a large teacher is computationally expensive, and deep teachers often underperform due to the very over-smoothing they are meant to help the student avoid.
The GNN-SD Framework
GNN-SD introduces a self-distillation mechanism that allows a GNN to learn from its own internal representations. The framework is built on two pillars: the Neighborhood Discrepancy Rate (NDR) and the Adaptive Discrepancy Retaining (ADR) regularizer.
The NDR is a metric that measures the cosine distance between a node's embedding and the average embedding of its neighbors. A high NDR indicates that nodes remain distinct from their local context, which is crucial for classification tasks. As shown in Figure 1, NDR is calculated at each layer of the network.
The ADR regularizer then facilitates the transfer of "sharpness" from shallow layers (which naturally have higher NDR) to deeper layers. It is adaptive, meaning it only enforces distillation when a shallow "target" layer exhibits higher discrepancy than the deeper "online" layer. This ensures that deep layers are encouraged to retain structural information that would otherwise be lost during message passing.
Experimental Results
GNN-SD was evaluated on several node and graph classification benchmarks. A key finding is its ability to "revive" deep GNNs. As shown in Figure 6, while standard GAT and GraphSage models see a sharp drop in accuracy as the number of layers increases from 2 to 16, models equipped with GNN-SD maintain significantly higher performance. For instance, on the Cora dataset with 8 layers, GNN-SD improves GAT accuracy from 76.9% to 80.1%.
Furthermore, GNN-SD is highly efficient. Unlike traditional KD methods that can nearly triple training time, GNN-SD adds only approximately 40% overhead, as it operates within a single model's forward pass. It is also compatible with other regularization techniques like DropEdge, providing additive benefits.
Conclusion
GNN-SD provides a robust and efficient solution to the over-smoothing problem in deep GNNs. By leveraging internal layer-wise discrepancies, it eliminates the need for external teachers while consistently improving performance across various architectures and datasets. Future work may explore more complex transformation functions for extremely deep networks and optimized sampling strategies for large-scale graphs.
Summary updated