Abstract
Few-shot graph classification is a novel yet promising emerging research field that still lacks the soundness of well-established research domains. Existing works often consider different benchmark datasets and evaluation protocols, leading to a fragmented landscape. This paper introduces a unified evaluation framework and demonstrates that simple metric learning baselines, when properly enhanced with task-adaptive embeddings and latent-space augmentation, often outperform complex meta-learning methods.
Introduction: The "Wild West" of Graph FSL
Graph classification is essential for domains like drug discovery and protein analysis, where data labeling is prohibitively expensive. While Few-Shot Learning (FSL) has flourished in computer vision, its application to graphs remains in an "embryonic stage." A primary challenge identified by the authors is the lack of uniformity: researchers use disparate datasets and evaluation settings, making comparative progress difficult to track. This work aims to standardize the field by providing a unified benchmark and a robust baseline that challenges the current state-of-the-art (SOTA).
Methodology: Metric-Based Learning
The authors propose a framework based on Prototypical Networks (PN). In this approach, graphs are embedded into a latent space where those belonging to the same class cluster around a "prototype"—defined as the mean vector of the support examples for that class.
To enhance the standard PN, two novel modules are introduced:
- Task-Adaptive Embedding (TAE): Unlike static embeddings, TAE conditions the graph representation on the specific task (episode) context. It uses a Task Embedding Network to calculate scale ($\gamma$) and shift ($\beta$) parameters, effectively reorganizing the latent space based on the specific classes being compared in a given task.
- MixUp (MU) Embedding Augmentation: To prevent overfitting in low-data regimes, the model performs latent-space augmentation. It creates synthetic examples by swapping features between graphs of different classes using random boolean masks and interpolating their target distributions.
For the graph encoder, a standard Graph Isomorphism Network (GIN) is employed, proving that structural complexity can be captured effectively without specialized few-shot architecture tweaks.
Experimental Results
The proposed model, PN+TAE+MU, was evaluated against two collections of benchmarks: $D_A$ (standard sets like TRIANGLES and ENZYMES) and $D_B$ (challenging sets like Graph-R52 and COIL-DEL).
Key Findings:
- Superiority of Simple Baselines: A "vanilla" Prototypical Network with a modern GIN encoder surprisingly outperforms many complex, graph-specific meta-learning algorithms.
- State-of-the-Art Performance: On the $D_A$ set, the full model achieved an average accuracy of 66.8% (5-shot) and 68.7% (10-shot), surpassing previous SOTA methods like GSM and FAITH by significant margins.
- Efficiency: The metric-learning approach is significantly more efficient than meta-learning alternatives, being roughly 3x faster to train and 50x faster at inference than MAML-based approaches.
- Ablation Insights: Adding TAE provided a +2.82% boost on $D_B$ datasets, while MixUp further improved generalization, particularly on the COIL-DEL dataset (+1.72% in 10-shot).
Conclusion
By bringing a unified perspective to few-shot graph classification, this research highlights that sophisticated meta-learning is not always necessary. A well-tuned metric-learning approach with task-adaptive features and latent augmentation provides a more efficient and effective path forward. Future work will address GNN-specific limitations like over-smoothing and explore non-Euclidean distance metrics to better capture class variance.
Summary updated