Abstract
Existing few-shot learning (FSL) methods often fail to outperform a simple nearest-neighbor baseline when scaled to thousands of classes. This paper introduces a novel approach that leverages automatically generated class hierarchies from text data to learn more transferable visual features. By employing a specialized Hierarchical Prediction Net, the proposed method sets new state-of-the-art records for both large-scale few-shot and zero-shot learning benchmarks.
Introduction
Few-shot learning (FSL) aims to recognize novel "target" objects using only a handful of labeled examples, known as "shots." While FSL has seen significant research growth, most benchmarks focus on small-scale datasets like mini-ImageNet (64 classes). This paper addresses a critical scalability gap: when FSL is applied to realistic settings—such as using 1,000 source classes to learn 360 target classes—complex meta-learning algorithms often perform worse than a simple baseline. This baseline involves training a standard deep feature extractor on source data and using a Nearest Neighbor (NN) search for target classes. The primary challenge is effectively transferring knowledge across high class diversity without overfitting to the source domain.
Methodology
The proposed framework enhances the transferability of visual features by integrating semantic relationships through a two-pronged approach.
Automatic Hierarchy Construction
Rather than relying on human-annotated taxonomies like WordNet, the authors utilize a data-driven approach. Class names are converted into word vectors using a skip-gram model trained on Wikipedia. These vectors are then grouped via k-means clustering to create a tree-like hierarchy. This structure ensures that semantically similar classes (e.g., "Corgi" and "Irish Terrier") eventually share common superclasses (e.g., "Dog"), providing a structured prior for visual learning.
Hierarchical Prediction Net
The core of the architecture is a modified CNN (ResNet50) equipped with a specialized hierarchical head. This head operates in two distinct steps to force the network to learn features at multiple levels of abstraction.
In Step 1, the network predicts labels at every level of the hierarchy independently. In Step 2, it refines these predictions by encoding the tree structure directly into the architecture: lower-level prediction results serve as inputs to help predict higher-level superclasses. This multi-level classification task encourages the model to learn robust features representing broad semantic categories, which are more likely to generalize to unseen target classes.
Experimental Results
The model was evaluated on two primary large-scale setups derived from ImageNet: the ImNet benchmark (ILSVRC 2012/2010) and the ImageNet-1K Split.
Few-Shot Learning Performance
On the ImNet benchmark, the proposed model achieved a top-5 accuracy of 39.0% for 1-shot learning, significantly outperforming the NN baseline (34.2%) and other specialized models such as SGM (31.6%) and PPA (33.0%). As shown in the performance curves, the model maintains a consistent lead over competitors as the number of shots ($K$) increases.
Zero-Shot Learning and Versatility
Because the model learns a robust feature space based on a semantic hierarchy, it is naturally suited for Zero-Shot Learning (ZSL). By applying the learned features within a standard ZSL mapping framework, the model set a new state-of-the-art on the ImageNet ZSL benchmark with 27.9% top-5 accuracy, surpassing the previous best of 27.2%.
Discussion and Conclusion
One of the most significant insights of this work is the "reality check" regarding the strength of simple feature extraction baselines in large-scale settings. By using superclasses as a bridge, the model can leverage general features (e.g., "Frog") learned from source classes (e.g., "Bullfrog") to identify novel target classes (e.g., "Leopard Frog").
While the method is highly effective, it remains sensitive to the specific structure of the hierarchy, such as the number of layers and clusters. Furthermore, it depends on class names having meaningful semantic representations in text corpora. Future work may explore integrating more sophisticated meta-learning inference techniques on top of these hierarchical features to further close the gap between few-shot and fully supervised performance.
Summary updated