arXiv Analytics

Sign in

arXiv:1909.11722 [cs.LG]AbstractReferencesReviewsResources

A Theoretical Analysis of the Number of Shots in Few-Shot Learning

Tianshi Cao, Marc Law, Sanja Fidler

Published 2019-09-25Version 1

Few-shot classification is the task of predicting the category of an example from a set of few labeled examples. The number of labeled examples per category is called the number of shots (or shot number). Recent works tackle this task through meta-learning, where a meta-learner extracts information from observed tasks during meta-training to quickly adapt to new tasks during meta-testing. In this formulation, the number of shots exploited during meta-training has an impact on the recognition performance at meta-test time. Generally, the shot number used in meta-training should match the one used in meta-testing to obtain the best performance. We introduce a theoretical analysis of the impact of the shot number on Prototypical Networks, a state-of-the-art few-shot classification method. From our analysis, we propose a simple method that is robust to the choice of shot number used during meta-training, which is a crucial hyperparameter. The performance of our model trained for an arbitrary meta-training shot number shows great performance for different values of meta-testing shot numbers. We experimentally demonstrate our approach on different few-shot classification benchmarks.

Related articles: Most relevant | Search more
arXiv:1911.11090 [cs.LG] (Published 2019-11-25)
Meta-Learning of Neural Architectures for Few-Shot Learning
arXiv:2205.15619 [cs.LG] (Published 2022-05-31)
Meta-ticket: Finding optimal subnetworks for few-shot learning within randomly initialized neural networks
arXiv:2402.01440 [cs.LG] (Published 2024-02-02, updated 2024-03-02)
Few-Shot Learning on Graphs: from Meta-learning to Pre-training and Prompting
Xingtong Yu et al.