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

Boris N. Oreshkin, Pau Rodríguez, Alexandre Lacoste

arXiv (Cornell University) · 2018 · 199 citations · 25 references

DOIFull text

Open access

Concepts

TL;DR

Few‑shot learning is essential for building models that generalize from very limited data. The authors aim to enhance few‑shot learning by demonstrating the importance of metric scaling and task‑dependent conditioning, and by proposing a task‑dependent metric space. They introduce a simple conditioning method that learns a task‑dependent metric space and an end‑to‑end optimization procedure using auxiliary task co‑training. Metric scaling changes parameter updates, boosts mini‑Imagenet 5‑way 5‑shot accuracy by up to 14%, achieves state‑of‑the‑art results, and the gains transfer to a new CIFAR‑100 few‑shot dataset, with the code publicly available.

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

References

25