Skip to main content
QUICK REVIEW

[Paper Review] Multi-level Metric Learning for Few-shot Image Recognition

Haoxing Chen, Huaxiong Li|arXiv (Cornell University)|Mar 21, 2021
Domain Adaptation and Few-Shot LearningComputer Science5 citations
TL;DR

This paper proposes a Multi-level Metric Learning (MML) framework that jointly computes similarity at pixel-level, part-level, and global-level features to improve few-shot image recognition. By integrating a Part-level Embedding Adaptation with Graph (PEAG) module for task-specific part features and combining multi-level metrics, MML achieves state-of-the-art accuracy on miniImageNet (81.41% on 5-way 5-shot) and FC100 (59.56% on 5-way 5-shot), outperforming prior single-level metric methods by up to 8.0%.

ABSTRACT

Few-shot learning is devoted to training a model on few samples. Most of these approaches learn a model based on a pixel-level or global-level feature representation. However, using global features may lose local information, and using pixel-level features may lose the contextual semantics of the image. Moreover, such works can only measure the relations between them on a single level, which is not comprehensive and effective. And if query images can simultaneously be well classified via three distinct level similarity metrics, the query images within a class can be more tightly distributed in a smaller feature space, generating more discriminative feature maps. Motivated by this, we propose a novel Part-level Embedding Adaptation with Graph (PEAG) method to generate task-specific features. Moreover, a Multi-level Metric Learning (MML) method is proposed, which not only calculates the pixel-level similarity but also considers the similarity of part-level features and global-level features. Extensive experiments on popular few-shot image recognition datasets prove the effectiveness of our method compared with the state-of-the-art methods. Our code is available at \url{https://github.com/chenhaoxing/M2L}.

Motivation & Objective

  • Address the limitation of single-level feature representations in few-shot learning, which either lose local details (pixel-level) or contextual semantics (global-level).
  • Improve discriminative feature learning by capturing semantic similarities across multiple levels: pixel, part, and global.
  • Develop a method that enables query images to be tightly clustered within class-specific feature spaces using complementary multi-level metrics.
  • Overcome the generalization failure of single-metric approaches by fusing multi-level similarity measurements for robust classification.

Proposed method

  • Propose Part-level Embedding Adaptation with Graph (PEAG) to extract patch-based part-level features and use Graph Convolutional Networks (GCN) to model part interactions and generate task-specific representations.
  • Design a multi-level metric learning (MML) module that computes similarity scores simultaneously at three levels: pixel-level (via local descriptors), part-level (via PEAG features), and global-level (via image-level embeddings).
  • Combine the three similarity scores using learnable weights (α, β, γ) to form a unified, compact, and discriminative feature space for classification.
  • Use a nearest neighbor matching module to classify query images based on the weighted fusion of multi-level similarities.
  • Train the model end-to-end using meta-learning with a momentum SGD optimizer on 200 sampled tasks per epoch, with learning rate decay every 10 epochs.
  • Pre-train the ResNet-12 feature extractor with an MLP before meta-training the full model on few-shot tasks.

Experimental results

Research questions

  • RQ1Can combining pixel-level, part-level, and global-level feature representations lead to more discriminative and robust feature embeddings in few-shot image recognition?
  • RQ2Does multi-level metric learning improve generalization compared to single-level metric learning in low-data regimes?
  • RQ3How do part-level features, when enhanced via graph-based modeling, contribute to improved similarity measurement and classification accuracy?
  • RQ4What is the relative contribution of each level (pixel, part, global) to the final performance, and is the fusion of all three levels optimal?
  • RQ5Can a learnable fusion mechanism for multi-level metrics outperform fixed or single-level similarity functions in few-shot learning?

Key findings

  • MML achieves 81.41% accuracy on the 5-way 5-shot mini-ImageNet benchmark, outperforming Prototypical Networks (73.41%) and DSN-MR (73.41%) by 8.0 and 8.0 percentage points, respectively.
  • On FC100, MML reaches 59.56% accuracy under 5-way 5-shot settings, surpassing the previous state-of-the-art by 3.5 percentage points.
  • Ablation studies confirm that all three levels (pixel, part, global) are essential: removing any one level causes significant performance drops, with single-level methods underperforming by up to 5.4%.
  • The PEAG module alone achieves 74.27% on mini-ImageNet (5-way 1-shot), outperforming FEAT (73.47%) and GLoFA (72.49%) by 0.8% and 1.8%, respectively.
  • The optimal hyperparameters (α, β, γ) are crucial: improper values degrade performance, indicating that balanced fusion of multi-level metrics is essential.
  • The model achieves 75.28% and 85.95% accuracy on mini-ImageNet under 5-way 1-shot and 5-way 5-shot settings, respectively, demonstrating strong generalization across shot settings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.