Preserving Semantic Relations for Zero-Shot Learning

Yashas Annadani, Soma Biswas

Introduction

Zero-Shot Learning (ZSL) addresses the challenge of classifying objects from categories not seen during training. This is typically achieved by leveraging semantic descriptions, such as attribute lists or Word2Vec embeddings, to bridge the gap between seen and unseen classes. Conventional methods map visual and semantic features into a shared space. However, they often face a trade-off: mapping visual features to semantic space preserves category relationships but suffers from the "hubness" problem—where a few points become universal nearest neighbors. Conversely, mapping semantic features to visual space alleviates hubness but often loses the structured semantic relationships (e.g., the similarity between a horse and a zebra).

Methodology

The proposed approach utilizes an encoder-decoder Multilayer Perceptron (MLP) architecture to map semantic class embeddings into the visual feature space. The core innovation lies in explicitly preserving semantic relationships—categorized as identical, similar, or dissimilar—within this mapping.

Encoder-Decoder architecture mapping semantic embeddings to the visual space while preserving class relationships.

The model optimizes a custom objective function with three components:

  1. Identical & Dissimilar Loss ($O_1$): Maximizes similarity for same-class features while minimizing it for dissimilar classes using adaptive scaling.
  2. Similar Class Loss ($O_2$): Ensures semantically similar classes remain close in the visual space, but with a bound to prevent them from becoming indistinguishable.
  3. Reconstruction Loss ($O_3$): A decoder reconstructs the original semantic embedding from the visual space to ensure structural integrity.

Training is facilitated by an online "tuple mining" strategy, which samples triplets of identical, similar, and dissimilar features to avoid local minima.

Experiments and Results

The model was evaluated on five standard ZSL benchmarks: SUN, AWA2, CUB, aPY, and a large-scale ImageNet evaluation. Visual features were extracted using ResNet-101, following the proposed splits by Xian et al. to prevent data leakage.

Comparison of Top-1 accuracy (%) on standard ZSL benchmarks against state-of-the-art methods.

As shown in the results table, the proposed method achieves state-of-the-art Top-1 accuracy on SUN (61.4%), AWA2 (63.8%), and CUB (56.0%). In the more challenging Generalized ZSL (GZSL) setting, the method demonstrates significant gains, particularly on unseen classes, achieving a harmonic mean of 32.3% on AWA2 and 33.9% on CUB.

Key Insights

  • Directional Mapping: Mapping from semantic to visual space effectively mitigates the hubness problem, enhancing the reliability of nearest-neighbor searches during inference.
  • Bounded Similarity: By bounding the similarity of related classes in the visual space to their original semantic similarity, the model prevents class "collisions," maintaining discriminative power.
  • Semantic Inference: The well-structured embedding space allows for "approximate inference" on unknown images. Even without explicit class labels, the model can identify semantic neighbors (e.g., identifying an unknown bird as similar to a "Prairie Chicken").

Conclusion and Limitations

While the proposed method significantly improves performance on unseen classes in GZSL, its accuracy on seen classes can sometimes lag behind methods that overfit to the training distribution. Future research could explore more complex relational definitions beyond simple cosine similarity to further refine the semantic-visual mapping.

Summary updated

BibTeX
@inproceedings{annadani2018preserving,
  author = {Yashas Annadani and Soma Biswas},
  title = {{Preserving Semantic Relations for Zero-Shot Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  url = {https://openreview.net/forum?id=HJVBs2-dZr},
}
Figure