Abstract
Few-shot graph classification is a challenging task due to the diversity of graph structures and the scarcity of labeled data. Traditional methods often rely on global similarities that may not exist between training and test classes. This paper introduces Adaptive Step Model-Agnostic Meta-Learning (AS-MAML), a framework that leverages shared local sub-structures and employs a Reinforcement Learning-based controller to dynamically optimize adaptation steps. Experimental results across multiple benchmarks demonstrate that AS-MAML significantly outperforms existing state-of-the-art methods.
Introduction
Graph classification is vital for applications ranging from drug discovery to social network analysis. However, labeling graphs is often resource-intensive. While few-shot learning has made strides in computer vision, its application to graphs is hindered by the lack of overlapping label spaces and the structural variability of graphs.
Existing methods often assume a "super-class" relationship between training and test data. In contrast, this work focuses on transferring knowledge through local sub-structures. Standard meta-learning like MAML also faces stability issues on graphs due to fixed adaptation steps. AS-MAML addresses these by dynamically adjusting the learning process for each specific graph task.
Methodology
The AS-MAML framework consists of a graph embedding backbone and an RL-based adaptation controller.
Graph Embedding Backbone
The base learner utilizes GraphSAGE for node embeddings and Self-Attention Graph Pooling (SAGPool) for global representation. This backbone is optimized via the MAML paradigm to find a robust initialization that can adapt to new tasks with minimal data.
RL-Based Adaptation Controller
To prevent overfitting and handle structural diversity, an LSTM-based controller determines the number of inner-loop adaptation steps. It uses training loss and Average Node Information (ANI)—a metric measuring the uniqueness of node representations—to decide when to stop. The controller is trained via Reinforcement Learning, receiving rewards based on query set accuracy.
Datasets and Evaluation
The model was evaluated on four diverse datasets:
- COIL-DEL: Graphs derived from images using Delaunay triangulation.
- Graph-R52: Text classification data converted into co-occurrence graphs.
- Letter-High: Graphs representing distorted drawings of alphabet letters.
- TRIANGLES: A benchmark for classifying graphs by the number of triangles they contain.
Key Results
AS-MAML achieved state-of-the-art results, notably reaching 84.75% accuracy on COIL-DEL (5-way-10-shot) and 87.26% on TRIANGLES. Ablation studies confirmed the importance of the adaptive step module, showing performance drops of up to 3.5% when using fixed-step MAML, proving that dynamic adaptation is crucial for handling graph diversity.
Conclusion
By shifting the focus to local sub-structures and introducing dynamic adaptation, AS-MAML provides a robust solution for few-shot graph classification. Future work includes exploring more advanced GNN architectures and unsupervised methods for calculating node information metrics to further stabilize the meta-learning process.
Summary updated