Abstract
Few-shot learning (FSL) faces the challenge of feature ambiguity, where limited data makes it difficult to discern which visual features characterize a new category. We propose a method that groups visual features into "facets" and employs category name embeddings from language models (e.g., BERT) to predict facet importance. This adaptive similarity measure allows the model to prioritize relevant features—such as color for a desert or shape for a cat—improving classification accuracy. Our approach consistently outperforms baseline models on miniImageNet and CUB datasets.
Introduction
The primary hurdle in few-shot learning is identifying characteristic features from just one or five examples. Standard metric-based methods typically apply uniform weights to feature dimensions. However, different categories rely on different visual cues. This paper introduces a "plug-and-play" enhancement for metric-based models that makes similarity measures adaptive to the semantic meaning of a category.
Methodology
The proposed framework consists of three main components:
1. Facet Identification
Rather than manual definition, facets are identified through an unsupervised clustering of feature coordinates. By analyzing which coordinates are most discriminative across thousands of simulated tasks (episodes), the model clusters related coordinates into "facets" using Kendall $\tau$ correlation and hierarchical clustering.
2. Semantic Class Embeddings
To incorporate prior knowledge, the model uses language models to represent category names. A specialized technique with BERT is employed: class names are masked within Wikipedia sentences, and BERT’s output captures the semantic context, providing a richer representation than static word vectors like GloVe.
3. Adaptive Similarity Computation
A "facet-importance generation network" maps the semantic embedding to a set of weights for the visual facets. During inference, the similarity between a query and a prototype is calculated as a weighted distance, where facets predicted to be semantically important for that class carry more weight.
Experimental Results
The method was evaluated on the miniImageNet and CUB (Caltech-UCSD Birds-200-2011) benchmarks.
Performance on CUB
The improvement on the fine-grained CUB dataset was particularly significant. As shown in the table below, the facet-weighted ProtoNet achieved a substantial boost in accuracy compared to the standard implementation, jumping from 51.31% to 69.52% in the 1-shot setting.
Performance on miniImageNet
On miniImageNet, the method also demonstrated superior performance. Using the FEAT backbone, the proposed approach achieved state-of-the-art results, outperforming competitive models like DeepEMD and standard FEAT.
Discussion and Key Insights
- Semantics as a Blueprint: Language provides a prior for visual importance. Semantic concepts naturally encode which features (like "yellow" for a lemon) are essential.
- Contextual Embeddings: Ablation studies indicated that BERT-based embeddings generally outperform GloVe, likely due to the richer contextual information captured through sentence-based masking.
- Limitations: The primary drawbacks include the computational overhead of the pre-computation step for facet identification and potential dimensionality issues when integrating high-dimensional BERT embeddings into certain architectures.
Conclusion
By making similarity measures adaptive to category semantics, this work addresses the core challenge of feature ambiguity in few-shot learning. The "multi-facet" approach provides a robust, data-driven way to leverage linguistic prior knowledge for visual recognition.
Summary updated