Semantic Feature Extraction for Generalized Zero-shot Learning

Junhan Kim, Kyuhong Shim, Byonghyo Shim

Introduction

Generalized Zero-shot Learning (GZSL) aims to recognize objects from classes that were not seen during training. This is achieved by leveraging semantic descriptions—attributes like "striped crown" or "hooked bill"—to bridge the gap between seen and unseen categories. However, a significant challenge in GZSL is the presence of "noise" in visual features. Standard feature extractors (e.g., ResNet) capture not only the object of interest but also irrelevant background information or auxiliary objects, such as a branch or a human hand holding a specimen.

Figure 4: Examples of bird images and their associated semantic attributes. Note the presence of non-attribute information like human hands and branches which act as noise.

Methodology: The SE-GZSL Framework

To address the noise bottleneck, the researchers proposed Semantic Feature Extraction (SE-GZSL). This framework employs a dual-encoder architecture designed to disentangle attribute-related information from irrelevant visual data.

Dual-Encoder Architecture

The core of the system is a modified autoencoder that splits an input image feature $x$ into two latent components:

  1. Semantic Encoder ($E_s$): Extracts the "semantic latent vector" $z_s$, which ideally contains only information relevant to the class attributes.
  2. Residual Encoder ($E_r$): Captures the "residual latent vector" $z_r$, serving as a repository for non-semantic noise.
Figure 6: The SE-GZSL architecture. Image features are decomposed into semantic and residual components before being reconstructed by a decoder.

Optimization via Mutual Information

The separation is enforced through two primary mechanisms:

  • Mutual Information (MI) Loss: The model maximizes the dependency between $z_s$ and the class attributes while minimizing the dependency between $z_r$ and those same attributes. This ensures that $z_s$ is "purely" semantic.
  • Similarity-based Loss: This loss encourages semantic features of the same class to cluster together in the latent space, enhancing discriminative power.

Following training, a Wasserstein GAN (WGAN) is used to synthesize semantic features for unseen classes based on their attribute descriptions. These synthetic features, combined with real features from seen classes, are used to train a final GZSL classifier.

Experimental Results

The SE-GZSL model was evaluated on four benchmark datasets: AwA1, AwA2, CUB, and SUN.

Performance Gains

SE-GZSL consistently outperformed existing state-of-the-art methods. Notably, on the AwA2 and CUB datasets, the model achieved approximately a 2% improvement in harmonic mean accuracy compared to previous leaders like Disentangled-VAE. The model's strength was particularly evident in its accuracy on "unseen" classes ($acc_u$), which is often the primary failure point in GZSL tasks.

Ablation Study

Ablation experiments highlighted the critical role of the MI-based loss. For instance, on the AwA1 dataset, incorporating the MI loss resulted in a performance jump from 58.3% to 65.4% in harmonic mean accuracy. This confirms that active disentanglement is more effective than simple feature extraction.

Discussion and Future Directions

The "noise sink" strategy—explicitly providing a residual encoder for irrelevant data—proves vital for robust semantic mapping. By preventing noise from leaking into the semantic representation, the model achieves better generalization.

However, the approach remains dependent on the quality of human-annotated attributes. Future research could explore self-supervised attribute discovery or scaling this disentanglement approach to larger, more diverse datasets where manual annotation is impractical. Additionally, reducing the computational overhead of MI estimation (via InfoNCE and CLUB) remains a target for optimization.

Summary updated

BibTeX
@inproceedings{kim2022semantic,
  author = {Junhan Kim and Kyuhong Shim and Byonghyo Shim},
  title = {{Semantic Feature Extraction for Generalized Zero-shot Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i1.20002},
}
Figure