NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Zero-shot Learning via Simultaneous Generating and Learning

Hyeonwoo Yu, Beomhee LeeNeurIPS 2019

Introduction

Zero-shot Learning (ZSL) addresses the challenge of classifying objects from categories that were never seen during training. For instance, a model might be tasked with identifying a "Zebra" after only being trained on "Horses" and being provided with the semantic attribute that a Zebra is essentially a striped horse.

Most conventional ZSL methods attempt to learn a mapping between visual features and semantic attributes using only "seen" classes. Recently, generative ZSL approaches have emerged, utilizing models like Variational Autoencoders (VAEs) or Generative Adversarial Networks (GANs) to create synthetic data for unseen classes. However, these typically follow a disjointed two-stage process: first, train the generator on seen data, and second, use it to train a separate classifier. This creates a "chicken-and-egg" problem—the generative model never truly learns the distribution of the unseen classes during its own training phase, leading to suboptimal synthetic data and downstream classification performance.

To resolve this, researchers have introduced a novel Simultaneous Generating and Learning (SGAL) strategy. By treating unseen class data as missing variables within an Expectation-Maximization (EM) framework, the model iteratively generates synthetic samples for unseen classes and updates its parameters simultaneously, allowing it to "experience" and better represent classes it has never actually seen.

Methodology: mmVAE and SGAL

The proposed architecture relies on a multi-modal Variational Auto-encoder (mmVAE) combined with the SGAL training strategy.

Overview of the mmVAE classification and SGAL training process.

The approach introduces several key innovations:

  1. Category-Specific Multi-Modal Prior: Unlike a standard VAE that uses a simple, unimodal Gaussian prior, this model employs a prior network conditioned on class attribute vectors. This ensures that the latent space is naturally clustered by category, allowing the encoder to map inputs directly to specific semantic clusters.
  2. The SGAL Strategy (EM-like approach): To overcome the lack of unseen data, the authors treat unseen datapoints as missing variables.
  3. E-step (Generating): The model generates synthetic "unseen" samples based on its current parameters and the provided semantic attributes.
  4. M-step (Learning): The model updates its parameters (encoder, decoder, and prior network) using a mix of real "seen" data and the newly generated "unseen" data.
  5. Handling Model Uncertainty: Because the model learns from its own potentially noisy generated data, it employs Dropout during the generation phase. This treats the model parameters as Bayesian random variables, effectively neutralizing uncertainty and producing more robust synthetic samples.
  6. Direct Classification: Because the encoder learns to project data into a structured latent space where class priors are known, the VAE itself acts as the classifier. It calculates the distance between a test sample's latent representation and the category-specific priors, eliminating the need for an off-the-shelf classifier like an SVM.

Experiments and Key Results

The model was evaluated on several standard ZSL benchmarks, including AwA1 & AwA2 (Animals with Attributes), CUB (fine-grained bird species), and SUN (scene recognition). The evaluation specifically focused on the Generalized Zero-shot Learning (GZSL) setting, a more realistic and challenging scenario where the test set contains both seen and unseen classes.

The SGAL method demonstrated significant improvements in the GZSL setting:

  • AwA1 Dataset: SGAL achieved a Harmonic Mean of 62.2%, significantly outperforming previous generative models like CVAE-ZSL (47.2%).
  • CUB Dataset: The model achieved 47.1% accuracy on unseen classes, a notable jump over many non-generative methods that typically struggle to break 20-30% in the GZSL setting.
t-SNE visualization demonstrating tight clustering of generated unseen classes.

Qualitatively, t-SNE visualizations confirm that the iterative refinement of the SGAL strategy results in much tighter, more distinct clusters for unseen classes compared to standard VAEs trained only on seen data.

Limitations and Future Directions

While highly effective, the SGAL approach does face some common GZSL challenges. The authors noted a "performance trade-off" where increasing the model's ability to recognize unseen classes sometimes slightly decreased its accuracy on seen classes (a phenomenon known as bias toward seen classes). Additionally, in datasets with a massive number of classes (like CUB or SUN), the multi-modal distribution for seen classes can become distorted when the model tries to force-fit many new unseen clusters into the latent space.

Future work will likely focus on refining how the model balances seen and unseen distributions to achieve even more stable training and mitigate these distortions.

Summary updated

BibTeX
@inproceedings{yu2019zero,
  author = {Hyeonwoo Yu and Beomhee Lee},
  title = {{Zero-shot Learning via Simultaneous Generating and Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure