SR-GAN: Semantic Rectifying Generative Adversarial Network for Zero-shot Learning

Zihan Ye, Fan Lyu, Linyan Li, Qiming Fu, Jinchang Ren, Fuyuan Hu

TL;DR

SR-GAN introduces a novel framework for Zero-Shot Learning (ZSL) that "fixes" human-defined semantic attributes before using them to generate images. By rectifying the semantic space to better align with the discriminative structure of the visual space, the model generates more distinct visual features for unseen classes, significantly outperforming previous state-of-the-art methods in both ZSL and Generalized ZSL (GZSL) tasks.

What Problem Does This Paper Address?

Zero-Shot Learning (ZSL) aims to recognize objects from classes that were never seen during training. To do this, models rely on "semantic features"—usually human-defined attributes like "has wings," "is yellow," or "has a tail."

The core challenge is that these human-defined attributes are often vague and overlapping. For example, both a tiger and an elephant have tails and four legs; in a raw semantic space, their descriptions might be too close for a model to distinguish them effectively. When Generative Adversarial Networks (GANs) are used to synthesize visual features from these "crowded" semantic descriptions, the resulting synthetic features are often indistinguishable, leading to poor classification performance on unseen classes.

Methods

The authors propose the Semantic Rectifying Generative Adversarial Network (SR-GAN), which consists of three main stages:

  1. Semantic Rectifying Network (SRN): Before generating any images, the SRN ($R$) "rectifies" the semantic space. It learns to transform original attributes into a new space where the distances between classes mirror the distances in the visual space (using "visual pivots" or class means). This makes the semantic features more discriminative.
  2. SR-GAN Generator: A generator ($G$) takes three inputs: the original semantic feature ($s$), the rectified feature ($R(s)$), and random noise ($z$). It learns to synthesize plausible visual features for unseen classes.
  3. Pre- and Post-Reconstruction Networks: To ensure the generated features stay "true" to their labels, the authors add two consistency cycles:
  4. Pre-reconstruction ($E$): Maps visual features back to a latent space to help the generator learn the exact distribution.
  5. Post-reconstruction ($F$): Maps synthetic visual features back to their semantic origins to ensure the generator hasn't "lost the plot" during synthesis.

The entire system is trained using a combination of Wasserstein GAN loss, classification loss, and specific "rectifying" and "reconstruction" losses.

Datasets

The model was evaluated on four standard ZSL benchmark datasets:

  • AWA1 (Animals with Attributes): 30,475 images of 50 animal types.
  • CUB (Caltech-UCSD Birds-200-2011): 11,788 images of 200 bird species.
  • APY (Attribute Pascal and Yahoo): 15,339 images across 32 classes.
  • SUN (SUN Attribute): 14,340 images of 717 different scene types.

Key Insights and Ideas

  • Visual Space as a Teacher: The authors argue that the visual space is naturally more discriminative than the human-defined semantic space. By forcing the semantic space to adopt the "structure" of the visual space (via the SRN), they solve the overlap problem.
  • Dual Semantic Input: The generator doesn't just use the rectified features; it uses both the original and the rectified ones. This preserves the original human knowledge while benefiting from the new, more distinct structure.
  • Alleviating the Seen-Class Bias: In Generalized ZSL (where the test set includes both seen and unseen classes), models usually fail because they are heavily biased toward seen classes. SR-GAN’s ability to generate high-quality, distinct features for unseen classes significantly boosts their accuracy ($U$ score), leading to much higher harmonic mean ($H$) scores.

Key Results

SR-GAN achieved state-of-the-art results across the board:

  • ZSL Accuracy: On AWA1, it reached 71.97%, a significant jump over previous methods like CDL (69.9%) and GAZSL (68.2%).
  • GZSL Performance: The most impressive gains were in the "Unseen" ($U$) category of GZSL. On AWA1, SR-GAN achieved a $U$ score of 41.46%, compared to just 28.1% for the next best competitor (CDL).
  • Ablation Studies: The authors proved that the SRN was the most critical component. Adding the SRN to the baseline improved the harmonic mean on AWA1 from 48.48 to 52.22, and adding the reconstruction networks pushed it further to 55.31.

Limitations and Future Work

While the paper demonstrates strong results, a few areas remain for exploration:

  • Visual Pivot Dependency: The SRN relies on "visual pivots" (the mean of visual features for a class). If the visual features for a class have high variance or multiple modes (e.g., a "dog" class containing both Chihuahuas and Great Danes), a single mean pivot might not be sufficient.
  • Computational Complexity: The framework involves multiple networks (SRN, Generator, Discriminator, E, and F) trained in stages, which may be more computationally intensive than simpler projection-based ZSL methods.
  • Attribute Quality: The method still relies on the existence of human-defined attributes. Future work might look into rectifying purely text-based embeddings (like Word2Vec) which are even noisier than manual attributes.

Summary updated

BibTeX
@inproceedings{ye2019sr,
  author = {Zihan Ye and Fan Lyu and Linyan Li and Qiming Fu and Jinchang Ren and Fuyuan Hu},
  title = {{SR-GAN: Semantic Rectifying Generative Adversarial Network for Zero-shot Learning}},
  booktitle = {ICME},
  year = {2019},
  url = {https://openreview.net/forum?id=SQvAxuFuaQ},
}

Loading related content...

Figure