Abstract
Zero-shot learning (ZSL) has gained popularity due to its potential to scale recognition models without requiring additional training data. This is usually achieved by associating categories with their semantic information like attributes. However, we believe that the potential offered by this paradigm is not yet fully exploited. In this work, we propose to utilize the structure of the space spanned by the attributes using a set of relations. We devise objective functions to preserve these relations in the embedding space, thereby inducing semanticity to the embedding space. Through extensive experimental evaluation on five benchmark datasets, we demonstrate that inducing semanticity to the embedding space is beneficial for zero-shot learning. The proposed approach outperforms the state-of-the-art on the standard zero-shot setting as well as the more realistic generalized zero-shot setting. We also demonstrate how the proposed approach can be useful for making approximate semantic inferences about an image belonging to a category for which attribute information is not available.
Introduction
Zero-Shot Learning aims to recognize objects from categories that were never seen during training. This is typically achieved by using "attributes" (e.g., "has stripes," "is furry") as a bridge between seen and unseen classes. However, two major hurdles persist in current ZSL research:
- The Hubness Problem: When mapping high-dimensional visual features to a semantic attribute space, a few points (hubs) often become the "nearest neighbors" for almost everything, ruining classification accuracy.
- Loss of Semantic Structure: To avoid hubness, some researchers map attributes to the visual space instead. However, the visual space often lacks the rich, organized relationships found in the semantic space. If two animals are semantically similar, their learned embeddings should reflect that similarity; otherwise, the model struggles to generalize to novel, related categories.
Proposed Framework
The authors propose an encoder-decoder multilayer perceptron (MLP) framework designed to learn a mapping from the attribute space (semantic) to the image feature space (visual) while explicitly preserving three specific types of relations: identical, semantically similar, and semantically dissimilar.
The Quadruplet Approach
For every class embedding, the model samples a "tuple" of visual features to enforce structure:
- $x_i$ (Identical): An image from the same class.
- $x_j$ (Similar): An image from a class with high attribute overlap.
- $x_k$ (Dissimilar): An image from a class with low attribute overlap.
Objective Functions
The model is trained using a combined loss function ($O$) consisting of three parts:
- $O_1$ (Identical/Dissimilar): Pulls the embedding toward images of the same class and pushes it away from dissimilar classes.
- $O_2$ (Similar): A hinge-loss style objective that ensures similar classes stay within a specific "similarity range"—close enough to share traits, but far enough apart to remain discriminative.
- $O_3$ (Reconstruction): A decoder attempts to reconstruct the original attributes from the mapped embedding. This acts as a regularizer, ensuring the mapping doesn't lose the original semantic information.
Experimental Results
The approach was evaluated on five major benchmarks (SUN, AWA2, CUB, aPY, and ImageNet) using the "Proposed Split" (PS) protocol. The results demonstrate that mapping semantic attributes to the visual space is the most effective way to mitigate the "hubness" problem.
- Standard ZSL: The model achieved state-of-the-art (SOTA) performance, reaching 61.4% on SUN and 63.8% on AWA2, surpassing previous leaders like ALE and DEVISE.
- Generalized ZSL (GZSL): In this more realistic setting where the test set contains both seen and unseen classes, the model achieved a Harmonic Mean (H) of 26.7% on SUN and 32.3% on AWA2, significantly outperforming existing methods.
- Large-Scale Evaluation: On ImageNet, the model consistently outperformed the SYNC algorithm across various degrees of separation in the WordNet hierarchy.
Semantic Inference and Qualitative Analysis
By explicitly enforcing semantic relations, the model "inherits" the logic of the attribute space. This allows for approximate semantic inference: even if attributes for a new category are unavailable, the model can infer semantic properties by observing which known class embeddings an image lands near.
As shown in the qualitative results, the model can accurately identify that an unknown bird (Aegypiidae) is semantically similar to a Vulture or a Prairie Chicken, while being dissimilar to a Cannon.
Conclusion
This work demonstrates that inducing semanticity into the visual embedding space by preserving attribute-based relations is highly beneficial for ZSL. While the model excels at generalization, there remains a trade-off between performance on seen and unseen categories in the GZSL setting. Future research may explore more complex, hierarchical relations to further refine the embedding space and bridge this gap.
Summary updated