SimpleShot: Revisiting Nearest-Neighbor Classification for Few-Shot Learning
Open accessAbstract
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.
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Integrity signals
Registry
Cites
Statistics
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
TITAN and TITANV maintain superior performance in nonparametric evaluations with prototyping and 20 nearest-neighbor evaluation.
“Even with other nonparametric evaluations with prototyping105,106 and 20 nearest-neighbor evaluation, which predicts each WSI’s label based on the proximity to other WSI embeddings in the embedding space, we observe that TITAN and TITANV maintain superior performance Supplementary Tables 22–33.”
From A multimodal whole-slide foundation model for pathology (2025) · cites this paper as [105]
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Cites
Deep Residual Learning for Image Recognition
He, K., Zhang, X., Ren, S., & Sun, J. (2016) · 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr.2016.90 · Cited by 235,474 · see citing works
WordNet: a lexical database for English
Miller, G. A. (1995) · Communications of the ACM · doi:10.1145/219717.219748 · Cited by 14,015 · cited 1× · see citing works
“The class split is performed using WordNet [20] to ensure that all the base classes are semantically unrelated to the novel classes.”
MethodZagoruyko, S., & Komodakis, N. (2016) · Procedings of the British Machine Vision Conference 2016 · doi:10.5244/c.30.87 · Cited by 7,244 · see citing works
The iNaturalist Species Classification and Detection Dataset
Van Horn, G., Mac Aodha, O., Song, Y., Cui, Y., Sun, C., Shepard, A., Adam, H., Perona, P., & Belongie, S. (2018) · 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition · doi:10.1109/cvpr.2018.00914 · Cited by 1,451 · see citing works
Flagged first, then by citations
Research works printed but not linked: 33
- [1][1] M. Bauer, M. Rojas-Carulla, J. B. Swiatkowski, B. Scholkopf, and R. E. Turner. Discriminative k-shot learning using probabilistic models. arXiv preprint arXiv:1706.00326 , 2017. 1, 3, 4 - · arXiv
- [2][2] W.-Y. Chen, Y.-C. Liu, Z. Kira, Y.-C. F. Wang, and J.-B. Huang. A closer look at few-shot classification. In ICLR , 2019. 4 -
- [3][3] L. Fei-Fei, R. Fergus, and P. Perona. One-shot learning of object categories. PAMI , 28(4):594-611, 2006. 1 -
- [4][4] C. Finn, P. Abbeel, and S. Levine. Model-agnostic metalearning for fast adaptation of deep networks. In ICML , 2017. 1, 3, 4 -
- [5][5] C. Finn, K. Xu, and S. Levine. Probabilistic model-agnostic meta-learning. In NeurIPS , 2018. 1, 3, 4 -
- [6][6] V. Garcia and J. Bruna. Few-shot learning with graph neural networks. In ICLR , 2018. 1, 3, 4 -
- [7][7] I. Gauthier. Dissecting face recognition: The role of expertise and level of categorization in object recognition . PhD thesis, Yale University, 1998. 1 -
- [8][8] S. Gidaris and N. Komodakis. Dynamic few-shot visual learning without forgetting. In CVPR , 2018. 1, 3, 4 -
- [9][9] J. Gordon, J. Bronskill, M. Bauer, S. Nowozin, and R. Turner. Meta-learning probabilistic inference for prediction. In ICLR , 2019. 1 -
- [10][10] E. Grant, C. Finn, S. Levine, T. Darrell, and T. Griffiths. Recasting gradient-based meta-learning as hierarchical bayes. In ICLR , 2018. 1, 3, 4 -
- [12][12] G. V. Horn and P. Perona. The devil is in the tails: Finegrained classification in the wild. In arXiv 1709.01450 , 2017. 1 - · arXiv
- [13][13] A. G. Howard, M. Zhu, B. Chen, D. Kalenichenko, W. Wang, T. Weyand, M. Andreetto, and H. Adam. Mobilenets: Efficient convolutional neural networks for mobile vision applications. arXiv preprint arXiv:1704.04861 , 2017. 1, 3 - · arXiv
- [14][14] G. Huang, Z. Liu, L. Van Der Maaten, and K. Q. Weinberger. Densely connected convolutional networks. In CVPR , 2017. 1, 3 -
- [15][15] X. Jiang, M. Havaei, F. Varno, G. Chartrand, N. Chapados, and S. Matwin. Learning to learn with conditional class dependencies. In ICLR , 2019. 1, 3, 4 -
- [17][17] Y. Lee and S. Choi. Gradient-based meta-learning with learned layerwise metric and subspace. In ICML , 2018. 1, 3, 4 -
- [18][18] Z. Li, F. Zhou, F. Chen, and H. Li. Meta-sgd: Learning to learn quickly for few shot learning. arXiv preprint arXiv:1707.09835 , 2017. 4 - · arXiv
- [19][19] Y. Liu, J. Lee, M. Park, S. Kim, E. Yang, S. J. Hwang, and Y. Yang. Learning to propagate labels: Transductive propagation network for few-shot learning. In Proceedings of the Annual Meeting of the Cognitive Science Society , 2019. 4 -
- [21][21] N. Mishra, M. Rohaninejad, X. Chen, and P. Abbeel. A simple neural attentive meta-learner. In ICLR , 2018. 1, 3, 4 -
- [22][22] T. Munkhdalai, X. Yuan, S. Mehri, and A. Trischler. Rapid adaptation with conditionally shifted neurons. In ICML , 2018. 1, 3, 4 -
- [23][23] A. Nichol, J. Achiam, and J. Schulman. On first-order metalearning algorithms. CoRR, abs/1803.02999 , 2018. 1, 3, 4 - · arXiv
- [24][24] B. N. Oreshkin, A. Lacoste, and P. Rodriguez. Tadam: Task dependent adaptive metric for improved few-shot learning. In NeurIPS , 2018. 1, 2, 3, 4 -
- [25][25] S. Qiao, C. Liu, W. Shen, and A. L. Yuille. Few-shot image recognition by predicting parameters from activations. In CVPR , 2018. 1, 3, 4 -
- [26][26] S. Ravi and H. Larochelle. Optimization as a model for fewshot learning. In ICLR , 2017. 1, 2, 3, 4 -
- [27][27] M. Ren, E. Triantafillou, S. Ravi, J. Snell, K. Swersky, J. B. Tenenbaum, H. Larochelle, and R. S. Zemel. Meta-learning for semi-supervised few-shot classification. In ICLR , 2018. 1, 2 -
- [28][28] O. Russakovsky, J. Deng, H. Su, J. Krause, S. Satheesh, S. Ma, Z. Huang, A. Karpathy, A. Khosla, M. S. Bernstein, A. C. Berg, and F.-F. Li. Imagenet large scale visual recognition challenge. IJCV , 115(3):211-252, 2015. 2, 3 -
- [29][29] A. A. Rusu, D. Rao, J. Sygnowski, O. Vinyals, R. Pascanu, S. Osindero, and R. Hadsell. Meta-learning with latent embedding optimization. In ICLR , 2019. 1, 2, 3, 4 -
- [30][30] J. Snell, K. Swersky, and R. Zemel. Prototypical networks for few-shot learning. In NeurIPS , 2017. 1, 3, 4 -
- [31][31] F. Sung, Y. Yang, L. Zhang, T. Xiang, P. H. Torr, and T. M. Hospedales. Learning to compare: Relation network for fewshot learning. In CVPR , 2018. 1, 3, 4 -
- [32][32] E. Triantafillou, R. Zemel, and R. Urtasun. Few-shot learning through an information retrieval lens. In CVPR , 2017. 1, 3, 4 -
- [34][34] O. Vinyals, C. Blundell, T. Lillicrap, D. Wierstra, et al. Matching networks for one shot learning. In NIPS , 2016. 1, 2, 3, 4 -
- [35][35] D. Wertheimer and B. Hariharan. Few-shot learning with localization in realistic settings. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition , pages 6558-6567, 2019. 6 -
- [36][36] H.-J. Ye, H. Hu, D.-C. Zhan, and F. Sha. Learning embedding adaptation for few-shot learning. arXiv preprint arXiv:1812.03664 , 2018. 1, 3, 4 - · arXiv
- [37][37] J. Yoon, T. Kim, O. Dia, S. Kim, Y. Bengio, and S. Ahn. Bayesian model-agnostic meta-learning. In NeurIPS , 2018. 1 -
Cited by
Sorted by citations
Towards a general-purpose foundation model for computational pathology
Chen, R. J., Ding, T., Lu, M. Y., Williamson, D. F. K., Jaume, G., Song, A. H., Chen, B., Zhang, A., Shao, D., Shaban, M., et al. (2024) · Nature Medicine · doi:10.1038/s41591-024-02857-3 · Cited by 1,560 · see citing works
Meta-Baseline: Exploring Simple Meta-Learning for Few-Shot Learning
Chen, Y., Liu, Z., Xu, H., Darrell, T., & Wang, X. (2021) · 2021 IEEE/CVF International Conference on Computer Vision (ICCV) · doi:10.1109/iccv48922.2021.00893 · Cited by 503 · see citing works
A multimodal whole-slide foundation model for pathology
Ding, T., Wagner, S. J., Song, A. H., Chen, R. J., Lu, M. Y., Zhang, A., Vaidya, A. J., Jaume, G., Shaban, M., Kim, A., et al. (2025) · Nature Medicine · doi:10.1038/s41591-025-03982-3 · Cited by 171 · see citing works
The Surprising Effectiveness of Representation Learning for Visual Imitation
Pari, J., Shafiullah, N. M. (., Arunachalam, S. P., & Pinto, L. (2022) · Robotics: Science and Systems XVIII · doi:10.15607/rss.2022.xviii.010 · Cited by 95 · see citing works
- Authors
- Wang, Y., Chao, W.-L., Weinberger, K. Q., & van der Maaten, L.
- Affiliations
- Cornell University (US)
- The Ohio State University (US)
- Venue
- arXiv
- Publisher
- arXiv
- Published
- 2019
- ISSN
- 2331-8422 (ISSN-L)
- arXiv
- 1911.04623
- OpenAlex
- W2986604550
- Cited by
- 245
- References
- 4
- Citations by year
- 2026: 4 · 2025: 18 · 2024: 46 · 2023: 51 · 2022: 39 · 2021: 62 · 2020: 23 · 2019: 2
- Type
- posted content
- Language
- en
- Open access
- green
- arxiv.org
- Locations
- arXiv (Cornell University) (submittedVersion)
- arXiv (Cornell University)
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Domain Adaptation and Few-Shot Learning
- Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Advanced Neural Network Applications
- Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Advanced Image and Video Retrieval Techniques
- Keywords
- few-shot learning, nearest neighbor classification, meta-learning, feature transformation, L2 normalization, overfitting, miniImageNet, object recognition
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review