Generalized Zero-Shot Recognition Based on Visually Semantic Embedding

Pengkai Zhu, Hanxiao Wang, Venkatesh Saligrama

Abstract

We propose a novel Generalized Zero-Shot learning (GZSL) method that is agnostic to both unseen images and unseen semantic vectors during training. Prior works in this context propose to map high-dimensional visual features to the semantic domain, which we believe contributes to the semantic gap. To bridge the gap, we propose a novel low-dimensional embedding of visual instances that is "visually semantic." Analogous to semantic data that quantifies the existence of an attribute in the presented instance, components of our visual embedding quantifies existence of a prototypical part-type in the presented instance. In parallel, as a thought experiment, we quantify the impact of noisy semantic data by utilizing a novel visual oracle to visually supervise a learner. These factors, namely semantic noise, visual-semantic gap and label noise lead us to propose a new graphical model for inference with pairwise interactions between label, semantic data, and inputs. We tabulate results on a number of benchmark datasets demonstrating significant improvement in accuracy over state-of-art under both semantic and visual supervision.

Introduction

Zero-Shot Learning (ZSL) aims to recognize objects from classes never seen during training by leveraging "semantic side information," such as attribute lists (e.g., "has wings," "is yellow"). Generalized ZSL (GZSL) presents a more realistic and challenging scenario where the model must identify both seen and unseen classes at test time.

A fundamental challenge in GZSL is the Visual-Semantic Gap. Standard approaches often attempt a direct mapping from high-dimensional visual features (e.g., from a ResNet) to semantic space. However, this is problematic because abstract deep features are difficult to align with human-defined attributes, and many attributes are not visually discriminative or are shared across distinct classes, leading to ambiguity.

Proposed Methodology

Visually Semantic Embedding (VSE)

To address the visual-semantic gap, we introduce a low-dimensional embedding of visual instances that is "visually semantic." Instead of using global features, our model employs a Multi-Attention CNN (MA-CNN) to identify specific object parts. Each part is modeled as a mixture of prototypical part-types, learned via a Gaussian Mixture Model.

Overview of the VSE framework bridging the visual-semantic gap.

This approach creates a probabilistic representation: just as an annotator might specify a bird has "yellow wings," our model learns that an image contains "Part-Type A" in the "Wing Region" with a certain probability. This low-dimensional structure mirrors the organization of semantic attributes, making the mapping more robust.

The 3-Node Graphical Model

Traditional models often assume a linear dependency: $Input (X) \to Semantic (S) \to Label (Y)$. This assumes the semantic signal is a perfect intermediary. Given that semantic data is often noisy or incomplete, we propose a 3-node clique where $X, S,$ and $Y$ all interact.

The proposed graphical model with pairwise interactions between visual input (X), label (Y), and semantic data (S).

This pairwise interaction allows the model to utilize visual information ($X$) that may not be captured by text-based attributes ($S$) to directly inform the label prediction ($Y$).

The Visual Oracle (VOS)

As a thought experiment to quantify the impact of semantic noise, we developed a Visual Oracle (VOS). By replacing human-provided attributes with "perfect" visual part-scores, we established an upper-bound performance limit, demonstrating that the quality of attribute data is a significant bottleneck in current ZSL research.

Experimental Results

We evaluated our method on three standard benchmarks: CUB (fine-grained birds), AWA2 (animals), and aPY (diverse objects). Our proposed method, Ours(S), significantly outperformed previous state-of-the-art (SOTA) methods in the GZSL setting, measured by the Harmonic Mean (H) of seen and unseen class accuracies.

Dataset Previous SOTA (H) Ours(S) (H) Improvement
CUB 46.6% (SP-AEN) 48.4% +1.8%
AWA2 37.1% (SP-AEN) 57.2% +20.1%
aPY 22.6% (SP-AEN) 36.6% +14.0%

Notably, when using the Visual Oracle (Ours-Π), performance increased further (e.g., to 60.2% on AWA2), confirming that reducing semantic noise is critical for progress.

Conclusion

By bridging the visual-semantic gap through a low-dimensional part-type embedding and adopting a cyclic graphical model, we achieve substantial gains in GZSL performance. Our findings suggest that the field's current limitations are tied to the quality of semantic supervision, and future work should focus on more visually meaningful attribute descriptions.

Summary updated

BibTeX
@inproceedings{zhu2019generalized,
  author = {Pengkai Zhu and Hanxiao Wang and Venkatesh Saligrama},
  title = {{Generalized Zero-Shot Recognition Based on Visually Semantic Embedding}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  url = {https://openreview.net/forum?id=v6jPplqTxRs},
}
Figure