Unsupervised Episode Generation for Graph Meta-learning

Jihyeong Jung, Sangwoo Seo, Sungwon Kim, Chanyoung Park · DOI

Introduction

Few-Shot Node Classification (FSNC) is a critical task in graph machine learning, aimed at classifying nodes when only a handful of labeled examples are available. Traditionally, this challenge is addressed through supervised meta-learning, where a model is trained on a set of "base classes" to learn a generalizable strategy for adapting to new "target classes." However, the reliance on high-quality, human-annotated labels for base classes creates significant bottlenecks in real-world applications.

To address these limitations, we introduce Neighbors as Queries (NAQ), a model-agnostic framework that enables unsupervised graph meta-learning. By generating synthetic training episodes based on node similarity rather than ground-truth labels, NAQ allows models to learn the episodic "format" of few-shot classification while utilizing the entire graph structure.

The Hurdles of Supervised Meta-learning

Supervised methods for FSNC face three primary challenges:

  1. Label Scarcity: Obtaining a sufficient number of labeled base classes is often prohibitively expensive or impossible in specialized domains.
  2. Label Noise: Meta-learning models are notoriously sensitive to incorrect labels in the training set, which can lead to poor generalization.
  3. Class Imbalance: Existing unsupervised alternatives, such as Graph Contrastive Learning (GCL), focus on general embeddings. These methods often fail to represent "tail classes" (rare categories) effectively because they lack awareness of the specific downstream episodic task format.

Methodology: Neighbors as Queries (NAQ)

The core of the NAQ framework is the unsupervised generation of training episodes. In meta-learning, an episode consists of a support set (examples the model learns from) and a query set (examples the model must classify).

The NAQ algorithm generates synthetic episodes by sampling random support nodes and identifying their most similar neighbors to serve as queries.

The NAQ Algorithm

  1. Support Set Generation: The algorithm randomly samples $N$ nodes from the graph and assigns each a distinct "pseudo-label."
  2. Query Set Generation: For each node in the support set, NAQ identifies its "neighbors"—the most similar nodes in the graph—and assigns them the same pseudo-label as their corresponding support node.
  3. Meta-Training: These synthetic episodes are used to train standard meta-learning architectures like MAML or ProtoNet.

Similarity can be defined in two ways: NAQ-FEAT, which utilizes raw feature similarity (e.g., Cosine similarity), and NAQ-DIFF, which employs structural similarity via Generalized Graph Diffusion (e.g., Personalized PageRank). This flexibility allows NAQ to adapt to different graph domains where either features or topology may be more informative.

Experimental Results and Analysis

We evaluated NAQ across diverse benchmarks, including product networks (Amazon-Clothing, Amazon-Electronics), citation networks (Cora-Full, DBLP, ogbn-arxiv), and the large-scale ogbn-products dataset (2.4M nodes).

Robustness and Performance

A key insight of this work is that "class-level similarity" is sufficient for meta-learning. The query set does not need to belong to the exact same ground-truth class as the support set; as long as they are sufficiently similar, the model learns the fundamental task of group discrimination.

Analysis of NAQ's robustness on the Amazon-Electronics dataset regarding label scarcity, label noise, and class imbalance.

As shown in the figure above, NAQ demonstrates remarkable robustness:

  • Noise Resistance: While supervised methods like ProtoNet and MAML see performance drop significantly as label noise increases, NAQ remains unaffected because it bypasses ground-truth labels entirely during training.
  • Handling Imbalance: Unlike GCL methods (BGRL, SUGRL), which struggle with class imbalance, NAQ’s episodic framework treats every sampled "pseudo-class" equally. This leads to superior performance in "Pareto" and "Extreme" imbalance settings.
  • Scalability: On the massive ogbn-products dataset, NAQ-FEAT achieved 53.82% accuracy in a 1-shot setting, significantly outperforming the supervised ProtoNet baseline (43.50%).

Conclusion

NAQ provides a simple yet powerful alternative to supervised graph meta-learning. By combining the data efficiency of unsupervised learning with the task-awareness of episodic training, it often outperforms supervised baselines that rely on scarce or noisy data. Future work will explore more sophisticated support sampling methods and the extension of unsupervised training to multi-shot ($K>1$) scenarios.

Summary updated

BibTeX
@inproceedings{jung2024unsupervised,
  author = {Jihyeong Jung and Sangwoo Seo and Sungwon Kim and Chanyoung Park},
  title = {{Unsupervised Episode Generation for Graph Meta-learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=9zdTOOgutk},
}
Figure