[Paper Review] SimpleShot: Revisiting Nearest-Neighbor Classification for Few-Shot Learning
The paper shows that simple feature transformations (mean-centering and L2 normalization) with a nearest-neighbor classifier can achieve state-of-the-art or competitive results on standard few-shot benchmarks without meta-learning.
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.
Motivation & Objective
- Motivate a strong baseline for few-shot learning that does not rely on meta-learning.
- Investigate the impact of simple feature transformations on nearest-neighbor classification in the few-shot setting.
- Evaluate simple transformations across multiple backbone architectures and datasets to establish a robust baseline.
Proposed method
- Train a feature extractor f_theta on base classes by minimizing cross-entropy with a linear classifier W on D_base.
- Perform nearest-neighbor classification in feature space using Euclidean distance on test samples.
- Apply feature transformations prior to nearest-neighbor: (a) unnormalized (UN), (b) L2-normalized (L2N), (c) centered L2-normalized (CL2N).
- Use one-shot and five-shot C-way tasks; in multi-shot settings use nearest-centroid (class centroids) for each novel class.
- Evaluate across multiple architectures (Conv-4, ResNet-10/18, WRN, DenseNet, MobileNet) and datasets (miniImageNet, tiered ImageNet, CIFAR-100).
- Compare against a broad set of meta-learning based baselines to establish SimpleShot as a competitive baseline.
Experimental results
Research questions
- RQ1Can a nearest-neighbor classifier with simple feature transformations achieve competitive accuracy in one-shot and five-shot settings without meta-learning?
- RQ2How do mean-centering and L2-normalization affect nearest-neighbor performance across different backbones and datasets?
- RQ3Do the observed benefits generalize beyond miniImageNet to tiered ImageNet and CIFAR-100?
- RQ4Is SimpleShot a viable competitive baseline for future few-shot learning research?
Key findings
- L2-normalization consistently improves accuracy over unnormalized features by at least ~3% on several datasets.
- Centering (mean subtraction) followed by L2-normalization (CL2N) yields an additional ~1–3% improvement.
- SimpleShot with L2N or CL2N achieves competitive or superior results compared to many state-of-the-art meta-learning methods across multiple backbones and datasets.
- On miniImageNet, SimpleShot variants with CL2N often attain top performance for several architectures (e.g., ResNet-10/18, DenseNet, WRN, etc.).
- Feature transformations also boost ProtoNet when applied post-training, indicating broader usefulness beyond vanilla 1NN.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.