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

Learning Graph-Based Priors for Generalized Zero-Shot Learning

Colin Samplawski, Jannik Wolff, Tassilo Klein, Moin NabiarXiv 2020

Abstract The task of zero-shot learning (ZSL) requires correctly predicting the label of samples from classes which were unseen at training time. This is achieved by leveraging side information about class labels, such as label attributes or word embeddings. Recently, attention has shifted to the more realistic task of generalized ZSL (GZSL) where test sets consist of seen and unseen samples. Recent approaches to GZSL have shown the value of generative models, which are used to generate samples from unseen classes. In this work, we incorporate an additional source of side information in the form of a relation graph over labels. We leverage this graph in order to learn a set of prior distributions, which encourage an aligned variational autoencoder (VAE) model to learn embeddings which respect the graph structure. Using this approach we are able to achieve improved performance on the CUB and SUN benchmarks over a strong baseline.

Introduction

Zero-Shot Learning (ZSL) challenges models to recognize objects from classes never encountered during training, typically by utilizing semantic side information like attribute vectors. Generalized ZSL (GZSL) extends this to a more realistic setting where the evaluation set contains both seen and unseen classes. While generative models like Variational Autoencoders (VAEs) have become a standard tool for synthesizing features of unseen classes, they often treat class labels as independent entities. This paper addresses the oversight of relational structure between classes—such as hierarchical taxonomies—by integrating graph-based structural knowledge directly into the generative process.

Methodology

The proposed approach builds upon the CADA-VAE (Cross-Alignment and Distribution-Alignment VAE) framework. While standard VAEs typically map data to a latent space governed by a simple uninformative prior, $\mathcal{N}(0, I)$, this work introduces Learning Graph-Based Priors.

The proposed model architecture integrates a relation graph over labels to learn class-specific prior distributions, facilitating better alignment between image and attribute modalities.

The core innovation involves treating the latent space like a map where the "territories" (priors) are pre-defined by the relationships between classes:

  1. Graph-Structured Latent Space: Every node in a class hierarchy—including seen classes, unseen classes, and internal "superclass" nodes—is assigned its own Gaussian distribution in the latent space.
  2. Max-Margin Ranking Loss: A ranking objective ensures that classes proximal in the graph are also close in the latent space, while unrelated classes are pushed apart.
  3. End-to-End Prior Learning: The parameters for these class-specific priors are predicted by the attribute encoder, allowing the model to dynamically "shape" the latent space based on the graph structure.
  4. Implicit Alignment: By regularizing both image and attribute features toward these graph-informed priors, the model achieves superior cross-modal alignment.

Experiments and Results

The model was evaluated on the CUB (Caltech-UCSD Birds) and SUN (Scene UNderstanding) benchmarks. Performance was measured using the Harmonic Mean (H) of seen and unseen class accuracies to ensure balanced generalization.

On CUB, which features a dense tree-structured hierarchy, the model achieved an H-score of 54.6, significantly improving over the CADA-VAE baseline of 52.4. On the SUN dataset, which utilizes a sparser Directed Acyclic Graph (DAG), the model reached an H-score of 41.2 (baseline: 40.6).

t-SNE visualization demonstrating that the model successfully clusters fine-grained species around their respective hierarchical supercategory nodes (e.g., Larinae, Sterninae).

Qualitative analysis via t-SNE visualizations confirms that the latent space respects the provided hierarchy. Species are naturally clustered around their respective "anchor" superclass nodes (e.g., various gulls clustering near the "Larinae" node), which helps the model generalize the concept of broader categories to specific unseen instances.

Discussion and Conclusion

The results highlight the importance of graph "richness"; the denser hierarchy of CUB provided more significant gains than the sparser SUN graph. This suggests that the quality of the relational prior is a key performance bottleneck. Future work may explore more complex relationships beyond simple "is-a" hierarchies, such as "part-of" or environmental context, and investigate the scalability of this approach to larger datasets like ImageNet. By treating the latent space as a structured map rather than an empty field, this method provides a robust framework for leveraging human-defined knowledge in generative zero-shot learning.

Summary updated

BibTeX
@misc{samplawski2020learning,
  author = {Colin Samplawski and Jannik Wolff and Tassilo Klein and Moin Nabi},
  title = {{Learning Graph-Based Priors for Generalized Zero-Shot Learning}},
  year = {2020},
  eprint = {2010.11369},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.11369},
}
Figure