Zero-Shot Visual Recognition Using Semantics-Preserving Adversarial Embedding Networks

Long Chen, Hanwang Zhang, Jun Xiao, Wei Liu, Shih-Fu Chang

Abstract

Zero-Shot Learning (ZSL) aims to recognize objects from classes never seen during training by leveraging shared semantic attributes. A major hurdle in ZSL is "semantic loss," where models learn to discard non-discriminative attributes that may be vital for identifying unseen categories. This paper introduces the Semantics-Preserving Adversarial Embedding Network (SP-AEN), which tackles this issue by forcing the classification model to retain descriptive details. By integrating a reconstructive image generator and an adversarial discriminator, SP-AEN ensures that semantic embeddings are sufficiently rich to reconstruct photo-realistic images. Experimental results on four benchmark datasets demonstrate that SP-AEN achieves state-of-the-art performance in both standard and generalized ZSL settings.

Introduction

The core challenge of Zero-Shot Learning is bridging the gap between visual features and semantic descriptions. Most existing methods map images into a semantic space, but they often suffer from semantic loss. During training, a classifier naturally optimizes to ignore attributes that do not help distinguish between seen classes. For instance, if all training bird species have wings, the model might stop detecting wings entirely. However, at test time, distinguishing a bird from a non-bird might require that very attribute. SP-AEN proposes that reconstruction—the ability to rebuild an image from its embedding—can act as a safeguard against this information loss.

Methodology

The SP-AEN architecture disentangles the semantic space into two specialized branches to balance classification and reconstruction:

  1. Classification Subspace ($E$): A ResNet-101 based encoder that maps images to semantic embeddings optimized for class identification.
  2. Reconstructive Subspace ($F$): An independent encoder that maps images to embeddings optimized for image reconstruction.
  3. Generator ($G$): A decoder that takes reconstructive embeddings and generates photo-realistic images, proving semantic preservation.
  4. Adversarial Discriminator ($D$): To prevent the classification encoder from losing information, the discriminator tries to distinguish between classification and reconstructive embeddings. Through adversarial training, the classification encoder is forced to produce embeddings as descriptive as those from the reconstructive branch.
The SP-AEN architecture featuring classification (E), reconstructive (F), and generative (G) components linked by an adversarial discriminator (D).

The model is trained with a multi-part loss function: ranking loss for classification, pixel-level and perceptual loss for reconstruction, and a WGAN-style adversarial loss to align the two subspaces.

Key Results

SP-AEN was evaluated on four standard ZSL benchmarks: CUB (birds), SUN (scenes), AWA (animals), and aPY (objects). The model significantly outperformed previous state-of-the-art methods, particularly in Generalized Zero-Shot Learning (GZSL), where the model must identify both seen and unseen classes at test time. It achieved absolute harmonic mean improvements of 12.2% on CUB and 9.3% on AWA compared to previous top-tier methods.

Beyond numerical metrics, the qualitative results provide strong evidence for the effectiveness of semantics preservation. As shown below, SP-AEN produces much clearer and more recognizable image reconstructions compared to previous methods like Semantic Autoencoders (SAE), which often result in blurry, non-descriptive outputs.

Qualitative comparison of image reconstructions across different models. SP-AEN consistently produces more recognizable and detailed images than baselines.

Conclusion

By treating reconstruction as a semantic safeguard, SP-AEN effectively mitigates the semantic loss problem in zero-shot learning. The adversarial transfer of descriptive power from the reconstructive branch to the classification branch allows the model to generalize better to unseen classes. Future work may explore hallucinating images for unseen classes to further enhance data augmentation in generative ZSL frameworks.

Summary updated

BibTeX
@inproceedings{chen2018zero,
  author = {Long Chen and Hanwang Zhang and Jun Xiao and Wei Liu and Shih-Fu Chang},
  title = {{Zero-Shot Visual Recognition Using Semantics-Preserving Adversarial Embedding Networks}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  doi = {10.1109/cvpr.2018.00115},
}
Figure