Model Selection for Generalized Zero-Shot Learning

Hongguang Zhang, Piotr Koniusz

TL;DR

This paper introduces ModelSel, a novel framework for Generalized Zero-shot Learning (GZSL) that uses a "divide and conquer" strategy. By training a specialized selector to distinguish between seen and unseen classes using GAN-generated data, the authors decompose the complex GZSL task into simpler, disjoint classification problems, achieving state-of-the-art results across major benchmarks.

What Problem Does This Paper Address?

In traditional Zero-shot Learning (ZSL), a model is trained on "seen" classes (e.g., cats and dogs) and tested only on "unseen" classes (e.g., zebras) using semantic attributes like "has stripes." However, Generalized Zero-shot Learning (GZSL) is much harder: the test set contains a mix of both seen and unseen classes.

The core challenge is data imbalance. Because the model only sees real images of "seen" classes during training, it develops a strong bias, often misclassifying unseen objects as seen ones. While Generative Adversarial Networks (GANs) can synthesize "fake" images for unseen classes to help balance the training set, simply throwing this synthetic data into a standard classifier isn't always enough to overcome the inherent confusion at the decision boundaries.

Methods

The authors propose a Model Selection Mechanism (ModelSel). Instead of training one giant classifier for all classes, they use a multi-stage pipeline:

  1. Data Generation: They use a GAN to generate auxiliary (synthetic) features for unseen classes based on their semantic attributes.
  2. The Selector ($M_{sel}$): This is a binary classifier (a linear SVM) trained to distinguish between real "seen" data and synthetic "unseen" data. It acts as a gatekeeper.
  3. Specialized Experts:
    • $M_s$: A classifier trained only on seen classes.
  4. $M_u$: A classifier trained only on synthetic unseen classes.
  5. $M_t$: A joint classifier trained on both.

The authors propose three ways to combine these:

  • ModelSel-2Way: A "hard switch." If the selector thinks a sample is "seen," it goes to $M_s$; otherwise, it goes to $M_u$.
  • ModelSel-2Way-SA (Soft Assignment): Uses a Sigmoid function to weight the outputs of $M_s$ and $M_u$ based on the selector's confidence, reducing errors near the decision boundary.
  • ModelSel-3Way: Uses the joint classifier ($M_t$) as a "mask" to correct the specialists ($M_s$ and $M_u$) in regions where the selector is uncertain.

Datasets

The models were evaluated on four standard GZSL benchmarks using the "proposed splits" (a protocol designed to ensure no overlap between training data and test classes):

  • AWA1 & AWA2 (Animals with Attributes): Images of 50 animal classes with 85 attributes.
  • CUB (Birds): (Though mentioned in general GZSL contexts, the primary results here focus on AWA, APY, and FLO).
  • APY (Attribute Pascal and Yahoo): 32 classes with 64 attributes.
  • FLO (Flower102): 102 flower categories.

Key Insights and Ideas

  • The Gatekeeper Advantage: The most significant "aha" moment is that GAN-generated data is highly effective for training a selector. Even if synthetic features aren't perfect for final classification, they are distinct enough from real features to help a model learn the boundary between "known" and "unknown" domains.
  • Decomposition over Integration: Rather than forcing a single model to learn a massive, unbalanced label space, breaking the problem into "Is it new?" followed by "What is it?" significantly reduces the negative influence of the seen-class bias.
  • Handling Uncertainty: The "Soft Assignment" (SA) variant proves that the transition between seen and unseen isn't binary. Modeling the uncertainty of the selector helps prevent catastrophic misclassifications at the boundary.

Key Results

The ModelSel variants consistently outperformed previous state-of-the-art methods like f-CLSWGAN.

  • AWA1: Achieved a harmonic mean ($H$) of 62.4%, a 2.8% improvement over f-CLSWGAN.
  • AWA2: Achieved 63.7%, a 3.6% improvement.
  • APY: Showed a massive jump in performance, reaching 42.3% compared to the 20.5% of previous kernel-based methods (ZSKL).
  • FLO: Reached 66.4%, proving the method scales well to datasets with a high number of classes.

Limitations and Future Work

  • Dependence on GAN Quality: The performance of the selector ($M_{sel}$) and the unseen expert ($M_u$) is heavily dependent on the quality of the GAN-generated features. If the GAN produces unrealistic features, the gatekeeper will fail.
  • Attribute Quality: Like all ZSL methods, this relies on high-quality, manually annotated attributes. Moving toward purely automated discovery of semantic relations (e.g., using only word embeddings) remains a challenge.
  • Computational Overhead: Training and running multiple classifiers (Selector + Experts) is more computationally expensive than a single joint model, though the authors argue the accuracy gains justify the cost.

Summary updated

BibTeX
@inproceedings{zhang2018model,
  author = {Hongguang Zhang and Piotr Koniusz},
  title = {{Model Selection for Generalized Zero-Shot Learning}},
  booktitle = {Workshops @ ECCV},
  year = {2018},
  url = {https://openreview.net/forum?id=SyZFEcb_WB},
}
Figure