Skip to main content
QUICK REVIEW

[Paper Review] Revisiting Local Descriptor based Image-to-Class Measure for Few-shot Learning

Wenbin Li, Lei Wang|arXiv (Cornell University)|Mar 28, 2019
Domain Adaptation and Few-Shot LearningComputer Science22 references43 citations
TL;DR

The paper introduces DN4, a Deep Nearest Neighbor Neural Network that uses a local descriptor based image-to-class measure trained with episodic training, achieving state-of-the-art results on several few-shot benchmarks.

ABSTRACT

Few-shot learning in image classification aims to learn a classifier to classify images when only few training examples are available for each class. Recent work has achieved promising classification performance, where an image-level feature based measure is usually used. In this paper, we argue that a measure at such a level may not be effective enough in light of the scarcity of examples in few-shot learning. Instead, we think a local descriptor based image-to-class measure should be taken, inspired by its surprising success in the heydays of local invariant features. Specifically, building upon the recent episodic training mechanism, we propose a Deep Nearest Neighbor Neural Network (DN4 in short) and train it in an end-to-end manner. Its key difference from the literature is the replacement of the image-level feature based measure in the final layer by a local descriptor based image-to-class measure. This measure is conducted online via a $k$-nearest neighbor search over the deep local descriptors of convolutional feature maps. The proposed DN4 not only learns the optimal deep local descriptors for the image-to-class measure, but also utilizes the higher efficiency of such a measure in the case of example scarcity, thanks to the exchangeability of visual patterns across the images in the same class. Our work leads to a simple, effective, and computationally efficient framework for few-shot learning. Experimental study on benchmark datasets consistently shows its superiority over the related state-of-the-art, with the largest absolute improvement of $17\%$ over the next best. The source code can be available from \UrlFont{https://github.com/WenbinLee/DN4.git}.

Motivation & Objective

  • Motivate reconsideration of final classification in few-shot learning by moving from image-level to local descriptor based measures.
  • Leverage transferability and exchangeability of local visual patterns across images in the same class.
  • Propose an end-to-end trainable framework combining deep local descriptors with a non-parametric image-to-class measure.
  • Show empirical gains over state-of-the-art metric-learning and meta-learning methods on standard few-shot benchmarks.

Proposed method

  • Embed images with a CNN to obtain deep local descriptors from convolutional feature maps.
  • Construct an image-to-class measure by performing k-nearest neighbor search over local descriptors for each query descriptor against the class descriptor pool.
  • Aggregate cosine similarities across all descriptors and their k-NN matches to obtain class scores for classification.
  • Train the embedding and non-parametric measure end-to-end within episodic training (C-way K-shot tasks).
  • Use a Conv-64F (and optionally deeper backbones like ResNet-256F) as the embedding module.
  • Tune the hyper-parameter k and show robustness across settings.

Experimental results

Research questions

  • RQ1Does a local descriptor based image-to-class measure improve few-shot classification compared to image-level features?
  • RQ2Can end-to-end training of a local-descriptor based non-parametric classifier (DN4) outperform standard metric-learning and meta-learning approaches in few-shot tasks?
  • RQ3How do hyper-parameters (k, backbone, over/under-matching) affect DN4 performance across datasets?

Key findings

  • DN4 achieves higher accuracy than several state-of-the-art metric-learning methods on 5-way 1-shot and 5-way 5-shot tasks (e.g., 51.24% vs 49.42% and 71.02% vs 68.20% on mini ImageNet).
  • Replacing image-level features with deep local descriptors and using an image-to-class measure yields large gains, especially in fine-grained datasets.
  • The approach is end-to-end trainable from scratch and remains non-parametric at test time, aside from the embedding module.
  • A deeper backbone (ResNet-256F) further improves performance (e.g., 74.44% 5-shot with ResNet-256F).
  • Ablation studies show image-to-class measures outperform image-to-image variants, and the method benefits from the exchangeability of local patterns within a class.
  • DN4 remains competitive with meta-learning baselines and often outperforms them in 5-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.