Introduction
Graph Neural Networks (GNNs) are powerful tools for modeling relational data, yet they suffer from a fundamental limitation known as over-smoothing. As GNNs increase in depth, the repeated aggregation of neighbor information causes node representations to converge, leading to a loss of discriminative power. While Knowledge Distillation (KD) offers a potential solution by transferring insights from a complex "teacher" model to a smaller "student," it is often computationally expensive and hindered by the difficulty of training an optimal teacher GNN.
To address these challenges, this work proposes GNN Self-Distillation (GNN-SD), a "teacher-free" framework that enables a GNN to refine its own representations during a single training pass. By leveraging the structural diversity captured in shallower layers to guide deeper ones, GNN-SD effectively mitigates over-smoothing without the overhead of traditional KD.
The GNN-SD Framework
The core of GNN-SD lies in its ability to quantify and preserve neighborhood diversity across layers. The framework introduces three primary mechanisms:
- Neighborhood Discrepancy Rate (NDR): This metric measures the dissimilarity between a node's embedding and the average embedding of its neighbors. A high NDR indicates that nodes remain distinct from their local context, resisting the blurring effect of over-smoothing.
- Adaptive Discrepancy Retaining (ADR) Regularizer: The ADR acts as the distillation objective. It identifies the shallow layer with the highest NDR and adaptively encourages deeper layers to maintain a similar level of neighborhood distinction.
- Multi-Granularity Distillation: For graph-level tasks, the framework also distills compact graph-level embeddings to ensure global features are preserved across layers.
Unlike traditional KD, which requires separate training stages, GNN-SD operates within a single forward/backward propagation cycle. This internal knowledge transfer makes it a highly efficient "drop-in" replacement for standard GNN training, adding only approximately 40% overhead compared to the nearly 200% increase seen in some external teacher-student methods.
Experimental Evaluation
The authors evaluated GNN-SD across several benchmark datasets, including Cora, Citeseer, and PubMed for node classification, and ENZYMES, DD, and PROTEINS for graph classification. Inductive learning performance was tested on the PPI (Protein-Protein Interaction) dataset.
The results demonstrate that GNN-SD consistently improves accuracy across various backbones, such as GCN, GAT, GraphSage, and GIN. For instance, an 8-layer GAT model on the Cora dataset saw a 3.2% accuracy improvement over the baseline. In head-to-head comparisons on the PPI dataset, GNN-SD outperformed established distillation methods like FitNet and LSP, despite the latter using external teacher models.
Key Findings
- Mitigating Over-smoothing: Analysis of NDR curves reveals that while standard GNNs experience a sharp decline in neighborhood discrepancy in deeper layers, GNN-SD maintains high NDR values, preserving local structural information.
- Information Theory Grounding: The authors provide theoretical proof showing that optimizing the ADR loss effectively increases the lower bound of mutual information between the target shallow layer and the deeper online layer.
- Robustness: The method works well alongside other GNN-boosting techniques like DropEdge, suggesting it can be part of a larger optimization stack.
Conclusion and Future Work
GNN-SD provides a robust and efficient solution to the over-smoothing problem in deep GNNs. By treating shallow layers as internal teachers, the model preserves discriminative features that are typically lost during deep aggregation. While the current framework is optimized for homophilic graphs, future research may explore its application to heterophilic graphs and other tasks such as link prediction or graph generation.
Summary updated