Relational Generalized Few-Shot Learning

Xiahan Shi, Leonard Salewski, Martin Schiegg, Max Welling

TL;DR

This paper introduces GcGPN, a novel graph-convolutional framework for Generalized Few-Shot Learning (GFSL). GcGPN explicitly models relationships between all classes (seen and novel) to improve classification accuracy on a combined label space, addressing a key challenge in GFSL where models often struggle to maintain global consistency.

What Problem Does This Paper Address?

Few-shot learning (FSL) aims to train models that can learn new concepts from very few examples. A common FSL setup is N-way K-shot classification, where the model must distinguish between N new classes, each with K examples. However, this setup typically only requires the model to classify novel classes.

This paper tackles a more challenging problem called Generalized Few-Shot Learning (GFSL). In GFSL, the model must classify queries that can come from both previously seen classes (during training) and the new few-shot classes. This is crucial for real-world applications where models need to retain knowledge of old concepts while learning new ones. The core challenge in GFSL is achieving both fast adaptation to novel classes and maintaining a globally consistent classification across all classes (seen and novel). Existing FSL methods often fail in GFSL because they don't incentivize remembering seen classes or maintaining a unified label space.

Methods

The authors propose Graph-convolutional Global Prototypical Networks (GcGPN), a framework that explicitly models inter-class relationships using a weighted graph. Here's how it works:

  • Feature Extraction: A standard feature extractor maps input images into a d-dimensional space.
  • Prototype Initialization: Prototypes for seen classes are learned parameters, while prototypes for novel classes are initialized by averaging their support set examples.
  • Graph Convolution: This is the core innovation. GcGPN uses graph convolution operations to update all class prototypes (seen and novel) jointly. The graph's edges represent relationships between classes, which can be derived from various sources of side information (e.g., semantic embeddings, attributes, knowledge graphs). This process embeds novel class representations into the existing space of seen classes in a globally consistent manner.
  • Classification: A cosine classifier is used to predict class probabilities based on the cosine similarity between a query's feature representation and the updated prototypes.

GcGPN is designed to be flexible, allowing for different types of "semantic operators" to define the graph's edge weights, including learned similarities, attribute-based similarities, and knowledge graph structures. The model is trained end-to-end.

Datasets

The authors evaluate their method on two widely used benchmark datasets:

  • miniImageNet: A standard FSL dataset with 100 classes. They use a split of 64 seen, 16 novel validation, and 20 novel test classes. They also enrich this dataset with side information from WordNet path similarities between class names.
  • Caltech-UCSD Birds-200-2011 (CUB): A dataset commonly used for Zero-Shot Learning (ZSL), containing 200 bird species with 312 annotated attributes per class. They use a standard ZSL split and derive edge weights from pairwise cosine similarities between class attributes.

Key Insights and Ideas

  • Explicitly modeling inter-class relationships is crucial for GFSL: The paper strongly suggests that simply extending FSL models to GFSL is insufficient. GcGPN's success hinges on its ability to leverage relationships between all classes.
  • Graph convolution provides a principled way to integrate novel and seen classes: By updating prototypes jointly through a graph, GcGPN ensures that novel classes are not just classified correctly among themselves but also placed coherently within the broader context of seen classes.
  • Side information significantly boosts GFSL performance: The CUB dataset, with its rich attribute information, shows a more pronounced benefit from GcGPN compared to miniImageNet, highlighting the importance of high-quality relational data.
  • Flexibility in defining graph relationships: GcGPN's ability to incorporate various types of side information (WordNet, attributes) and combine them makes it a versatile framework for GFSL.

Key Results

GcGPN achieves state-of-the-art results on both miniImageNet and CUB datasets for GFSL tasks.

  • miniImageNet: GcGPN variants outperform baselines like PN+ and DFSLwoF, particularly on the challenging Joint-Joint accuracy and harmonic mean metrics. For instance, on the 1-shot task, GcGPN achieves competitive results, and on the 5-shot task, it is competitive with DFSLwoF.
  • CUB: GcGPN significantly outperforms state-of-the-art methods on both 1-shot and 5-shot tasks, showing substantial improvements in Joint-Joint accuracy and harmonic mean. The paper highlights that GcGPN's strength lies in its ability to consistently embed novel classes into the seen label space, as evidenced by increased Novel-Joint accuracy.
  • Ablation studies: The use of auxiliary operators and splitting the graph into blocks (seen-seen, seen-novel, etc.) generally improves performance. The paper also shows that even a simple GcGPN variant using cosine similarity between prototypes (GcGPN-cos-aux) can outperform DFSLwoF on CUB, suggesting the effectiveness of the graph-convolutional framework itself.

Limitations and Future Work

  • Quality of side information: The paper notes that the performance of GcGPN heavily relies on the quality and relevance of the side information used to construct the relational graph.
  • Future Work: The authors suggest further analysis and comparison of different types of operators for defining inter-class relationships. They also propose exploring new sources of side information to further enhance the benefits of semantic operators for few-shot learning.

Summary updated

BibTeX
@inproceedings{shi2020relational,
  author = {Xiahan Shi and Leonard Salewski and Martin Schiegg and Max Welling},
  title = {{Relational Generalized Few-Shot Learning}},
  booktitle = {BMVC},
  year = {2020},
}
Figure