SDM-Net: A simple and effective model for generalized zero-shot learning

Shabnam Daghaghi, Tharun Medini, Anshumali ShrivastavaUAI 2021

Introduction

Zero-Shot Learning (ZSL) aims to recognize object categories that were never encountered during training. This is typically achieved by leveraging semantic descriptions (attributes) to bridge the gap between seen and unseen classes. Generalized ZSL (GZSL) presents a more rigorous challenge: at test time, the model must accurately distinguish between both seen and unseen classes simultaneously.

The primary obstacle in GZSL is the inherent bias toward seen classes. Since the model is trained exclusively on seen data, it tends to over-confidently assign unseen samples to seen categories. While many current approaches utilize complex Generative Adversarial Networks (GANs) to synthesize features for unseen classes, these methods are often unstable and computationally expensive. SDM-Net proposes a simpler, more efficient alternative using a Multi-Layer Perceptron (MLP) regularized by semantic similarity.

Methodology: Similarity Distribution Matching

The core of SDM-Net is the Similarity Distribution Matching (SDM) framework. Unlike generative models, SDM-Net uses a straightforward MLP architecture with two critical design choices:

  1. Fixed Semantic Projection: The weights of the final classification layer ($W_{output}$) are not learned. Instead, they are fixed to the pre-defined attribute vectors (A) of all classes. This forces the network to map visual features directly into a shared semantic space.
  2. SDM Loss: To mitigate bias without generating fake data, the model employs a KL-divergence loss. For a given seen class image, the model calculates its semantic similarity to all unseen classes based on their attribute vectors. The network is then trained to ensure its predicted probability distribution over unseen classes matches this "proxy" semantic distribution.
Figure 1: The SDM-Net architecture illustrating the visual-to-semantic mapping and the similarity score calculation between seen and unseen classes.

By informing the model that a "squirrel" (seen) semantically resembles a "rat" (unseen) more than a "bat" (unseen), the network learns the relative positioning of unseen classes in the feature space during the supervised training phase.

Experimental Results

SDM-Net was evaluated on five standard benchmarks: Animals with Attributes (AwA1 & AwA2), Attribute Pascal and Yahoo (aPY), Caltech-UCSD Birds (CUB), and Scene UNderstanding (SUN).

Despite its architectural simplicity, SDM-Net achieves state-of-the-art performance. On the AwA2 dataset, it reached a Harmonic Mean (H-score) of 64.7, surpassing several complex generative models. The model is particularly robust on coarse-grained datasets like aPY, where it achieved an H-score of 48.7.

Figure 2: Accuracy curves (Seen $A_S$, Unseen $A_U$, and Harmonic Mean $A_H$) across four major benchmarks as a function of the threshold parameter q.

As shown in the performance curves, SDM-Net maintains a strong balance between seen and unseen accuracy. The peak Harmonic Mean ($max A_H$) demonstrates the model's ability to generalize effectively across diverse domains, from animal recognition to scene understanding.

Key Insights and Discussion

  • The Power of Attributes: SDM-Net demonstrates that explicit feature generation is not always necessary. The relationships within the attribute space provide sufficient regularization to guide the model toward unseen categories.
  • Beyond Entropy Minimization: While previous non-generative models attempted to reduce bias by minimizing entropy (forcing a choice among unseen classes), SDM-Net provides a more nuanced supervised signal by matching the specific semantic distribution.
  • Efficiency and Scalability: As a simple MLP, SDM-Net is significantly faster to train and easier to tune than GAN-based architectures, making it a highly practical solution for real-world GZSL applications.

Conclusion and Future Work

SDM-Net proves that a well-regularized simple network can match or exceed the performance of complex generative frameworks in GZSL. While the model is highly effective, it remains dependent on high-quality attribute annotations. Future research may explore extending this similarity-matching approach to less structured side information, such as natural language descriptions or large-scale knowledge graphs.

Summary updated

BibTeX
@inproceedings{daghaghi2021sdm,
  author = {Shabnam Daghaghi and Tharun Medini and Anshumali Shrivastava},
  title = {{SDM-Net: A simple and effective model for generalized zero-shot learning}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2021},
}
Figure