NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Rethinking Zero-Shot Learning: A Conditional Visual Classification Perspective

Kai Li, Martin Renqiang Min, Yun Fu

Abstract

Zero-Shot Learning (ZSL) traditionally relies on mapping visual features to a semantic space, often leading to a loss of discriminative power. This paper proposes a paradigm shift, treating ZSL as a conditional visual classification problem where a generator produces visual classifiers directly from class attributes. This approach preserves high-dimensional feature variance and achieves state-of-the-art performance across major benchmarks in both conventional and generalized ZSL settings.

Introduction

Zero-Shot Learning (ZSL) aims to recognize objects from classes that were never seen during training, relying instead on semantic descriptions (like "has wings" or "is furry"). Traditionally, researchers treated ZSL as a mapping problem, attempting to project visual features into a semantic attribute space (or vice versa). However, the authors identify three major flaws in this approach:

  1. Loss of Discriminative Power: Projecting high-dimensional visual features (e.g., from ResNet-101) into a lower-dimensional semantic space destroys the fine-grained details needed to distinguish similar classes.
  2. The Hubness Problem: In high-dimensional spaces, certain points tend to become "hubs" for many other points, leading to frequent misclassifications.
  3. Ignoring Competition: Standard ZSL often ignores the inter-class competition that is fundamental to how classification actually works.

Proposed Methodology

The authors introduce a framework that treats ZSL as a classification task where the classifier itself is conditioned on attributes.

Overview of the proposed conditional visual classification framework, illustrating the classifier weight generation network $f$ and matrix concatenation for generalized ZSL.

The core components of this framework include:

  • Classifier Generator ($f$): A deep neural network that takes a class's semantic attribute vector as input and outputs a weight vector (a "prototype") for a visual classifier.
  • Cosine Similarity Score: Instead of the standard dot product, the model uses cosine similarity to compare visual features with generated class weights. This normalizes the weights, leading to more stable Softmax activations.
  • Episode-Based Training: Borrowing from meta-learning, the model is trained on simulated ZSL tasks to force the generator to learn how to produce effective classifiers for novel categories.
  • Transductive ZSL (Self-Training): When unlabeled test images are available, a "Learning-without-Forgetting" mechanism uses a Generalized Cross-Entropy loss to calibrate the generator using pseudo-labeled test data without losing original class knowledge.

Experimental Setup and Results

The approach was evaluated on five standard ZSL benchmarks: CUB (fine-grained birds), AwA1 & AwA2 (animals), SUN (scenes), and aPY (diverse objects). The proposed method achieved significant performance gains across the board:

  • Conventional ZSL: On AwA2, the model reached 71.1% accuracy, beating the previous best by about 4%.
  • Generalized ZSL (GZSL): The model showed remarkable robustness in the Harmonic Mean (H) score. For the aPY dataset, the unseen class accuracy was nearly 100% higher than the second-best method.
  • Transductive ZSL: By utilizing unlabeled test data, the model reached an H-score of 88.4% on AwA1.

Analysis and Key Insights

A primary insight of this work is that pre-trained visual features should remain in their original high-dimensional space to retain maximum discriminability. By moving the classifier to the features rather than the other way around, the model naturally learns better inter-class separation.

t-SNE visualizations comparing (a) standard visual-to-attribute mapping, (b) the DEM baseline, (c) the proposed method, and (d) the transductive version. The proposed method shows significantly more distinct class clusters.

As shown in the t-SNE visualizations, this method produces much more "spread out" and distinct class prototypes compared to previous embedding-based methods, effectively mitigating the hubness problem and preserving the fine-grained details necessary for accurate classification.

Conclusion

By rethinking ZSL as a conditional classification problem, this work demonstrates that preserving visual feature integrity is key to high-performance zero-shot recognition. While the model is excellent at generalization, future work may address the slight "forgetfulness" regarding global class structure observed in some GZSL settings.

Summary updated

BibTeX
@inproceedings{li2019rethinking,
  author = {Kai Li and Martin Renqiang Min and Yun Fu},
  title = {{Rethinking Zero-Shot Learning: A Conditional Visual Classification Perspective}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  doi = {10.1109/iccv.2019.00368},
}
Figure