Zero-shot Learning with Class Description Regularization

Shayan Kousha, Marcus A. BrubakerarXiv 2021

Abstract

The purpose of generative Zero-shot learning (ZSL) is to learning from seen classes, transfer the learned knowledge, and create samples of unseen classes from the description of these unseen categories. To achieve better ZSL accuracies, models need to better understand the descriptions of unseen classes. We introduce a novel form of regularization that encourages generative ZSL models to pay more attention to the description of each category. Our empirical results demonstrate improvements over the performance of multiple state-of-the-art models on the task of generalized zero-shot recognition and classification when trained on textual description-based datasets like CUB and NABirds and attribute-based datasets like AWA2, aPY and SUN.

Introduction

Zero-Shot Learning (ZSL) addresses the challenge of recognizing objects from categories not encountered during training. For instance, a model might be required to identify a "Snowy Owl" having only seen other bird species and a textual description of the owl. Recent advancements in "generative" ZSL utilize Generative Adversarial Networks (GANs) to synthesize visual features for these unseen classes based on their semantic descriptions.

However, current generative models face two significant hurdles:

  1. Lack of Diversity: Synthesized samples for unseen classes often lack variance and tend to cluster near "seen" class distributions.
  2. Semantic Drift: Efforts to differentiate unseen samples from seen ones often result in features that deviate from the actual class description (e.g., generating a blue bird when the text specifies a "yellow beak").

This paper introduces Description Generator Regularized ZSL (DGRZSL), a framework designed to ensure that the generator pays closer attention to the fine-grained details within class descriptions.

Methodology: The DGRZSL Framework

DGRZSL builds upon standard GAN-based ZSL architectures by introducing a Semantic Representation (SR) network. This network acts as a "backwards" mapping mechanism, effectively creating a cycle-consistency constraint.

The DGRZSL architecture showing standard (top) and hallucinated (bottom) training paths.

Visual-to-Semantic Feedback

While the primary Generator ($G$) maps a class description to visual features, the SR network maps visual features back to the semantic space (text or attributes). The model is optimized using a new loss function ($L_{SR}$) that encourages the SR network to correctly identify semantic traits across three data types:

  • Real visual features from seen classes.
  • Generated visual features from seen classes.
  • "Hallucinated" visual features created from interpolated class descriptions.

Hallucination as Augmentation

To improve generalization, the model creates "hallucinated" classes by blending existing descriptions (e.g., a hybrid of 60% Albatross and 40% Seagull). The generator is then tasked with creating visual features that match these hybrid descriptions, which the SR network must then be able to reconstruct. This process forces the generator to produce images containing specific, discriminative traits mentioned in the descriptions.

Experiments and Results

The researchers evaluated DGRZSL on both text-based datasets (CUB and NABirds) and attribute-based datasets (AWA2, SUN, and aPY). They employed a rigorous evaluation protocol using disjoint validation sets to ensure fair performance assessment.

Performance comparison of DGRZSL against state-of-the-art baselines on CUB and NAB datasets.

Key Findings

  • Attribute Datasets: On the aPY dataset, DGRZSL achieved a 9.4% increase in Top-1 accuracy and a 17.26% improvement in the Seen-Unseen Harmonic mean (H-score) over previous state-of-the-art methods like GAZSL and CIZSL.
  • Text Datasets: As shown in the results table, DGRZSL consistently outperforms baselines in Top-1 accuracy and Seen-Unseen AUC on the "easy" splits of CUB and NAB.
  • Robustness: The method demonstrates efficacy across both structured attributes and unstructured natural language, suggesting that the SR regularization is a versatile tool for generative ZSL.

Conclusion

DGRZSL introduces a powerful regularization technique that mitigates semantic drift and improves the fidelity of synthesized features in generative ZSL. By forcing a visual-to-semantic mapping, the model ensures that the generator captures the essential details of class descriptions. While challenges remain in extremely fine-grained "hard" splits, the modular nature of this regularization suggests it could be successfully integrated into other generative architectures, such as Diffusion models or VAEs, in future work.

Summary updated

BibTeX
@misc{kousha2021zero,
  author = {Shayan Kousha and Marcus A. Brubaker},
  title = {{Zero-shot Learning with Class Description Regularization}},
  year = {2021},
  eprint = {2106.16108},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.16108},
}
Figure