HyperAIHyperAI

Command Palette

Search for a command to run...

4 months ago

Revisiting Local Descriptor based Image-to-Class Measure for Few-shot Learning

Wenbin Li; Lei Wang; Jinglin Xu; Jing Huo; Yang Gao; Jiebo Luo

Revisiting Local Descriptor based Image-to-Class Measure for Few-shot Learning

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}.

Code Repositories

Benchmarks

BenchmarkMethodologyMetrics
few-shot-image-classification-on-cub-200-5DN4-DA (k=1)
Accuracy: 81.9
few-shot-image-classification-on-cub-200-5-1DN4-DA (k=1)
Accuracy: 53.15
few-shot-image-classification-on-mini-2DN4 (k=3)
Accuracy: 51.24
few-shot-image-classification-on-mini-3DN4 (k=3)
Accuracy: 71.02
few-shot-image-classification-on-stanfordDN4-DA (k=1)
Accuracy: 45.73
few-shot-image-classification-on-stanford-1DN4-DA (k=1)
Accuracy: 66.33
few-shot-image-classification-on-stanford-2DN4-DA (k=1)
Accuracy: 61.51
few-shot-image-classification-on-stanford-3DN4-DA (k=1)
Accuracy: 89.6

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Revisiting Local Descriptor based Image-to-Class Measure for Few-shot Learning | Papers | HyperAI