Transductive Zero-Shot Learning by Decoupled Feature Generation

Federico Marmoreo, Jacopo Cavazza, Vittorio Murino

Abstract

In this paper, we address zero-shot learning (ZSL), the problem of recognizing categories for which no labeled visual data are available during training. We focus on the transductive setting, in which unlabelled visual data from unseen classes is available. State-of-the-art paradigms in ZSL typically exploit generative adversarial networks to synthesize visual features from semantic attributes. We posit that the main limitation of these approaches is to adopt a single model to face two problems: 1) generating realistic visual features, and 2) translating semantic attributes into visual cues. Differently, we propose to decouple such tasks, solving them separately. In particular, we train an unconditional generator to solely capture the complexity of the distribution of visual data and we subsequently pair it with a conditional generator devoted to enrich the prior knowledge of the data distribution with the semantic content of the class embeddings. We present a detailed ablation study to dissect the effect of our proposed decoupling approach, while demonstrating its superiority over the related state-of-the-art.

Introduction

Zero-Shot Learning (ZSL) aims to recognize objects from categories that were never seen during training by leveraging semantic attributes, such as textual descriptions or manually annotated properties. In the transductive setting, models also have access to unlabeled visual data from these unseen classes during the training phase.

Existing state-of-the-art methods typically employ Generative Adversarial Networks (GANs) to synthesize visual features for unseen classes. However, these models often struggle because a single generator is tasked with two distinct challenges: learning the complex distribution of realistic visual features and learning the mapping from abstract semantic attributes to those features. We argue that this coupling leads to sub-optimal performance and propose a decoupled architecture called DecGAN.

The DecGAN Architecture

DecGAN splits the feature generation process into two specialized branches to handle visual complexity and semantic mapping independently.

The DecGAN architecture consists of an unconditional branch for visual priors and a conditional branch for semantic enrichment, linked by a cross-branch mechanism.
  1. Unconditional Branch: This branch focuses exclusively on the visual data distribution. It learns to generate a "structured prior"—a visual sketch that captures the complexity of real-world features without class-specific constraints.
  2. Conditional Branch: This branch receives the structured prior from the unconditional branch and enriches it with semantic content from class embeddings. This allows the model to learn the specific mapping from attributes (e.g., "yellow wings") to visual patterns more effectively.
  3. Cross-Branch Mechanism: To facilitate transductive learning, DecGAN utilizes a cross-branch mechanism. Since unseen classes lack labels, the unconditional discriminator is used to evaluate the quality of features generated for these classes, ensuring they align with the overall visual domain even without explicit class supervision.

Three-Stage Training Strategy

To maximize the benefits of decoupling, we propose a three-stage training strategy that progressively adapts the model to unseen classes.

The three-stage training strategy for DecGAN: initial training on seen classes, adaptation of the visual prior to unseen data, and final semantic refinement.
  • Stage 1: Both branches are trained using labeled data from seen classes to establish a baseline for feature generation and semantic mapping.
  • Stage 2: The unconditional branch is fine-tuned using unlabeled data from unseen classes. This allows the "structured prior" to adapt to the specific visual characteristics of the new domain.
  • Stage 3: The conditional generator is fine-tuned on unseen data using the cross-branch mechanism, reinforcing its ability to translate semantic attributes into the newly adapted visual space.

Experimental Results

We evaluated DecGAN on three standard ZSL benchmarks: Oxford Flowers (FLO), SUN Attribute (SUN), and Caltech-UCSD Birds (CUB). All experiments utilized 2048-dimensional features from a pre-trained ResNet-101 backbone.

DecGAN achieved state-of-the-art results in the Generalized Zero-Shot Learning (GZSL) setup, measured by the harmonic mean (H) of seen and unseen class accuracies:

  • CUB: Achieved 63.4%, outperforming previous transductive methods like f-VAEGAN-D2.
  • SUN: Achieved 49.9%, a significant improvement over the previous state-of-the-art of 47.5%.
  • Ablation Study: Our results confirmed that decoupling is essential; a non-decoupled baseline performed significantly worse (e.g., 59.9% vs. 63.4% on CUB).

Conclusion

By decoupling the generation of visual features from semantic mapping, DecGAN provides a more robust framework for transductive zero-shot learning. Starting from a structured visual prior rather than random noise allows the conditional branch to focus on the nuances of semantic translation. This approach not only achieves state-of-the-art performance but also suggests a promising direction for other generative tasks where visual and semantic complexities are intertwined.

Summary updated

BibTeX
@inproceedings{marmoreo2021transductive,
  author = {Federico Marmoreo and Jacopo Cavazza and Vittorio Murino},
  title = {{Transductive Zero-Shot Learning by Decoupled Feature Generation}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2021},
  url = {https://openreview.net/forum?id=sQ9wpqu5HJ},
}
Figure