Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

TADAM: Task dependent adaptive metric for improved few-shot learning

About

Few-shot learning has become essential for producing models that generalize from few examples. In this work, we identify that metric scaling and metric task conditioning are important to improve the performance of few-shot algorithms. Our analysis reveals that simple metric scaling completely changes the nature of few-shot algorithm parameter updates. Metric scaling provides improvements up to 14% in accuracy for certain metrics on the mini-Imagenet 5-way 5-shot classification task. We further propose a simple and effective way of conditioning a learner on the task sample set, resulting in learning a task-dependent metric space. Moreover, we propose and empirically test a practical end-to-end optimization procedure based on auxiliary task co-training to learn a task-dependent metric space. The resulting few-shot learning model based on the task-dependent scaled metric achieves state of the art on mini-Imagenet. We confirm these results on another few-shot dataset that we introduce in this paper based on CIFAR100. Our code is publicly available at https://github.com/ElementAI/TADAM.

Boris N. Oreshkin, Pau Rodriguez, Alexandre Lacoste• 2018

Related benchmarks

TaskDatasetResultRank
Few-shot classificationtieredImageNet (test)
Accuracy81.92
282
Few-shot Image ClassificationMini-Imagenet (test)
Accuracy76.7
235
5-way ClassificationminiImageNet (test)
Accuracy76.7
231
Few-shot classificationMini-ImageNet
1-shot Acc58.5
175
5-way Few-shot ClassificationMiniImagenet
Accuracy (5-shot)76.7
150
5-way Few-shot ClassificationMini-Imagenet (test)
1-shot Accuracy58.5
141
Few-shot classificationminiImageNet standard (test)
5-way 1-shot Acc58.5
138
Few-shot classificationminiImageNet (test)
Accuracy76.7
120
Few-shot classificationMini-Imagenet (test)
Accuracy76.7
113
Few-shot Image ClassificationminiImageNet (test)
Accuracy76.7
111
Showing 10 of 37 rows

Other info

Code

Follow for update