Abstract
Zero-Shot learning has been shown to be an efficient strategy for domain adaptation. In this context, this paper builds on the recent work of Bucher et al. [1], which proposed an approach to solve Zero-Shot classification problems (ZSC) by introducing a novel metric learning based objective function. This objective function allows to learn an optimal embedding of the attributes jointly with a measure of similarity between images and attributes. This paper extends their approach by proposing several schemes to control the generation of the negative pairs, resulting in a significant improvement of the performance and giving above state-of-the-art results on three challenging ZSC datasets.
Introduction
Zero-Shot Classification (ZSC) is a challenging computer vision task where a model must identify objects from classes it has never seen during training. This is typically achieved by mapping images and semantic attributes (e.g., "has wings", "is furry") into a shared mathematical space. While recent work has successfully applied metric learning to this problem, these models often rely on random negative pairs during training. Random negatives are frequently too easy for the model to distinguish, failing to provide the gradients necessary to learn subtle differences between similar classes, such as a Husky versus a Wolf.
Methodology
This research introduces "hard negative mining" to the ZSC metric learning framework. By selecting more informative negative examples, the model is forced to sharpen its decision boundaries. Three primary strategies for selecting negative pairs ($D_-$) were developed:
- Random (n): A baseline that increases the negative-to-positive ratio by selecting $n$ random negatives per positive sample.
- Uncertainty: An active learning-inspired strategy that selects negative pairs the model currently finds most "confusing" (i.e., those with high similarity scores despite belonging to different classes).
- Uncertainty/Correlation: This strategy adds a correlation term to prioritize negative attribute vectors that are highly representative of their actual class, ensuring the model learns from robust class representations rather than outliers.
To maintain stability given the high ratio of negative to positive samples, the authors adapted the objective function to weight losses based on the frequency of each pair type.
Experimental Results
The proposed methods were evaluated on four standard ZSC benchmarks: aP&Y, Animals with Attributes (AwA), CUB-200-2011, and SUN Attribute, using VGG-VeryDeep-19 features.
As shown in the table above, the hard negative mining strategies achieved state-of-the-art performance on three of the four datasets. Notably, the model achieved a +9% accuracy boost on the AwA dataset compared to the previous metric learning baseline [1].
Key Insights
Hard negative mining provides two critical advantages over random sampling:
- Sharper Decision Boundaries: The "Uncertainty" strategy forces the model to focus on the thin line between correct matches and near-misses, leading to higher final accuracy.
- Accelerated Learning: The "Uncertainty/Correlation" strategy significantly speeds up training. By focusing on representative class attributes, the model learns the essential differences between classes much faster.
As illustrated in the figure above, the Correlation-aware version converges up to 4x faster than the random baseline while consistently achieving higher accuracy across the training process.
Conclusion and Limitations
While hard negative mining significantly improves ZSC performance, some limitations remain. The "Uncertainty/Correlation" method cannot be applied to datasets like AwA that provide only class-level attributes, as there is no intra-class correlation to measure. Additionally, extremely fine-grained tasks like bird species identification (CUB) remain challenging, suggesting that visual similarity in these domains may require even more specialized architectural interventions. Nonetheless, the proposed mining strategies represent a significant step forward in robust cross-modal metric learning.
Summary updated