SOTAVerified

Learning to Compare: Relation Network for Few-Shot Learning

2017-11-16CVPR 2018Code Available1· sign in to hype

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

Code Available — Be the first to reproduce this paper.

Reproduce

Code

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.

Tasks

Benchmark Results

DatasetModelMetricClaimedVerifiedStatus
CIFAR-FS 5-way (5-shot)Relation Networks*Accuracy69.3Unverified
CUB 200 5-way 1-shotRelation NetAccuracy50.44Unverified
CUB 200 5-way 5-shotRelation NetAccuracy65.32Unverified
Meta-DatasetRelation NetworksAccuracy53.32Unverified
Meta-Dataset RankRelation NetworksMean Rank11.8Unverified
Mini-Imagenet 10-way (1-shot)Relation NetworksAccuracy34.9Unverified
Mini-Imagenet 10-way (5-shot)Relation NetworksAccuracy47.9Unverified
Mini-Imagenet 5-way (1-shot)Relation Net (Sung et al., 2018)Accuracy50.4Unverified
Mini-ImageNet-CUB 5-way (1-shot)RelationNet (Sung et al., 2018)Accuracy42.91Unverified
OMNIGLOT - 1-Shot, 20-wayRelation NetAccuracy97.6Unverified
OMNIGLOT - 1-Shot, 5-wayRelation NetAccuracy99.6Unverified
OMNIGLOT - 5-Shot, 20-wayRelation NetAccuracy99.1Unverified
OMNIGLOT - 5-Shot, 5-wayRelation NetAccuracy99.8Unverified
Tiered ImageNet 10-way (1-shot)Relation NetworksAccuracy36.3Unverified
Tiered ImageNet 10-way (5-shot)Relation NetworksAccuracy58Unverified

Reproductions