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/SimpleShot: Revisiting Nearest-Neighbor Classification for...

SimpleShot: Revisiting Nearest-Neighbor Classification for Few-Shot Learning

Yan Wang, Wei-Lun Chao, Kilian Q. Weinberger, Laurens van der Maaten

2019-11-12Few-Shot LearningMeta-LearningFew-Shot Image ClassificationGeneral Classification
PaperPDFCodeCodeCodeCodeCode(official)Code

Abstract

Few-shot learners aim to recognize new object classes based on a small number of labeled training examples. To prevent overfitting, state-of-the-art few-shot learners use meta-learning on convolutional-network features and perform classification using a nearest-neighbor classifier. This paper studies the accuracy of nearest-neighbor baselines without meta-learning. Surprisingly, we find simple feature transformations suffice to obtain competitive few-shot learning accuracies. For example, we find that a nearest-neighbor classifier used in combination with mean-subtraction and L2-normalization outperforms prior results in three out of five settings on the miniImageNet dataset.

Results

TaskDatasetMetricValueModel
Image ClassificationDirichlet Mini-Imagenet (5-way, 5-shot)1:1 Accuracy80.1Simpleshot
Image ClassificationDirichlet Tiered-Imagenet (5-way, 5-shot)1:1 Accuracy84.7Simpleshot
Image ClassificationMini-Imagenet 5-way (5-shot)Accuracy81.5SimpleShot (CL2N-DenseNet)
Image ClassificationDirichlet CUB-200 (5-way, 1-shot)1:1 Accuracy70.6Simpleshot
Image ClassificationDirichlet Mini-Imagenet (5-way, 1-shot)1:1 Accuracy63Simpleshot
Image ClassificationMini-Imagenet 5-way (1-shot)Accuracy64.29SimpleShot (CL2N-DenseNet)
Image ClassificationDirichlet CUB-200 (5-way, 5-shot)1:1 Accuracy87.5Simpleshot
Image ClassificationDirichlet Tiered-Imagenet (5-way, 1-shot)1:1 Accuracy69.6Simpleshot
Few-Shot Image ClassificationDirichlet Mini-Imagenet (5-way, 5-shot)1:1 Accuracy80.1Simpleshot
Few-Shot Image ClassificationDirichlet Tiered-Imagenet (5-way, 5-shot)1:1 Accuracy84.7Simpleshot
Few-Shot Image ClassificationMini-Imagenet 5-way (5-shot)Accuracy81.5SimpleShot (CL2N-DenseNet)
Few-Shot Image ClassificationDirichlet CUB-200 (5-way, 1-shot)1:1 Accuracy70.6Simpleshot
Few-Shot Image ClassificationDirichlet Mini-Imagenet (5-way, 1-shot)1:1 Accuracy63Simpleshot
Few-Shot Image ClassificationMini-Imagenet 5-way (1-shot)Accuracy64.29SimpleShot (CL2N-DenseNet)
Few-Shot Image ClassificationDirichlet CUB-200 (5-way, 5-shot)1:1 Accuracy87.5Simpleshot
Few-Shot Image ClassificationDirichlet Tiered-Imagenet (5-way, 1-shot)1:1 Accuracy69.6Simpleshot

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-14Meta-Reinforcement Learning for Fast and Data-Efficient Spectrum Allocation in Dynamic Wireless Networks2025-07-13ViT-ProtoNet for Few-Shot Image Classification: A Multi-Benchmark Evaluation2025-07-12