Abstract
Few-shot node classification poses a significant challenge for Graph Neural Networks (GNNs) due to insufficient supervision and potential distribution shifts between labeled and unlabeled nodes. Self-training has emerged as a widely popular framework to leverage the abundance of unlabeled data, which expands the training set by assigning pseudo-labels to selected unlabeled nodes. Efforts have been made to develop various selection strategies based on confidence, information gain, etc. However, none of these methods takes into account the distribution shift between the training and testing node sets. The pseudo-labeling step may amplify this shift and even introduce new ones, hindering the effectiveness of self-training. Therefore, in this work, we explore the potential of explicitly bridging the distribution shift between the expanded training set and test set during self-training. To this end, we propose a novel Distribution-Consistent Graph Self-Training (DC-GST) framework to identify pseudo-labeled nodes that are both informative and capable of redeeming the distribution discrepancy and formulate it as a differentiable optimization task. A distribution-shift-aware edge predictor is further adopted to augment the graph and increase the model's generalizability in assigning pseudo labels. We evaluate our proposed method on four publicly available benchmark datasets and extensive experiments demonstrate that our framework consistently outperforms state-of-the-art baselines.
Introduction
Graph Neural Networks (GNNs) have demonstrated remarkable performance in various graph-based tasks. However, their efficacy is often contingent on the availability of large-scale labeled datasets. In many real-world applications, obtaining labels is expensive and time-consuming, leading to a "few-shot" scenario where only a tiny fraction of nodes are labeled.
Self-training is a common strategy to mitigate label scarcity. In this paradigm, a "teacher" model generates pseudo-labels for unlabeled nodes, which are then used to augment the training set for a "student" model. While effective, standard self-training often falls into the trap of distribution shift. Labeled nodes are rarely a perfectly representative sample of the entire graph; for instance, in a social network, highly connected "popular" users are more likely to be labeled than the average user. Traditional selection strategies that prioritize high-confidence predictions tend to select nodes similar to the existing training set, creating a feedback loop that amplifies initial biases and hinders generalization to the broader graph.
The DC-GST Framework
To address these challenges, we introduce the Distribution-Consistent Graph Self-Training (DC-GST) framework. DC-GST moves beyond simple confidence-based selection by explicitly bridging the distribution gap between the training and test sets through three core innovations:
1. Distribution-Aware Edge Prediction (EP-CMD)
Rather than relying solely on the static original graph, DC-GST utilizes an Edge Predictor to generate graph variants. This predictor is optimized to minimize the Central Moment Discrepancy (CMD), a statistical metric that measures the distance between the distributions of labeled and unlabeled nodes. By "steering" the graph structure to reduce CMD, the model is exposed to a more diverse and representative structural environment during the pseudo-labeling phase.
2. Distribution Consistency (DC) Criterion
When selecting unlabeled nodes for pseudo-labeling, DC-GST does not look at prediction confidence in isolation. Instead, it evaluates a subset of nodes based on their ability to minimize the CMD distance between the expanded training set and the test set. This ensures that the newly labeled nodes act as a bridge, making the training distribution more representative of the overall population.
3. Neighborhood Entropy Reduction (NER)
To ensure that selected nodes are locally informative, we incorporate Neighborhood Entropy Reduction. This component identifies nodes that, if labeled, would most significantly reduce the uncertainty (entropy) of their neighbors' predictions. This ensures the pseudo-labels are not just globally representative but also locally influential.
4. Differentiable Selection Optimization
To avoid the computational overhead of greedy search algorithms, we formulate the node selection process as a differentiable optimization problem. This allows the framework to use gradient descent to efficiently identify the optimal set of pseudo-labels that satisfy both the DC and NER criteria.
Experimental Evaluation
We evaluated DC-GST on four benchmark citation networks: Cora, Citeseer, PubMed, and the large-scale ogbn-arxiv. To simulate the difficulties of real-world distribution shifts, we employed a biased sampler (PPR-S) to create training sets that were intentionally non-representative of the overall graph.
Key Results
DC-GST consistently outperformed state-of-the-art baselines, including M3S and DR-GST, particularly in extreme few-shot scenarios:
- Accuracy Gains: On the Cora dataset with a 0.5% label rate, DC-GST achieved 65.0% accuracy, a substantial improvement over standard GCN (47.5%) and the previous state-of-the-art self-training method, DR-GST (56.9%).
- Stability and Convergence: Visual analysis confirmed that while competing methods often saw their distribution shift (CMD) fluctuate or increase, DC-GST successfully reduced CMD over multiple training stages, which correlated directly with improved classification accuracy.
- Backbone Agnostic: The framework demonstrated consistent performance gains regardless of the underlying GNN architecture (e.g., GCN, GAT, or GraphSAGE).
Conclusion
DC-GST addresses a critical flaw in traditional GNN self-training: the neglect of distribution shift. By treating distribution consistency as a primary objective rather than a secondary concern, DC-GST identifies pseudo-labels that are both informative and representative. Future work will explore the framework's performance on heterophilous graphs—where connected nodes often belong to different classes—and investigate methods to further automate hyperparameter tuning.
Summary updated