Learning to Compare: Relation Network for Few-Shot Learning

Flood Sung, Yongxin Yang, Li Zhang, Tao Xiang, Philip H. S. Torr +1 more
11/16/2017
4,940 citations
cs.CV

No official code found. Best implementation: floodsung/LearningToCompare_FSL (1,076 stars). 4 more below.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(5)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
floodsung/LearningToCompare_FSLCommunity1,076–––
lzrobots/LearningToCompare_ZSLCommunity270–––
dragen1860/LearningToCompare-PytorchCommunity250–––
wOOL/Learning_to_CompareCommunity29–––
khoiucd/LearningToCompare-TensorflowCommunity17–––

PyTorch code for CVPR 2018 paper: Learning to Compare: Relation Network for Few-Shot Learning (Few-Shot Learning part)

1,076263

PyTorch code for CVPR 2018 paper: Learning to Compare: Relation Network for Few-Shot Learning (Zero-Shot Learning part)

27065

Pytorch Implementation for CVPR2018 Paper: Learning to Compare: Relation Network for Few-Shot Learning

25044

Demo for the paper titled "Learning to Compare: Relation Network for Few-Shot Learning"

2910

Tensorflow implementation for paper: Learning to Compare: Relation Network for Few-Shot Learning.

174

Similar Papers

Cite this paper

@article{sung2017learning,
  title  = {Learning to Compare: Relation Network for Few-Shot Learning},
  author = {Flood Sung and Yongxin Yang and Li Zhang and Tao Xiang and Philip H. S. Torr and Timothy M. Hospedales},
  year   = {2017},
  eprint = {1711.06025},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1711.06025}
}

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/1711.06025.svg)](https://codeofpaper.com/paper/1711.06025)

Discussion