Graph Meta Learning via Local Subgraphs

Kexin Huang, Marinka Zitnik

TL;DR

G-META is a novel meta-learning framework that enables Graph Neural Networks (GNNs) to adapt rapidly to new tasks with very few labeled examples. By representing nodes through their local subgraphs rather than the entire global graph, G-META achieves state-of-the-art performance across diverse settings—including generalizing to completely unseen graphs and disjoint label sets—while scaling to datasets two orders of magnitude larger than previous benchmarks.

The Challenge of Few-Shot Learning on Graphs

Standard Graph Neural Networks (GNNs) are notoriously "data-hungry," typically requiring a vast amount of labeled nodes or edges to perform well. However, in many real-world scenarios—like predicting the function of a newly discovered protein or recommending products to a new user—we only have a handful of examples. This is known as the "few-shot learning" challenge.

While meta-learning (or "learning to learn") has been highly successful in computer vision and natural language processing, applying it directly to graphs introduces unique hurdles:

  1. Structural Dependency: Nodes are not independent data points; they are intricately tied to a specific global graph structure.
  2. Generalization: Most existing methods struggle to transfer knowledge between entirely different graphs or to label sets they haven't seen during training.
  3. Scalability: Processing entire large graphs for every meta-learning task is computationally prohibitive.
Three distinct meta-learning scenarios addressed by G-META: single graph with disjoint labels, multiple graphs with shared labels, and multiple graphs with disjoint labels.

The G-META Approach

The core innovation of G-META is a fundamental shift from global graph processing to local subgraph extraction.

The G-META architecture pipeline, illustrating local subgraph extraction, GNN encoding, and the inner/outer loop optimization process.

1. Local Subgraph Extraction

For every target node or edge, G-META extracts an $h$-hop local subgraph. The authors provide a theoretical justification showing that the "influence" of distant nodes decays exponentially. This means the evidence for a node's label is almost entirely contained within its immediate neighborhood, making global processing unnecessary.

2. Neural Encoding and Prototypical Loss

Each extracted subgraph is passed through a GNN to generate a subgraph-specific embedding. G-META then uses a metric-learning approach:

  • It calculates "prototypes" (mean embeddings) for each class in the support set.
  • New nodes are classified based on their proximity to these prototypes in the embedding space.

3. Optimization via MAML

G-META uses Model-Agnostic Meta-Learning (MAML) to find a set of GNN parameters that can be updated with just a few gradient steps to solve a new task. By training on subgraphs, the model learns structural motifs that are transferable across different graphs, rather than memorizing positions in a single global structure.

Key Insights

  • Local is Enough: The theoretical proof that local subgraphs preserve nearly all useful information for GNN predictions is a major breakthrough. It justifies ignoring the rest of a massive graph, drastically improving computational efficiency.
  • Inductive Bias through Subgraphs: By forcing the GNN to look only at subgraphs, the model develops a strong inductive bias toward local structure. This allows G-META to handle "disjoint labels"—learning how structures relate to labels generally, rather than memorizing specific label-node mappings.
  • Regularizing Over-smoothing: A common GNN failure mode is "over-smoothing," where node features become indistinguishable. Because G-META processes subgraphs independently in mini-batches, it naturally prevents the model from smoothing features across the entire global graph.

Datasets and Key Results

The authors evaluated G-META on a mix of synthetic (Cycle, BA) and real-world benchmarks (ogbn-arxiv, Tissue-PPI, FirstMM-DB), as well as introducing two new datasets: Fold-PPI (144 tissue-specific networks) and Tree-of-Life (1,840 graphs).

  • Superior Accuracy: G-META outperformed nine baseline methods by up to 16.3% in multi-class classification accuracy.
  • Versatility: It is the first method shown to work across three distinct meta-learning scenarios.
  • Extreme Scalability: While previous state-of-the-art methods were limited to a few dozen graphs, G-META successfully learned across the 1,840 graphs in the new Tree-of-Life dataset—a 100x increase in scale.
  • Few-Shot Success: In the challenging ogbn-arxiv dataset (160k nodes), G-META learned effectively using only 3-shot examples (3 labels per class).

Limitations and Future Work

While highly effective, the authors note that meta-learning can be sensitive to negative transfer; if the training tasks are too different from the test tasks, performance can suffer. Additionally, the paper does not explore how vulnerable these subgraph-based meta-learners are to adversarial attacks on graph structure. Finally, while $h$-hop neighborhoods are effective, future work could explore more sophisticated subgraph sampling techniques (e.g., based on personalized PageRank or motif discovery) to further refine the "evidence" used for prediction.

Summary updated

BibTeX
@inproceedings{huang2020graph,
  author = {Kexin Huang and Marinka Zitnik},
  title = {{Graph Meta Learning via Local Subgraphs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=pQIkJSNS0X},
}
Figure