Abstract
Generalized zero-shot learning (GZSL) aims to classify samples from seen and unseen labels, assuming unseen labels are not accessible during training. Recent advancements in GZSL have been expedited by incorporating contrastive-learning-based (instance-based) embedding in generative networks and leveraging the semantic relationship between data points. However, existing embedding architectures suffer from limited discriminability of synthetic features and inflexible optimization due to restricted scaling mechanisms. To enhance representation quality, we propose a margin-based prototypical contrastive learning embedding network that reaps the benefits of prototype-data and implicit data-data interaction. Furthermore, we introduce an instance adaptive contrastive loss that leads to generalized representations for unseen labels with increased inter-class margin. Experimental evaluation shows that our method outperforms current state-of-the-art on three benchmark datasets, consistently achieving the best unseen performance in the GZSL setting.
Introduction
In traditional Zero-Shot Learning (ZSL), an AI model must recognize objects it has never seen during training by using a "semantic bridge"—such as knowing a zebra looks like a horse but has stripes. The more realistic and challenging version is Generalized Zero-Shot Learning (GZSL), where the model must identify both seen and unseen categories simultaneously.
Existing GZSL models often struggle with two primary issues. First, the "mental images" generated for unseen classes frequently overlap, making it difficult to distinguish between similar categories. Second, standard training methods treat every data point with uniform intensity, failing to prioritize "hard" examples that cause the most confusion. This paper introduces the Instance Adaptive Prototypical Contrastive Embedding (PCE-GZSL) framework to address these limitations.
The PCE-GZSL Framework
The proposed PCE-GZSL architecture consists of three integrated components designed to create sharper, more distinct boundaries between categories:
- Generative Network (WGAN): A standard generative adversarial network that "imagines" visual features for unseen classes based on their semantic attributes or text descriptions.
- Prototypical Contrastive Learning: Rather than comparing individual images in isolation, the model learns a "prototype" (a central representative point) for every class. It optimizes the embedding space such that images are pulled toward their own class prototype and pushed away from others.
- Instance Adaptive Re-scaling: Not all training samples are equally informative. This mechanism applies a larger penalty to "hard" samples—those positioned close to incorrect class boundaries—while reducing updates for "easy" samples that are already well-clustered.
- Margin-based Loss: By explicitly incorporating a mathematical "margin" into the loss function, the model demands that clusters maintain a minimum distance, preventing the entanglement common in previous embedding networks.
Experimental Results and Discussion
The model was evaluated on four benchmark datasets: AWA1 and AWA2 (Animals with Attributes), CUB (Caltech-UCSD Birds), and SUN (Scene UNderstanding). PCE-GZSL achieved state-of-the-art results across the board, particularly in the Harmonic Mean (H-score), which balances accuracy for both seen and unseen classes.
Key performance highlights include:
- New State-of-the-Art: Highest H-scores on AWA1 (70.3%), AWA2 (70.6%), and SUN (43.6%).
- Unseen Accuracy Boost: On the AWA2 dataset, accuracy for unseen classes improved by 2.7% over previous leading methods.
- Visual Clarity: t-SNE visualizations demonstrate that while previous methods produced entangled data blobs, PCE-GZSL produces tight, clearly separated clusters with visible gaps between them.
The visual comparison in the t-SNE plots confirms that the combination of prototypical learning and adaptive scaling effectively mitigates the "hubness" problem, where certain points appear as neighbors to many classes, thereby reducing the bias toward seen classes.
Conclusion
PCE-GZSL represents a significant step forward in Generalized Zero-Shot Learning by focusing on the quality and discriminability of the embedding space. While fine-grained datasets like CUB remain a challenge due to the high complexity of bird attributes, the PCE-GZSL approach offers a scalable and efficient solution for broader datasets. Future work will explore multi-modal embedding spaces to further disentangle semantic information and enhance the transparency of AI reasoning.
Summary updated