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

Boris N. Oreshkin, Pau Rodriguez, Alexandre Lacoste
5/23/2018
1,566 citations
cs.LGcs.AIcs.CV

No official code found. Best implementation: ServiceNow/TADAM (107 stars, Jupyter Notebook, Apache-2.0, last commit 2022-06-20).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

ServiceNow/TADAMCommunity100%
Apache-2.0

The implementation of https://papers.nips.cc/paper/7352-tadam-task-dependent-adaptive-metric-for-improved-few-shot-learning . TADAM is a ServiceNow Research project that was started at Element AI.

10725Jupyter Notebook, PythonJan 17, 20194 years agoApache-2.0

Similar Papers

Cite this paper

@article{oreshkin2018tadam,
  title  = {TADAM: Task dependent adaptive metric for improved few-shot learning},
  author = {Boris N. Oreshkin and Pau Rodriguez and Alexandre Lacoste},
  year   = {2018},
  eprint = {1805.10123},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1805.10123}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1805.10123.svg)](https://codeofpaper.com/paper/1805.10123)

Discussion