[Paper Review] Edge-labeling Graph Neural Network for Few-shot Learning
This paper proposes Edge-Labeling Graph Neural Network (EGNN), a novel few-shot learning framework that explicitly models intra-cluster similarity and inter-cluster dissimilarity by iteratively updating edge-labels instead of node-labels. EGNN outperforms existing GNNs on both supervised and semi-supervised few-shot image classification benchmarks, generalizes across varying numbers of classes without retraining, and enables robust transductive inference through episodic training with edge-labeling loss.
In this paper, we propose a novel edge-labeling graph neural network (EGNN), which adapts a deep neural network on the edge-labeling graph, for few-shot learning. The previous graph neural network (GNN) approaches in few-shot learning have been based on the node-labeling framework, which implicitly models the intra-cluster similarity and the inter-cluster dissimilarity. In contrast, the proposed EGNN learns to predict the edge-labels rather than the node-labels on the graph that enables the evolution of an explicit clustering by iteratively updating the edge-labels with direct exploitation of both intra-cluster similarity and the inter-cluster dissimilarity. It is also well suited for performing on various numbers of classes without retraining, and can be easily extended to perform a transductive inference. The parameters of the EGNN are learned by episodic training with an edge-labeling loss to obtain a well-generalizable model for unseen low-data problem. On both of the supervised and semi-supervised few-shot image classification tasks with two benchmark datasets, the proposed EGNN significantly improves the performances over the existing GNNs.
Motivation & Objective
- To address the limitation of node-labeling GNNs in few-shot learning, which implicitly model similarity and dissimilarity and require retraining for different numbers of classes.
- To develop a framework that explicitly learns edge-labels indicating whether two nodes belong to the same class, enabling direct exploitation of intra-cluster and inter-cluster relationships.
- To enable generalization across varying numbers of few-shot classes (e.g., 5-way vs. 10-way) without retraining, enhancing model flexibility.
- To support both transductive and non-transductive inference in a unified framework, improving robustness with limited labeled data.
- To demonstrate superior performance on few-shot image classification tasks through episodic training with edge-labeling loss.
Proposed method
- EGNN employs a dual-block architecture with alternating node-update and edge-update blocks across multiple layers, each with learnable parameters.
- Node features are updated via message passing from neighbors, while edge features are explicitly updated to predict whether connected nodes belong to the same class (edge-labels).
- Edge-labels are initialized as 0.5 (uncertainty) and evolve through layers to reflect ground-truth similarity, with predictions derived from final edge features.
- The model is trained via episodic training, where each episode simulates a few-shot task with support and query sets, and the edge-labeling loss is used to optimize parameters.
- The framework naturally supports transductive inference by processing all query samples simultaneously, improving prediction consistency.
- The method is scalable to different numbers of classes (e.g., 5-way, 10-way) without architectural changes or retraining, due to the edge-labeling paradigm.
Experimental results
Research questions
- RQ1Can explicit edge-labeling in a GNN framework improve few-shot classification performance compared to traditional node-labeling GNNs?
- RQ2Does the EGNN framework generalize across different numbers of few-shot classes (e.g., 5-way vs. 10-way) without retraining?
- RQ3How does the iterative edge-label update process enhance clustering and query prediction compared to node-feature-only propagation?
- RQ4Can the EGNN achieve robust transductive inference on few-shot tasks with limited labeled data?
- RQ5How does the edge-labeling loss contribute to better metric learning and generalization in low-data regimes?
Key findings
- EGNN achieves 76.37% accuracy on the 5-way 5-shot miniImageNet benchmark, significantly outperforming the prior GNN model (66.41%) and Prototypical Networks (65.77%).
- In cross-way few-shot settings, EGNN maintains strong performance: 76.27% on 10-way 5-shot and 56.35% on 5-way 10-shot, demonstrating robust generalization across class counts.
- The model shows superior clustering behavior in t-SNE visualizations: query and support samples of the same class are pulled together, while different classes are pushed apart across layers.
- Edge feature propagation in EGNN evolves from initial uniform values (0.5) to match ground-truth edge labels, indicating effective learning of similarity relationships.
- EGNN enables transductive inference with more robust predictions than node-labeling GNNs, especially when few labeled samples are available.
- The edge-labeling framework allows the model to handle arbitrary numbers of classes without retraining, unlike node-labeling GNNs that require model reconfiguration per class count.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.