Generative Dual Adversarial Network for Generalized Zero-shot Learning

He Huang, Changhu Wang, Philip S. Yu, Changdong Wang

TL;DR

This paper introduces Generative Dual Adversarial Network (GDAN), a novel framework that unifies three distinct approaches to generalized zero-shot learning (GZSL): semantic-to-visual mapping, visual-to-semantic mapping, and metric learning. By training these components together with cyclic consistency and dual adversarial losses, GDAN achieves state-of-the-art performance in classifying both seen and unseen classes.

What Problem Does This Paper Address?

The core challenge addressed is generalized zero-shot learning (GZSL). Traditional image classification models excel when trained on a comprehensive set of labeled data. However, in real-world scenarios, new object categories (unseen classes) emerge that the model has never encountered during training. GZSL aims to classify images from both seen (trained on) and unseen classes. A key difficulty is that during testing, the model doesn't know if an image belongs to a seen or unseen class, requiring a unified classification capability. Existing methods often focus on one of three strategies: mapping visual features to a semantic space, mapping semantic features to a visual space, or learning a direct similarity metric. Each approach has limitations, and this paper seeks to combine their strengths into a single, more robust framework.

Methods

The proposed Generative Dual Adversarial Network (GDAN) is a unified framework comprising three main components:

  • Generator (CVAE): This component, based on a Conditional Variational Autoencoder (CVAE), generates synthetic visual features conditioned on class semantic embeddings. This addresses the semantic-to-visual mapping. To mitigate CVAE's common posterior collapse issue, they disentangle the latent space and incorporate an adversarial loss.
  • Regressor (R): This network performs the inverse task of the generator, mapping visual features (both real and synthetic) back to their corresponding semantic class embeddings. This implements the visual-to-semantic mapping. It's trained with a supervised reconstruction loss and a cyclic consistency loss with the generator.
  • Discriminator (D): This component acts as a deep metric learner. It takes a pair of visual and semantic features and outputs a compatibility score, learning to evaluate how well they match. This addresses the metric learning aspect. It's trained adversarially against both the generator and the regressor, using a variation of LS-GAN for stable training.

The key innovation lies in the dual learning between the Generator and Regressor (via cyclic consistency loss) and the dual adversarial loss that allows the Regressor and Discriminator to learn from each other, in addition to the Generator learning from the Discriminator.

Datasets

The paper evaluates GDAN on four widely used benchmark datasets for GZSL:

  • SUN [24]: A dataset of scene images.
  • CUB [32]: A dataset of bird images.
  • aPY [10]: A dataset of animal images.
  • AwA2 [34]: A dataset of animal images (AwA1 is an older version).

The authors use publicly available image features and class embeddings provided by [34] and follow standard training/validation/testing splits.

Key Insights and Ideas

  • Unification is Key: The paper strongly argues that combining semantic-to-visual generation, visual-to-semantic regression, and metric learning within a single framework is more effective than any single approach. This synergy allows the model to leverage the strengths of each component.
  • Dual Learning and Adversarial Synergy: The core of GDAN's success lies in its intricate training scheme. The cyclic consistency loss between the generator and regressor ensures they learn complementary tasks. The dual adversarial loss, where the discriminator learns from both generator and regressor outputs, and vice-versa, creates a robust feedback loop for improvement.
  • Synthetic Features for GZSL: Generating realistic synthetic visual features for unseen classes is crucial. The CVAE approach, trained with adversarial guidance, proves effective in producing features that are discriminative enough for classification.
  • Balancing Seen and Unseen Classes: A significant challenge in GZSL is maintaining high accuracy on seen classes while improving performance on unseen classes. GDAN demonstrates a good balance, achieving high harmonic mean scores, indicating it doesn't sacrifice performance on one for the other.

Key Results

  • GDAN achieves state-of-the-art performance on the SUN dataset, showing significant gains in both seen and unseen class accuracy.
  • On the CUB dataset, GDAN achieves the highest accuracy for unseen classes and the highest harmonic mean score, demonstrating its ability to balance seen and unseen class performance.
  • For AwA2, GDAN outperforms several recent methods in unseen class accuracy and harmonic mean, while maintaining a competitive edge.
  • On the aPY dataset, which is noted for its challenging attribute variance, GDAN shows a substantial performance gain (16%) in unseen class accuracy, significantly outperforming previous methods.
  • Component analysis reveals that while CVAE alone performs comparably to some baselines, the Regressor and Discriminator are weak individually. However, when combined, they significantly boost performance, and training all three components together yields the best results.

Limitations and Future Work

  • Synthetic Feature Quality: While GDAN generates good synthetic features, the paper acknowledges that for some classes (e.g., "rat" in AwA2, "statue" in aPY), synthetic features are not perfectly aligned with real features. This suggests room for improvement in generating more nuanced and accurate synthetic data.
  • Hyperparameter Sensitivity: The paper mentions that the weights for different loss components ($\lambda_1, \lambda_2, \lambda_3$) are hyperparameters that generally work well but might require tuning for optimal performance on specific datasets.
  • Future Work: The authors suggest that their unified framework can be extended to other related tasks. The effectiveness of the three components working together also points towards exploring more sophisticated architectures for each individual component within this unified framework.

Summary updated

BibTeX
@inproceedings{huang2019generative,
  author = {He Huang and Changhu Wang and Philip S. Yu and Changdong Wang},
  title = {{Generative Dual Adversarial Network for Generalized Zero-shot Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  doi = {10.1109/cvpr.2019.00089},
}
Figure