Learning to Compare: Relation Network for Few-Shot Learning

Flood Sung, Yongxin Yang, Li Zhang, Tao Xiang, Philip H. S. Torr, Timothy M. Hospedales

2018 · 348 citations · 45 references

DOIFull text

Open access

Concepts

TL;DR

The paper proposes a simple, flexible framework for few‑shot learning that enables a classifier to recognise new classes from only a few examples. The Relation Network is trained end‑to‑end through meta‑learning to learn a deep distance metric that compares small image sets within episodes, enabling classification of new classes by computing relation scores between queries and few examples without further network updates. The framework achieves state‑of‑the‑art performance on few‑shot learning, extends to zero‑shot learning, and is validated on five benchmarks as a unified, effective method for both tasks.

Abstract

We present a conceptually simple, flexible, and general framework for few-shot learning, where a classifier must learn to recognise new classes given only few examples from each. Our method, called the Relation Network (RN), is trained end-to-end from scratch. During meta-learning, it learns to learn a deep distance metric to compare a small number of images within episodes, each of which is designed to simulate the few-shot setting. Once trained, a RN is able to classify images of new classes by computing relation scores between query images and the few examples of each new class without further updating the network. Besides providing improved performance on few-shot learning, our framework is easily extended to zero-shot learning. Extensive experiments on five benchmarks demonstrate that our simple approach provides a unified and effective approach for both of these two tasks.

References

45