Transferable Contrastive Network for Generalized Zero-Shot Learning

Huajie Jiang, Ruiping Wang, Shiguang Shan, Xilin Chen

Abstract

Generalized Zero-Shot Learning (GZSL) presents a significant challenge in computer vision: recognizing both seen (source) and unseen (target) classes at test time. Traditional approaches often suffer from domain shift, where models overfit to source classes and fail to generalize. This paper introduces the Transferable Contrastive Network (TCN), a framework designed to explicitly bridge this gap by learning a flexible contrastive metric that captures both discriminative and transferable properties across class boundaries.

Introduction

In standard Zero-Shot Learning (ZSL), a model is tasked with identifying objects from categories it has never seen during training, typically by relating visual features to semantic descriptions (e.g., attributes or word embeddings). Generalized Zero-Shot Learning (GZSL) extends this by requiring the model to handle a search space containing both seen and unseen classes simultaneously.

The primary hurdle in GZSL is the tendency of models to become "blind" to target classes, misclassifying them as similar-looking source classes. As shown in Figure 1, TCN addresses this by distinguishing between the discriminative property (identifying exact matches within source classes) and the transferable property (identifying similarities between source images and target class semantics).

Conceptual overview of TCN, distinguishing between discriminative properties for source classes and transferable properties for target classes.

Methodology

The TCN architecture is composed of two primary modules: Information Fusion and Contrastive Learning.

Information Fusion

The model extracts visual features from images using a pre-trained ResNet101 CNN ($f$) and processes class semantic vectors through a Multi-Layer Perceptron ($g$). Rather than employing a simple distance metric, TCN fuses these two modalities using an element-wise product ($\otimes$). This creates a joint representation $Z$ that encapsulates the alignment between visual evidence and semantic definitions.

Contrastive Learning

Instead of relying on fixed geometric distances like Euclidean or Cosine similarity, TCN utilizes a neural network ($h$) to learn a Contrastive Value ($V$). This value acts as a consistency score: a value near 1 indicates a match, while a value near 0 indicates a mismatch. This learnable metric allows the model to capture complex, non-linear relationships that fixed metrics often miss.

The TCN architecture, illustrating the Information Fusion of visual and semantic features followed by the Contrastive Learning network to produce consistency values.

The Transferable Loss

The core innovation of TCN is the Transferable Loss ($L_T$). Since target class images are unavailable during training, the authors utilize class-level similarities to create "pseudo-labels." For instance, if a "Horse" (source) is semantically similar to a "Zebra" (target), the model is penalized if it does not assign a high contrastive value when a Horse image is paired with Zebra semantics. This forces the network to learn features that are useful for cross-class generalization.

Experimental Results

The authors evaluated TCN across five benchmark datasets: APY, AWA1, AWA2, CUB, and SUN. The performance was measured using the Harmonic Mean (H), which balances accuracy across both seen and unseen classes.

  • AWA1: TCN achieved a state-of-the-art H-score of 60.0%, significantly outperforming previous methods like GAZSL (43.8%).
  • CUB: On this fine-grained bird dataset, TCN reached an H-score of 52.3%, demonstrating its ability to distinguish between highly similar species.
  • Balanced Performance: Unlike many baseline models that achieve high source accuracy but near-zero target accuracy, TCN maintained a robust balance (e.g., 49.4% target vs. 76.5% source on AWA1).

Conclusion

The Transferable Contrastive Network provides a robust solution to the domain shift problem in GZSL. By replacing fixed distance metrics with a learnable contrastive network and explicitly supervising the transfer of knowledge via class similarities, TCN achieves superior generalization. Future work may involve integrating TCN with generative models to further enhance performance on coarse-grained datasets where semantic similarities are less distinct.

Summary updated

BibTeX
@inproceedings{jiang2019transferable,
  author = {Huajie Jiang and Ruiping Wang and Shiguang Shan and Xilin Chen},
  title = {{Transferable Contrastive Network for Generalized Zero-Shot Learning}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  doi = {10.1109/iccv.2019.00986},
}
Figure