Abstract
Few-shot image recognition aims to recognize novel categories with very few labeled examples, a task humans perform effortlessly by leveraging prior knowledge. This paper introduces the Knowledge Transfer Network (KTN), a framework that mimics this human capability by combining visual feature learning with semantic knowledge inference. KTN utilizes a Graph Convolutional Network (GCN) to map semantic embeddings and knowledge graph relationships into the visual classifier space. This allows the model to "hallucinate" classifier weights for novel classes based on their relationships to known categories. Evaluations on Mini-ImageNet and large-scale ImageNet benchmarks show that KTN significantly outperforms existing methods, especially in 1-shot and 2-shot scenarios.
Introduction
Deep learning models typically require vast amounts of labeled data to achieve high performance. In contrast, humans can identify a new object after seeing it only once by relating it to existing knowledge. For instance, knowing that a "tiger" is a large cat with stripes allows a person to recognize one even if they have never seen a tiger before.
Few-shot learning (FSL) seeks to bridge this gap, but traditional methods often struggle with overfitting when visual data is scarce. KTN addresses this by incorporating external semantic knowledge from sources like WordNet and GloVe embeddings to guide the learning process.
Methodology
The Knowledge Transfer Network (KTN) is composed of three primary modules designed to integrate visual data with semantic knowledge:
- Visual Feature Learning Module: A standard Convolutional Neural Network (CNN) is trained on base categories using cosine similarity optimization. This approach helps reduce the discrepancy between the many-shot training phase and the few-shot testing phase.
- Knowledge Transfer Module (M-Net): This core innovation employs a Graph Convolutional Network (GCN) to process word embeddings (GloVe) and knowledge graph structures (WordNet). It learns to predict the visual classifier weights for novel categories by observing how semantic concepts relate to one another in the graph.
- Vision-Knowledge Fusion Module: For any new category, the model generates two sets of weights: one derived from the few available images ($W^v$) and another inferred from the knowledge graph ($W^k$). These are adaptively fused to produce a final, robust classifier.
Key Insights
- Semantic Hallucination: The GCN acts as a generator for classifier weights. Even without seeing a specific novel category, the model can "hallucinate" a reasonable starting point for its classifier if it understands the semantic links to known visual concepts.
- Joint Optimization: Unlike post-processing methods, KTN jointly incorporates visual learning and knowledge inference, ensuring that visual features and semantic embeddings remain compatible throughout training.
- Structural Knowledge: Ablation studies demonstrated that using a GCN (which considers category correlations) significantly outperformed simple fully connected networks, proving that the structure of our knowledge is vital for transfer learning.
Experimental Evaluation
The KTN was evaluated on the Mini-ImageNet and ImageNet Few-Shot benchmarks with impressive results:
- Mini-ImageNet: In the 5-way 1-shot task, KTN achieved 64.42% accuracy, a substantial improvement over classic baselines like Prototypical Networks (49.42%).
- ImageNet Few-Shot: On a large-scale ResNet-50 benchmark, KTN reached 61.9% accuracy for novel categories, outperforming the previous state-of-the-art by over 7%.
- Diminishing Returns: The benefit of knowledge transfer is most pronounced when visual data is extremely limited (1-shot). As the number of labeled images increases (e.g., 20-shot), the gap between KTN and purely visual methods narrows as visual data becomes sufficient on its own.
Conclusion and Future Work
KTN demonstrates that external semantic knowledge is a powerful tool for overcoming the data scarcity inherent in few-shot learning. While highly effective, the model's performance remains dependent on the quality of the external knowledge graph. Future research may focus on more dynamic, learnable fusion mechanisms that evaluate the trustworthiness of visual versus semantic information on the fly, as well as fine-tuning word embeddings specifically for visual recognition tasks.
Summary updated