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

Semantic Autoencoder for Zero-Shot Learning

Elyor Kodirov, Tao Xiang, Shaogang Gong

Introduction

Zero-Shot Learning (ZSL) represents a significant frontier in computer vision, aiming to recognize object classes that were never encountered during the training phase. For instance, a model might be expected to identify a "zebra" based solely on its knowledge of "horses" and a semantic description stating that a zebra resembles a horse with stripes. Traditionally, ZSL models learn a mapping from a high-dimensional visual feature space to a lower-dimensional semantic space, such as manually defined attributes or word vectors.

However, these models frequently encounter the projection domain shift problem. Because the mapping is learned exclusively on "seen" classes, the resulting transformation is inherently biased toward them. Consequently, when visual features of "unseen" classes are projected at test time, they often fall into incorrect regions of the semantic space, leading to misclassification.

The Semantic Autoencoder (SAE) Framework

To address this challenge, the authors propose the Semantic Autoencoder (SAE). This framework utilizes an autoencoder architecture where the latent space is explicitly constrained to be the semantic space. Unlike standard autoencoders that learn an arbitrary latent representation, the SAE forces the encoder to project visual features ($X$) into a predefined semantic space ($S$).

The Semantic Autoencoder (SAE) architecture, mapping visual features to a semantic space and back.

The Reconstruction Constraint

The core innovation of the SAE is the addition of a reconstruction constraint. The model consists of an encoder that maps $X$ to $S$ using a weight matrix $W$, and a decoder that projects $S$ back to the visual space $\hat{X}$ using the transpose $W^T$. This bidirectional mapping ensures that the semantic representation preserves the essential information from the original visual signal. By requiring the model to "decode" the semantic features back into visual features, the reconstruction constraint acts as a powerful regularizer, preventing the model from overfitting to the specific visual nuances of the training classes and improving generalization to unseen categories.

Efficient Optimization

Efficiency is a hallmark of the SAE. The training objective is formulated as a linear model with tied weights, leading to a Sylvester equation ($AW + WB = C$). This formulation allows the model to be solved using standard numerical methods like the Bartels-Stewart algorithm. Remarkably, this makes the training time independent of the number of samples, allowing the model to scale effortlessly to massive datasets.

Experimental Results

The SAE was rigorously evaluated against six major benchmarks, ranging from small-scale datasets like Animals with Attributes (AwA) and CUB-200-2011 Birds to large-scale challenges like ImageNet.

Comparison of SAE against state-of-the-art ZSL methods on small-scale and large-scale datasets.

Performance and Speed

As shown in the comparative results, the SAE consistently outperformed existing ZSL models across all datasets. On the large-scale ImageNet-2 dataset, it achieved an 8.8% improvement in accuracy over the previous state-of-the-art. Beyond accuracy, the computational efficiency of the SAE is unparalleled; training on the AwA dataset took a mere 1.3 seconds, whereas competing models required anywhere from 16 seconds to over 20 minutes.

Conclusion and Future Work

The Semantic Autoencoder demonstrates that simplicity and structural constraints can often outperform complex non-linear models in ZSL. By enforcing a reconstruction requirement, the SAE mitigates domain shift and learns more robust mappings. While the current linear implementation is highly effective, future work could explore extending this framework to deep, non-linear architectures using convolutional and deconvolutional layers. Additionally, addressing the "hubness" problem in high-dimensional spaces remains a promising avenue for further enhancing the model's discriminative power.

Summary updated

BibTeX
@inproceedings{kodirov2017semantic,
  author = {Elyor Kodirov and Tao Xiang and Shaogang Gong},
  title = {{Semantic Autoencoder for Zero-Shot Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  doi = {10.1109/cvpr.2017.473},
}
Figure