Task-Independent Knowledge Makes for Transferable Representations for Generalized Zero-Shot Learning

Chaoqun Wang, Xuejin Chen, Shaobo Min, Xiaoyan Sun, Houqiang Li

Abstract

Generalized Zero-Shot Learning (GZSL) requires models to recognize unseen categories using only semantic attributes as a guide. However, standard GZSL models often suffer from representation bias, becoming "addicted" to the specific visual features of seen classes and failing to generalize to new ones. This paper introduces the Dual-Contrastive Embedding Network (DCEN), which balances task-specific semantic alignment with self-supervised "instance discrimination." By learning to distinguish individual images regardless of their category, the model develops more flexible, transferable visual representations. DCEN achieves significant performance gains across standard benchmarks, often outperforming complex generative models.

Introduction

Generalized Zero-Shot Learning (GZSL) is a challenging frontier in computer vision: a model must recognize objects from categories seen during training while simultaneously identifying categories it has never encountered. To bridge this gap, models typically rely on text-based attributes (e.g., "has wings," "is yellow") to relate seen and unseen classes.

The core challenge in this field is representation bias. Most GZSL methods focus exclusively on aligning images with their class attributes. Because the model only observes a limited set of classes (e.g., "Lion" or "Tiger") during training, it learns visual features that are highly specific to those categories. When it encounters an unseen "Leopard," its internal representation is often too narrow to recognize the new object effectively. The authors argue that effective GZSL requires task-independent knowledge—general visual cues like textures and shapes that are useful for any object, regardless of whether the model has a label for it.

Conceptual overview of Semantic Alignment and Instance Discrimination in the embedding space.

Methodology

The proposed Dual-Contrastive Embedding Network (DCEN) addresses representation bias through two primary modules that work in tandem to create a robust embedding space.

The Dual-Contrastive Embedding Network (DCEN) architecture.

1. Visual Contrastive Module (VCM)

This module focuses on acquiring task-independent knowledge through instance discrimination. Rather than grouping images by class, the VCM treats every single image as its own unique category. Using contrastive learning techniques (similar to MoCo), the model learns that different augmentations (crops or rotations) of the same image should be close in the embedding space, while different images should be distinct. This forces the visual encoder to capture low-level visual invariants that are not tied to specific class labels, preventing overfitting to seen-class boundaries.

2. Semantic Contrastive Module (SCM)

The SCM handles task-specific knowledge by aligning visual features with semantic attributes. It employs two key strategies:

  • Cross-Modal Triplets: This ensures an image representation is pulled toward its correct attribute vector and pushed away from the most confusing incorrect ones.
  • Masked Attribute Prediction: The model is tasked with reconstructing missing parts of a class attribute vector using only the image features. This forces the visual encoder to "hunt" for specific semantic details (like a "yellow beak") within the raw pixels, bridging the gap between abstract text and visual data.

Key Results and Insights

The researchers evaluated DCEN on four standard GZSL benchmarks: CUB (birds), AWA2 (animals), aPY (diverse objects), and SUN (scenes). DCEN achieved an average improvement of 4.1% in the Harmonic Mean ($H$) score across these benchmarks compared to previous state-of-the-art non-generative methods.

Notably, DCEN often outperformed generative methods that use GANs to synthesize features for unseen classes. For example, on the CUB dataset, DCEN achieved an $H$-score of 70.4%, surpassing several high-profile generative models. This is significant because DCEN is simpler to train and avoids the stability issues inherent in GAN-based architectures.

The Role of Self-Supervision

A striking insight from this work is that self-supervised instance discrimination acts as a powerful regularizer. It prevents the model from collapsing its visual understanding into the high-level concepts of seen classes. However, the authors found a clear trade-off: if instance discrimination is pushed too aggressively, performance drops. There is a "sweet spot" where the model maintains enough general visual flexibility to generalize while remaining accurate enough to class labels to perform the primary task.

Conclusion

DCEN demonstrates that task-independent visual knowledge is a critical component for transferable representations in GZSL. By combining self-supervised instance discrimination with semantic alignment, the model mitigates representation bias without the need for complex generative synthesis. While improvements were less dramatic on sparse datasets like SUN, the overall success of DCEN suggests that self-supervision is a vital tool for building robust zero-shot learners.

Summary updated

BibTeX
@inproceedings{wang2021task,
  author = {Chaoqun Wang and Xuejin Chen and Shaobo Min and Xiaoyan Sun and Houqiang Li},
  title = {{Task-Independent Knowledge Makes for Transferable Representations for Generalized Zero-Shot Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i3.16375},
}
Figure