Meta-GNN: On Few-shot Node Classification in Graph Meta-learning
Introduction
Graph Neural Networks (GNNs) like GCN and GraphSAGE have become standard for graph-structured data. However, they typically require extensive labeled data to achieve high performance. In many real-world scenarios, we encounter "few-shot" learning problems where only a handful of labeled examples (e.g., 1 to 5) are available for new node categories. Standard GNNs often experience a "catastrophic decline" in accuracy in these data-scarce environments. While meta-learning has addressed similar challenges in computer vision and NLP, its application to irregular and noisy graph structures remains non-trivial.
Methodology
The authors introduce Meta-GNN, a general framework designed to bridge the gap between meta-learning and GNNs. Meta-GNN employs an episodic meta-learning strategy inspired by Model-Agnostic Meta-Learning (MAML).
The framework operates through a "learning to learn" pipeline:
- Task Sampling: The model is trained on thousands of "episodes," each simulating a few-shot classification task.
- Inner Loop (Task Adaptation): For each task, the model performs a few gradient descent steps on a small support set to derive task-specific parameters ($\theta'_i$).
- Outer Loop (Meta-Update): The performance of these task-specific parameters is evaluated on a query set. The global initial parameters ($\theta$) are then updated to provide an optimal starting point for future tasks.
- Model Agnosticism: Meta-GNN is architecture-agnostic. The authors demonstrate its versatility by wrapping it around GCN and SGC, creating "Meta-GCN" and "Meta-SGC."
Experimental Setup
The framework was evaluated on three benchmark datasets: Cora, Citeseer, and Reddit. To simulate the meta-learning environment, specific node classes were held out entirely for testing (2 classes for Cora/Citeseer, 5 for Reddit). This ensures the model is tested on its ability to generalize to completely unseen categories.
Results and Discussion
Meta-GNN consistently outperformed traditional graph embeddings and state-of-the-art GNN baselines across all evaluated datasets.
Key findings include:
- Significant Accuracy Gains: On the Cora dataset (1-shot), Meta-SGC achieved 65.27% accuracy, a substantial improvement over the 61.64% of standard SGC and the 16.06% of DeepWalk.
- Scalability: On the large-scale Reddit dataset, Meta-GNN variants improved Micro-F1 scores by nearly 50% in 1-shot scenarios compared to non-meta counterparts (moving from ~9.8% to ~14.2%).
- Generalization: The results suggest that the primary challenge in few-shot graph learning is optimization rather than feature aggregation. Meta-GNN identifies a parameter space region where minimal data can effectively shift the model's understanding. Furthermore, while inductive models like GraphSAGE handle new nodes well, they struggle with new classes; Meta-GNN provides a robust mechanism for class-level generalization.
Conclusion
Meta-GNN represents a significant step forward in few-shot node classification. By optimizing the initialization process, it enables GNNs to adapt rapidly to new information. Future research may address the computational overhead of nested optimization loops and extend the framework to few-shot graph classification or zero-shot learning scenarios.
Summary updated