Skip to main content
QUICK REVIEW

[Paper Review] Few-Shot Learning on Graphs via Super-Classes based on Graph Spectral Measures

Jatin Chauhan, Deepak Nathani|arXiv (Cornell University)|Feb 27, 2020
Advanced Graph Neural NetworksComputer Science26 citations
TL;DR

This paper proposes a novel few-shot graph classification method that leverages graph spectral measures and Wasserstein distance to cluster base-class labels into super-classes, constructing a super-graph to enhance relational inductive bias. The approach improves generalization by training a GNN with a dual-head classifier (super-class and graph attention) that achieves up to 20% higher accuracy than unsupervised baselines on the TRIANGLES dataset in the 20-shot setting.

ABSTRACT

We propose to study the problem of few shot graph classification in graph neural networks (GNNs) to recognize unseen classes, given limited labeled graph examples. Despite several interesting GNN variants being proposed recently for node and graph classification tasks, when faced with scarce labeled examples in the few shot setting, these GNNs exhibit significant loss in classification performance. Here, we present an approach where a probability measure is assigned to each graph based on the spectrum of the graphs normalized Laplacian. This enables us to accordingly cluster the graph base labels associated with each graph into super classes, where the Lp Wasserstein distance serves as our underlying distance metric. Subsequently, a super graph constructed based on the super classes is then fed to our proposed GNN framework which exploits the latent inter class relationships made explicit by the super graph to achieve better class label separation among the graphs. We conduct exhaustive empirical evaluations of our proposed method and show that it outperforms both the adaptation of state of the art graph classification methods to few shot scenario and our naive baseline GNNs. Additionally, we also extend and study the behavior of our method to semi supervised and active learning scenarios.

Motivation & Objective

  • Address the challenge of low generalization performance in graph neural networks (GNNs) under few-shot learning, where only a few labeled examples per novel class are available.
  • Overcome the limitations of standard GNNs in few-shot scenarios, where increased depth for larger receptive fields leads to performance degradation due to over-smoothing.
  • Exploit latent inter-class relationships in graph data by constructing a super-graph based on spectral similarity to improve sample efficiency and combinatorial generalization.
  • Introduce a novel framework that combines graph spectral measures with Wasserstein barycenters and super-class clustering to enhance few-shot learning performance on graph classification tasks.

Proposed method

  • Assign a graph spectral measure to each graph using the spectrum of its normalized Laplacian matrix, enabling a metric space for graph comparison.
  • Compute Wasserstein barycenters (prototype graphs) for each base class using $L^p$ Wasserstein distance as the underlying metric in the spectral measure space.
  • Cluster the spectral measures of graphs from the same base class into super-classes using Wasserstein distance, forming a super-class structure.
  • Construct a super-graph where nodes represent super-classes and edges are formed based on $k$-nearest neighbors in the super-class space, enabling message passing across semantically similar classes.
  • Train a GNN with a dual-head classifier: a super-class head (MLP) and a graph attention network (GAT) head for final class prediction, using a combined cross-entropy loss.
  • Apply an initialization-based fine-tuning strategy, freezing the GIN feature extractor and super-class head during fine-tuning, updating only the GAT head with few novel-class samples.

Experimental results

Research questions

  • RQ1Can spectral measures of graphs, derived from their normalized Laplacian, serve as effective representations for clustering base-class labels into meaningful super-classes in few-shot graph learning?
  • RQ2Does constructing a super-graph based on Wasserstein distances between spectral measures improve generalization in few-shot graph classification compared to standard GNNs?
  • RQ3How does the inclusion of a super-class prediction head alongside a GAT-based final classifier affect performance in low-data regimes?
  • RQ4What is the optimal number of super-classes and $k$-value in the super-graph for balancing information flow and avoiding overfitting in few-shot settings?

Key findings

  • In the 20-shot setting on the TRIANGLES dataset, the proposed method achieves 80.14% accuracy, representing a 7% improvement over deep learning baselines and a 20% improvement over unsupervised baselines.
  • The method shows consistent performance gains across multiple datasets: Letter-High (+2.19% with-SC vs no-SC in 20-shot), Reddit-12K (+2.17%), and ENZYMES (+0.31%) in 20-shot settings.
  • Performance peaks at 3 super-classes for most datasets, with further increases leading to sparsity and information underflow, particularly on Letter-High and TRIANGLES.
  • Using a 2-NN graph structure per super-class yields the best results, as higher $k$ values introduce noisy connections and degrade performance, especially on Reddit-12K and ENZYMES.
  • The ablation study confirms that the super-class head ($C^{sup}$) is essential, as removing it reduces performance significantly (e.g., 71.13% vs 73.61% on Letter-High in 10-shot).
  • The method generalizes well to semi-supervised and active learning settings, indicating its robustness and adaptability to low-data regimes beyond few-shot learning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.