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

Episode-Based Prototype Generating Network for Zero-Shot Learning

Yunlong Yu, Zhong Ji, Jungong Han, Zhongfei Zhang

Abstract

Zero-Shot Learning (ZSL) aims to recognize objects from categories never encountered during training by leveraging semantic descriptions. A major hurdle in ZSL is the "domain shift" problem, where models overfit to seen classes and fail to generalize to unseen ones. This paper introduces the Episode-based Prototype Generating Network (E-PGN), a novel framework that tackles domain shift through an episode-based meta-learning paradigm and a bidirectional generative model. By simulating the experience of seeing new classes during training, E-PGN aligns visual and semantic features more effectively, setting new state-of-the-art benchmarks in Generalized Zero-Shot Learning (GZSL).

The Challenge: Domain Shift in Zero-Shot Learning

The core difficulty in ZSL is teaching a system to recognize a novel category (e.g., a "Zebra") based solely on a text description (e.g., "striped horse-like animal") and prior knowledge of related categories (e.g., "Horses"). In Generalized Zero-Shot Learning (GZSL), where the test set includes both seen and unseen classes, models are notoriously biased toward seen classes. Existing generative methods attempt to synthesize training data for unseen classes, but these often suffer from instability and "mode collapse."

Proposed Methodology: E-PGN

The E-PGN framework introduces two primary innovations to improve cross-modal alignment and generalization.

Episode-based Training Paradigm

Borrowing from few-shot meta-learning, the authors implement an episode-based training strategy. Instead of training on the entire seen dataset simultaneously, each training episode involves a random split of seen classes into a support set (acting as "seen" classes) and a refining set (acting as "fake unseen" classes). This "mimetic" approach forces the model to repeatedly practice adapting to new categories, capturing more discriminative transfer knowledge.

Overview of the E-PGN episode-based training framework, illustrating the interaction between support and refining sets to simulate unseen class recognition.

Prototype Generating Network (PGN)

The PGN architecture focuses on robust feature alignment through:

  • Bidirectional Mapping: Unlike unidirectional models, PGN employs two generators ($F$ and $G$) to map visual features to semantic space and vice versa.
  • Adversarial Alignment: A modified Wasserstein GAN (WGAN) ensures that synthesized visual prototypes and inferred semantic features are indistinguishable from real data.
  • Multi-modal Cross-Entropy (MCE) Loss: This novel loss function maximizes the affinity between images and their corresponding class prototypes in both visual and semantic spaces. It allows the generator to act as an efficient discriminative classifier without adding extra parameters.
The PGN architecture featuring bidirectional generators (G and F) and a discriminator (D) for adversarial alignment of visual and semantic features.

Experimental Results

E-PGN was evaluated on four standard ZSL benchmarks: Animals with Attributes (AwA1 & AwA2), Caltech-UCSD Birds (CUB), and Oxford Flowers (FLO).

Key Performance Metrics

The model outperformed existing state-of-the-art (SOTA) methods, particularly in the GZSL setting. The Harmonic Mean (H), which balances accuracy on seen and unseen classes, saw significant improvements:

  • AwA1: +7.1% improvement in H-score.
  • FLO: +8.2% improvement in H-score.

Importantly, E-PGN maintained high performance on seen classes while significantly boosting unseen class accuracy, indicating a successful mitigation of the bias toward training data. Ablation studies confirmed that both the episode-based framework and the MCE loss are critical components of this success.

Insights and Future Directions

The "aha moment" of E-PGN is its mimetic strategy: the best way to prepare for unseen classes is to practice on "fake" unseen classes during training. This approach, combined with bidirectional consistency, creates a robust bridge between visual and semantic modalities.

While highly effective, the model's performance is sensitive to hyperparameters, such as the number of refining classes per episode. Future work may explore extending this episode-based framework to other cross-modal tasks, such as video recognition or image retrieval, and investigating different distance metrics to further optimize the learned manifold.

Summary updated

BibTeX
@inproceedings{yu2020episode,
  author = {Yunlong Yu and Zhong Ji and Jungong Han and Zhongfei Zhang},
  title = {{Episode-Based Prototype Generating Network for Zero-Shot Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.01405},
}
Figure