NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Graph Few-Shot Learning via Knowledge Transfer

Huaxiu Yao, Chuxu Zhang, Ying Wei, Meng Jiang, Suhang Wang, Junzhou Huang, Nitesh V. Chawla, Zhenhui Li

Introduction

Semi-supervised node classification is a fundamental task in graph mining, yet standard Graph Neural Networks (GNNs) often suffer from "data hunger," requiring extensive labeled data to achieve high performance. In many real-world applications, labels are scarce, leading to a "few-shot" learning problem. Traditional few-shot methods like MAML or Prototypical Networks, designed for independent data, fail to capture the complex structural dependencies inherent in graphs.

The GFL Framework

The proposed Graph Few-Shot Learning (GFL) framework addresses these challenges by effectively transferring structural knowledge from auxiliary graphs to a target graph with limited labels. GFL introduces three primary innovations:

  1. Graph Structured Prototypes (PGNN): Unlike standard methods that average features to create class prototypes, GFL constructs a relational graph among labeled nodes based on topological similarity. A Prototype GNN (PGNN) then learns structure-aware representations for each class.
  2. Hierarchical Graph Representation Gate: To adapt to varying graph topologies (e.g., citation vs. social networks), GFL employs a hierarchical pooling mechanism to extract a global graph "fingerprint." This fingerprint modulates the PGNN parameters, ensuring context-aware knowledge transfer.
  3. Auxiliary Graph Reconstruction: A graph autoencoder (GAE) task is integrated to reconstruct the adjacency matrix, forcing node embeddings to capture underlying structural information even in the absence of labels.
Overview of the GFL framework including the Prototype GNN, Hierarchical Gate, and Reconstruction components.

Experimental Results

GFL was evaluated on four diverse datasets: Collaboration, Reddit, Citation, and Pubmed. It was compared against standard GNNs and meta-learning baselines like MAML and Prototypical Networks.

Performance and Robustness

GFL consistently outperformed all baselines across different "shot" counts. For instance, on the Collaboration dataset, GFL achieved approximately 83.8% accuracy in a 10-shot setting, surpassing MAML (~79.4%) and Prototypical Networks (~80.5%).

Accuracy vs. Support Set Size (N) on the Collaboration dataset, showing GFL consistently outperforming MAML and Protonet baselines.

The model's hierarchical gating mechanism allows it to weigh structural features differently based on the target graph's specific characteristics, such as clustering coefficients or sparsity. Furthermore, t-SNE visualizations confirm that GFL produces tighter, more distinct class clusters compared to traditional metric-based methods.

Conclusion

GFL demonstrates that incorporating structural awareness and context-dependent knowledge transfer significantly improves few-shot node classification. By leveraging global graph fingerprints and relational prototypes, GFL overcomes the limitations of traditional meta-learning on non-independent graph data. Future work includes extending the framework to heterogeneous and dynamic graph structures.

Summary updated

BibTeX
@inproceedings{yao2020graph,
  author = {Huaxiu Yao and Chuxu Zhang and Ying Wei and Meng Jiang and Suhang Wang and Junzhou Huang and Nitesh V. Chawla and Zhenhui Li},
  title = {{Graph Few-Shot Learning via Knowledge Transfer}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i04.6142},
}
Figure