Introduction
Few-Shot Node Classification (FSNC) is a critical task in Graph Neural Networks (GNNs), aiming to classify nodes with minimal labeled data. Existing methods typically rely on meta-learning or self-training. Meta-learning approaches, while effective, are computationally intensive and often underutilize unlabeled node information. Conversely, self-training methods expand training sets using pseudo-labels but suffer from "confirmation bias" and fail to leverage knowledge from large, labeled "base" datasets.
To address these limitations, we present KD-FSNC (Knowledge Distillation for Few-Shot Node Classification). This framework integrates a teacher-student architecture to transfer knowledge from data-rich base classes to data-poor novel classes while mitigating the noise inherent in traditional self-training.
Methodology: The KD-FSNC Framework
The KD-FSNC framework employs a dual-distillation strategy to refine the learning process of a student GCN model using a pre-trained teacher GCN.
1. Representation Distillation
To provide the student model with a robust feature-extraction foundation, KD-FSNC utilizes two forms of representation distillation:
- Local Representation Distillation: This ensures the student preserves the local neighborhood topology captured by the teacher.
- Global Representation Distillation: By applying Mean Squared Error (MSE) loss across all layers, the student aligns its deep embeddings with those of the teacher, inheriting complex feature patterns learned from the base set.
2. Pseudo-label Distillation
The "secret sauce" of KD-FSNC is its approach to self-training. Instead of relying solely on "hard" pseudo-labels, which can propagate errors, the model performs pseudo-label distillation. It minimizes the KL-divergence between the student's soft predictions and the teacher's soft labels. This "softening" allows the model to account for uncertainty and prevents overfitting to incorrect high-confidence predictions.
Experimental Evaluation
The framework was evaluated on six benchmark datasets: citation networks (Cora, CiteSeer, CoraFull), e-commerce graphs (Amazon Computers, Amazon Photo), and co-authorship data (Coauthor CS). These datasets provide diverse graph structures to test the model's generalizability.
Key Results
KD-FSNC consistently outperforms state-of-the-art (SOTA) methods, including both meta-learning and self-training baselines, across 1-shot, 3-shot, and 5-shot scenarios.
As shown in the results table, KD-FSNC achieved an average accuracy improvement of 8.29% over Meta-GNN and 3.78% over G-META. Furthermore, it surpassed the leading self-training method, IA-FSNC, by up to 1.25% on average. The model demonstrated "supreme performance" across all graph types, highlighting its robustness compared to methods that struggle outside specific domains like citation networks.
Discussion and Conclusion
The success of KD-FSNC underscores the importance of deep knowledge transfer. While previous methods often only transferred initial layer parameters, distilling knowledge from all layers provides a significantly richer prior. Additionally, the use of soft labels proves superior to hard labels in few-shot settings by capturing class nuances and reducing the impact of noisy pseudo-labels.
However, the model exhibits sensitivity to hyper-parameters such as the number of self-training cycles ($t$) and the volume of pseudo-labels ($m$). Excessive cycles can eventually introduce noise, leading to performance degradation. Future research will focus on automating pseudo-label selection and extending this distillation framework to more complex architectures like Graph Transformers.
Summary updated