Bidirectional Mapping Coupled GAN for Generalized Zero-Shot Learning

Tasfia Shermin, Shyh Wei Teng, Ferdous Sohel, M. Manzur Murshed, Guojun LuIEEE TIP 2020 · DOI

TL;DR

This paper introduces BMCoGAN, a novel Generative Adversarial Network (GAN) architecture for Generalized Zero-Shot Learning (GZSL). BMCoGAN addresses the challenge of recognizing unseen object categories by learning a joint distribution between seen and unseen classes through bidirectional mapping and incorporating a Wasserstein GAN for improved feature synthesis, leading to state-of-the-art performance.

What Problem Does This Paper Address?

Traditional supervised learning models require labeled data for all categories they need to classify. However, in many real-world scenarios, we encounter object categories for which no labeled training data is available (e.g., rare species, new product types). Zero-Shot Learning (ZSL) aims to overcome this by enabling models to recognize unseen classes based on auxiliary information, typically semantic attributes. Generalized Zero-Shot Learning (GZSL) is a more realistic setting where the model must classify both seen (trained on) and unseen classes during testing.

Existing GZSL methods often struggle with two main issues:

  1. Learning the joint distribution of seen and unseen domains: Many methods focus on learning the distribution of seen data, neglecting the available semantic information of unseen classes. This leads to a poor understanding of the overall data landscape.
  2. Bias towards seen classes: Models tend to perform much better on seen classes than unseen ones, a common problem in GZSL. This bias arises from the imbalance in training data and the model's tendency to rely on familiar patterns.

This paper tackles these challenges by proposing a method that learns the joint distribution of seen and unseen domains and simultaneously preserves discriminative information to reduce bias towards seen classes.

Methods

The core of the proposed method is the Bidirectional Mapping Coupled Generative Adversarial Network (BMCoGAN). It builds upon the Coupled GAN (CoGAN) architecture, which is known for its ability to learn joint distributions of multiple domains. BMCoGAN extends CoGAN in several key ways:

  • Bidirectional Mapping: Instead of a one-way mapping from semantics to visuals, BMCoGAN implements a bidirectional mapping. This involves:
  • A shared generator (G) that synthesizes visual features from class semantics (both seen and unseen).
  • Two separate regressors (Rs and Ru) that reconstruct class semantics from the generated visual features. This ensures a strong coupling between the visual and semantic spaces.
  • Joint Distribution Learning: BMCoGAN aims to learn the joint distribution of seen and unseen domains. This is achieved through:
  • Adversarial training with coupled discriminators (Ds and Du): These discriminators learn to distinguish between real and reconstructed class semantics, forcing the generator and regressors to produce semantically consistent outputs.
  • Wasserstein Generative Adversarial Optimization: This is used to supervise the generation of seen visual features, ensuring they are indistinguishable from real seen features.
  • Preserving Domain Discrimination: To mitigate bias towards seen classes and enhance discrimination, BMCoGAN incorporates specific loss functions:
  • Push-Pull Loss (La): This loss encourages generated seen features to be closer to real seen features, while pushing generated unseen features away from real seen features.
  • Classifier Loss (Lcls): A pre-trained seen-class classifier is used to enrich the discriminative characteristics of the generated features.
  • Center Loss (L(D, C)): This loss helps group seen classes by their centers, further maintaining distance between seen and unseen classes.

The entire model is trained end-to-end.

Datasets

The proposed BMCoGAN is evaluated on four widely used GZSL benchmark datasets:

  • Caltech-UCSD Birds-200-2011 (CUB): Focuses on fine-grained bird species.
  • SUN Attribute (SUN): Contains scene images with attributes.
  • Animals with Attributes 1 (AWA1): Features animal images with attributes.
  • Animals with Attributes 2 (AWA2): Another dataset of animal images with attributes.

The paper follows standard splits for source (seen) and target (unseen) classes on these datasets. No new datasets were introduced.

Key Insights and Ideas

  • Bidirectional mapping is crucial for strong visual-semantic coupling: The paper strongly advocates for mapping in both directions (semantics to visuals and visuals back to semantics) to create a robust connection between the two modalities, which is vital for GZSL.
  • Leveraging unseen class semantics is key: Unlike many prior methods that only focus on seen data distributions, BMCoGAN explicitly utilizes the semantic attributes of unseen classes to learn a more comprehensive joint distribution.
  • Adversarial training for semantic reconstruction improves feature quality: Using coupled discriminators to ensure reconstructed semantics match real semantics provides a powerful supervisory signal for the generator.
  • A dedicated "push-pull" loss effectively reduces seen-class bias: The proposed loss function directly encourages the model to differentiate between seen and unseen features, a critical step for balanced GZSL performance.
  • Shared generator architecture is beneficial for GZSL: The paper argues that a fully shared generator for both seen and unseen domains, conditioned on class semantics, is more effective than partially shared generators for GZSL tasks.

Key Results

BMCoGAN demonstrates superior performance across the evaluated datasets, particularly outperforming contemporary bidirectional mapping GZSL methods.

  • Harmonic Mean (H): BMCoGAN consistently achieves higher harmonic mean scores (a key GZSL metric balancing seen and unseen accuracy) compared to state-of-the-art methods on CUB, SUN, AWA1, and AWA2 datasets.
  • Accuracy (U and S): The method also shows improved unseen (U) accuracy and competitive seen (S) accuracy.
  • 1-NN vs. Softmax: The 1-NN classifier variant of BMCoGAN generally performs better than the softmax variant, suggesting that the learned feature space is more amenable to distance-based classification.
  • Number of Synthesized Features: The performance generally increases with the number of synthesized features per class, with an optimal range of 400-600 features for most datasets.

Limitations and Future Work

  • Hyperparameter Sensitivity: The performance of BMCoGAN is influenced by several hyperparameters (λ₁, λ₂, λd, λcls, λcen), requiring careful tuning. The paper provides analysis and optimal settings for the CUB dataset.
  • Dataset Dependency: While BMCoGAN shows strong results, the optimal number of synthesized features can vary by dataset.
  • Future Work: The paper suggests that BMCoGAN can be applied to other image processing tasks like image/video classification or recognition. Further exploration into optimizing hyperparameter tuning and exploring more advanced generator architectures could be future directions.

Summary updated

BibTeX
@article{shermin2020bidirectional,
  author = {Tasfia Shermin and Shyh Wei Teng and Ferdous Sohel and M. Manzur Murshed and Guojun Lu},
  title = {{Bidirectional Mapping Coupled GAN for Generalized Zero-Shot Learning}},
  journal = {IEEE Transactions on Image Processing},
  year = {2020},
  doi = {10.1109/tip.2021.3135480},
}
Figure