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

TL;DR

This paper introduces Graph Few-Shot Learning (GFL), a novel method that leverages knowledge transfer from auxiliary graphs to improve semi-supervised node classification, especially when labeled data is scarce. GFL achieves this by learning a transferable metric space that captures both node-level and graph-level structural information.

What Problem Does This Paper Address?

Semi-supervised node classification, a crucial task in analyzing graph-structured data (like social networks or citation graphs), is challenging when only a small fraction of nodes are labeled. Traditional Graph Neural Networks (GNNs) often struggle in these low-data regimes due to their limited receptive fields and potential for over-smoothing. Existing few-shot learning techniques, primarily developed for independent data like images, don't effectively address the inherent structural dependencies within graphs. This paper tackles the problem of adapting few-shot learning to graph data by transferring knowledge across graphs, enabling better classification accuracy with minimal labeled examples.

Methods

The core of GFL is a novel approach to few-shot learning on graphs, built upon metric-based methods. It introduces a transferable metric space that allows for predicting a node's class based on its proximity to class prototypes. This metric space is characterized by two key embedding functions:

  • Graph Structured Prototype: This component learns a "prototype" representation for each class. It first extracts a relational structure among support nodes (labeled examples) within a class and then uses a "prototype GNN" (PGNN) to learn the class prototype. This captures global, class-specific information.
  • Hierarchical Graph Representation Gate: To account for the unique topological structures of different graphs, GFL learns a hierarchical representation of each graph. This involves multiple levels of node assignments to communities and representation fusion. A "gate function" then uses this graph-specific representation to modulate the parameters of the PGNN, tailoring the transferred knowledge to the target graph.
  • Auxiliary Graph Reconstruction: To enhance training stability and the quality of node representations, GFL incorporates a graph autoencoder. This component reconstructs the graph structure, providing an additional learning signal.

The overall GFL model combines these components to learn a robust and transferable metric space.

Datasets

The paper evaluates GFL on four real-world graph datasets:

  • Collaboration: Predicting research domains of academic authors.
  • Reddit: Predicting communities of Reddit posts.
  • Citation: Predicting paper categories based on citation networks.
  • Pubmed: Predicting diabetes class labels in a citation network.

These datasets represent diverse graph structures and applications, allowing for a comprehensive evaluation of the proposed method.

Key Insights and Ideas

  • Knowledge Transfer is Key for Graph Few-Shot Learning: The paper strongly advocates for and demonstrates the effectiveness of transferring knowledge from auxiliary graphs to improve performance on target graphs with limited labels. This is particularly important for graph data where structural information is paramount.
  • Bridging Node and Graph Level Information: GFL's innovation lies in its ability to capture and transfer both local node-level relationships (via node embeddings) and global graph-level structures (via hierarchical graph representation). This dual focus is crucial for effective graph learning.
  • Hierarchical Representations for Graph Specificity: Learning hierarchical graph representations allows the model to adapt to the unique structural characteristics of each graph, making the transferred knowledge more relevant and effective.
  • Prototypes for Class Representation: Using class prototypes, learned from relational structures, provides a robust way to represent class information, especially in low-data scenarios.

Key Results

GFL consistently outperforms existing baseline methods across all four datasets, demonstrating significant improvements in accuracy for few-shot node classification.

  • Overall Performance: GFL (both GFL-mean and GFL-att variants) achieves the best performance among all tested methods, including other transfer/few-shot learning algorithms. For example, on the Citation dataset, GFL-att achieves 96.51% accuracy, outperforming strong baselines like Protonet (95.12%) and MAML (87.90%).
  • Ablation Studies:
    • Removing the hierarchical graph representation gate (M2a) leads to a performance drop, highlighting the importance of graph-level structural transfer.
  • Using a flat representation instead of a hierarchical one (M2b) also shows a decrease in performance, emphasizing the benefit of multi-level graph structures.
  • Removing the auxiliary graph reconstruction loss (M3) results in slightly lower accuracy, indicating its role in improving training stability and representation quality.
  • Robustness: GFL shows robustness to the choice of similarity functions for constructing relational structures and is not overly sensitive to the specific distance function used.

Limitations and Future Work

  • Sensitivity to Threshold μ: While GFL is generally robust, the effectiveness of the threshold μ for constructing relational structures can vary across datasets, suggesting potential for further optimization.
  • Computational Cost: Learning hierarchical representations and prototypes can be computationally intensive, especially for very large graphs.
  • Future Directions: The authors suggest exploring more advanced graph representation learning techniques and investigating GFL's applicability to other graph-related tasks beyond node classification. Further research into more efficient hierarchical representation learning and adaptive prototype construction could also be beneficial.

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