Introduction
Zero-Shot Classification (ZSC) is a challenging task that involves recognizing objects from novel categories not seen during training. This is typically achieved by transferring knowledge from seen categories using auxiliary semantic information, such as attribute vectors or word embeddings. However, a significant yet often overlooked hurdle in ZSC is the inherent class imbalance found in real-world datasets. These datasets frequently follow a long-tailed distribution, where a few majority classes dominate while many minority classes have very few samples.
In standard deep learning, class imbalance leads to poor performance on rare classes. In the context of ZSC, this problem is amplified: if an unseen class (e.g., "bat") relies on semantic similarities to a sample-scarce seen class (e.g., "weasel"), the model fails to learn the necessary features for successful knowledge transfer. This paper introduces the Semantics-Guided Class Imbalance Learning Model (SCILM) to address this critical intersection of class imbalance and zero-shot generalization.
Methodology: The SCILM Framework
To prevent majority classes from overwhelming the learning process, SCILM employs a novel training paradigm centered on class-balanced batching and a dual-network architecture for robust prototype generation.
1. Class-Balanced Batching
Rather than standard random sampling, SCILM utilizes a strategy where an identical number of images ($n$, typically between 10 and 30) are selected from every training class to form a mini-batch. This ensures that every category, regardless of its total sample count in the dataset, exerts equal influence on the model's gradient updates.
2. Dual-Network Architecture
The model consists of two primary components designed to refine visual representations using semantic guidance:
- Semantic Embedding Network (SEN): Projects class-level semantic features into the visual feature space to establish a "class semantic prototype."
- Semantic Attention Network (SAN): To mitigate the impact of noisy visual samples (e.g., images with cluttered backgrounds), the SAN calculates the cosine similarity between individual sample features and the semantic prototype. It assigns higher weights to semantically relevant images, producing a "semantics-guided class visual prototype."
3. Prototype Fusion
The final representation for a class is a fusion of the simple average visual prototype (capturing global diversity) and the semantics-guided prototype (filtering noise). This hybrid approach ensures the model learns features that are both diverse and semantically consistent.
Experimental Evaluation
The authors evaluated SCILM on three benchmark datasets known for their imbalanced distributions: AwA1 (Animals with Attributes 1), AwA2, and aPY (Attribute Pascal and Yahoo). While the model was also tested on balanced datasets like CUB and SUN, the primary gains were observed in these long-tailed scenarios.
Key Results
SCILM demonstrates superior performance across both Traditional (TZSC) and Generalized (GZSC) settings. In TZSC, it outperformed the baseline Deep Embedding Model (DEM) by up to 4.1%. In the more realistic GZSC setting, SCILM achieved state-of-the-art results, particularly improving the Harmonic mean (H) metric by 5.3% on the aPY dataset.
Beyond accuracy, SCILM offers massive efficiency gains. By extracting highly representative prototypes in every batch, the model converges significantly faster. For instance, on the AwA1 dataset, SCILM reached convergence in approximately 26 minutes (2,500 iterations), whereas the baseline DEM required nearly 1.8 hours (300,000 iterations).
Discussion and Conclusion
A core insight of this work is that minority classes are often the "weak links" in zero-shot knowledge transfer. By forcing the model to pay equal attention to these classes and using semantic information to filter visual noise, SCILM drastically improves generalization to unseen categories.
While the model shows a slight trade-off in accuracy for seen classes in some settings, its ability to rapidly and effectively learn from imbalanced data makes it a robust solution for real-world ZSC applications. Future research will focus on dynamically optimizing hyperparameters, such as the number of samples per batch, to further refine the balance between seen and unseen class performance.
Summary updated