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

Zero-Shot Learning via Latent Space Encoding

Yunlong Yu, Zhong Ji, Jichang Guo, Zhongfei, ZhangarXiv 2017

TL;DR

This paper introduces Latent Space Encoding (LSE), a novel framework for Zero-Shot Learning (ZSL) that connects visual and semantic modalities through an implicitly learned, shared latent space. By abandoning explicit, unidirectional projection functions in favor of a symmetric encoder-decoder architecture, LSE effectively mitigates the "hubness problem" and seamlessly scales to incorporate multiple modalities.

What Problem Does This Paper Address?

Zero-Shot Learning (ZSL) aims to recognize objects from unseen categories by transferring knowledge from seen classes using semantic descriptions (like human-defined attributes or text-derived word vectors). Traditionally, ZSL models rely on explicit projection functions to map features from one modality to another (e.g., projecting visual features into a semantic attribute space).

However, finding an optimal explicit mapping between highly distinct spaces is incredibly difficult. Discriminative models that map visual features to semantic spaces often suffer from the hubness problem, where a few unseen class prototypes become nearest neighbors for a disproportionately large number of test instances. Generative models try to invert this process but can still struggle to preserve the unique characteristics of each modality. Furthermore, standard approaches do not easily scale when researchers want to combine multiple semantic or visual modalities.

Methods

Instead of forcing a direct mapping between modalities, LSE uses matrix decomposition to project both visual and semantic features into a common, feature-aware latent space.

Fig. 1. (a) and (b) are two existing standard ZSL models. Both models learn a projection function to connect different modalities. (c) illustrates the basic component of our LSE model. Each modality is fed into a constrained encoder-decoder framework to learn a latent space. (d) details the flowchart of LSE model for ZSL. Different modalities are enforced to share the same latent space to learn the common semantic characteristics. Semantic features of all candidate classes are then encoded in the visual space to classify test instances by comparing the compatibility scores between the test instances and all candidate classes.

Key components of the method include:

  • Symmetric Encoder-Decoder Structure: For each modality, the framework jointly maximizes the recoverability of the original space from the latent space and the predictability of the latent space from the original space. The encoding and decoding matrices are constrained to be symmetric, reducing the number of parameters and enabling a closed-form optimization solution.
  • Shared Latent Codings: To align the modalities, features from different modalities that represent the same concept are forced to share identical latent representations.
  • Closed-Form Optimization: The objective function is elegantly transformed into an eigenvalue problem, allowing for global optimization.
  • Fast-LSE Variant: Because standard eigenvalue decomposition scales with the number of training instances, the authors introduce a "fast-LSE" variant. This approach averages the visual features of each class into a single prototype during training, dramatically increasing computational speed without sacrificing accuracy.

Datasets

The authors evaluated LSE across four widely recognized benchmarks:

  • Animals with Attributes (AwA): 30,475 images across 50 animal classes, using 85-dimensional attribute vectors.
  • Caltech-UCSD Birds 2011 (CUB): A fine-grained dataset of 11,788 images across 200 bird species, utilizing 312 attributes.
  • aPascal-aYahoo (aPY): A combined dataset featuring 2,644 images across 32 classes with 64 binary attributes.
  • ImageNet: A massive dataset using 1,000 seen classes for training and 360 unseen classes for testing, relying on 1,000-dimensional word vectors.

Key Insights and Ideas

  • Implicit Alignment Wins: By avoiding an explicit projection function, LSE reduces the risk of choosing an inappropriate mapping architecture, allowing the data's underlying semantic structure to drive the alignment.
  • The Power of Multimodal Fusion: LSE naturally accommodates more than two modalities. The authors found that combining human-annotated attributes with unsupervised word vectors yields significantly better performance than using either alone. This demonstrates that different semantic spaces offer complementary information.
  • Visual Space Classification Alleviates Hubness: In the testing phase, LSE projects the unseen semantic class prototypes back into the visual space to perform classification. This directional choice helps bypass the hubness issue that plagues visual-to-semantic mapping.

Key Results

LSE was tested across three distinct zero-shot paradigms: Traditional ZSL (TZSL), Generalized ZSL (GZSL), and Zero-Shot Retrieval (ZSR).

  • Traditional ZSL: LSE achieved state-of-the-art performance on the attribute datasets. For instance, it reached 55.4% accuracy on the challenging CUB dataset using VGG features, outperforming its closest competitor by over 5%. On the massive ImageNet dataset, LSE achieved a Top@5 accuracy of 27.4%, surpassing established baselines like DeViSE and ConSE.
  • Generalized ZSL: In the highly realistic GZSL setting (where the test set contains both seen and unseen classes), LSE demonstrated superior robustness. In the critical Unseen-Total (U-T) scenario, LSE outperformed the second-best methods by 6.9% on AwA, 6.2% on CUB, and 15.7% on aPY.
  • Zero-Shot Retrieval: LSE consistently outperformed competitors, yielding an average Mean Average Precision (mAP) of 53.4% across the benchmark datasets, beating the closest competitor (MFMR) by 4.4%.

Limitations and Future Work

While the standard LSE model provides robust global optimization, its training complexity scales with the number of training instances due to the eigenvalue decomposition step. Although the "fast-LSE" variant effectively mitigates this issue by averaging class features, it potentially discards fine-grained intra-class variance during the training phase.

Moving forward, the authors suggest extending the LSE framework to adjacent computer vision tasks such as saliency detection, person re-identification, and medical image analysis. They also plan to explore ZSL under weak or self-paced supervision to progressively incorporate training instances from easy to hard.

Summary updated

BibTeX
@misc{yu2017zero,
  author = {Yunlong Yu and Zhong Ji and Jichang Guo and Zhongfei and Zhang},
  title = {{Zero-Shot Learning via Latent Space Encoding}},
  year = {2017},
  eprint = {1712.09300},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1712.09300},
}
Figure