TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/Learning to Compare: Relation Network for Few-Shot Learning

Learning to Compare: Relation Network for Few-Shot Learning

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

2017-11-16CVPR 2018 6Few-Shot LearningMeta-LearningFew-Shot Image ClassificationZero-Shot Learning
PaperPDFCodeCodeCodeCodeCodeCodeCodeCodeCodeCodeCodeCodeCode

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.

Results

TaskDatasetMetricValueModel
Image ClassificationTiered ImageNet 5-way (5-shot)Accuracy71.31Relation Net
Image ClassificationCUB 200 5-way 5-shotAccuracy65.32Relation Net
Image ClassificationMeta-DatasetAccuracy53.315Relation Networks
Image ClassificationTiered ImageNet 10-way (1-shot)Accuracy36.3Relation Networks
Image ClassificationCUB 200 5-way 1-shotAccuracy50.44Relation Net
Image ClassificationMini-Imagenet 10-way (5-shot)Accuracy47.9Relation Networks
Image ClassificationOMNIGLOT - 1-Shot, 5-wayAccuracy99.6Relation Net
Image ClassificationOMNIGLOT - 5-Shot, 5-wayAccuracy99.8Relation Net
Image ClassificationMini-ImageNet-CUB 5-way (1-shot)Accuracy42.91RelationNet (Sung et al., 2018)
Image ClassificationMini-Imagenet 5-way (1-shot)Accuracy50.4Relation Net (Sung et al., 2018)
Image ClassificationMini-Imagenet 10-way (1-shot)Accuracy34.9Relation Networks
Image ClassificationMeta-Dataset RankMean Rank11.8Relation Networks
Image ClassificationTiered ImageNet 10-way (5-shot)Accuracy58Relation Networks
Image ClassificationCIFAR-FS 5-way (5-shot)Accuracy69.3Relation Networks*
Few-Shot Image ClassificationCUB 200 5-way 5-shotAccuracy65.32Relation Net
Few-Shot Image ClassificationMeta-DatasetAccuracy53.315Relation Networks
Few-Shot Image ClassificationTiered ImageNet 10-way (1-shot)Accuracy36.3Relation Networks
Few-Shot Image ClassificationCUB 200 5-way 1-shotAccuracy50.44Relation Net
Few-Shot Image ClassificationMini-Imagenet 10-way (5-shot)Accuracy47.9Relation Networks
Few-Shot Image ClassificationOMNIGLOT - 1-Shot, 5-wayAccuracy99.6Relation Net
Few-Shot Image ClassificationOMNIGLOT - 5-Shot, 5-wayAccuracy99.8Relation Net
Few-Shot Image ClassificationMini-ImageNet-CUB 5-way (1-shot)Accuracy42.91RelationNet (Sung et al., 2018)
Few-Shot Image ClassificationMini-Imagenet 5-way (1-shot)Accuracy50.4Relation Net (Sung et al., 2018)
Few-Shot Image ClassificationMini-Imagenet 10-way (1-shot)Accuracy34.9Relation Networks
Few-Shot Image ClassificationMeta-Dataset RankMean Rank11.8Relation Networks
Few-Shot Image ClassificationTiered ImageNet 10-way (5-shot)Accuracy58Relation Networks
Few-Shot Image ClassificationCIFAR-FS 5-way (5-shot)Accuracy69.3Relation Networks*

Related Papers

GLAD: Generalizable Tuning for Vision-Language Models2025-07-17Are encoders able to learn landmarkers for warm-starting of Hyperparameter Optimization?2025-07-16Imbalanced Regression Pipeline Recommendation2025-07-16CLID-MU: Cross-Layer Information Divergence Based Meta Update Strategy for Learning with Noisy Labels2025-07-16Mixture of Experts in Large Language Models2025-07-15Iceberg: Enhancing HLS Modeling with Synthetic Data2025-07-14DEARLi: Decoupled Enhancement of Recognition and Localization for Semi-supervised Panoptic Segmentation2025-07-14Meta-Reinforcement Learning for Fast and Data-Efficient Spectrum Allocation in Dynamic Wireless Networks2025-07-13