[Paper Review] An empirical study of pretrained representations for few-shot classification
This paper empirically evaluates pretrained deep neural networks as feature extractors for few-shot image classification, demonstrating that supervised ImageNet models outperform unsupervised and adversarially robust models in transfer performance. It finds that cosine similarity consistently outperforms L2 distance in similarity-based few-shot methods when using pretrained features, and that deeper, supervised backbones yield superior few-shot accuracy across diverse datasets.
Recent algorithms with state-of-the-art few-shot classification results start their procedure by computing data features output by a large pretrained model. In this paper we systematically investigate which models provide the best representations for a few-shot image classification task when pretrained on the Imagenet dataset. We test their representations when used as the starting point for different few-shot classification algorithms. We observe that models trained on a supervised classification task have higher performance than models trained in an unsupervised manner even when transferred to out-of-distribution datasets. Models trained with adversarial robustness transfer better, while having slightly lower accuracy than supervised models.
Motivation & Objective
- To systematically evaluate how well different pretrained models transfer to few-shot image classification tasks.
- To determine whether supervised, unsupervised, or adversarially robust models yield better feature representations for few-shot learning.
- To investigate the impact of similarity functions (e.g., cosine vs. L2) when used with pretrained features in few-shot classification.
- To assess transfer performance across in-distribution and out-of-distribution datasets, including MNIST and SVHN.
- To identify best practices for using pretrained backbones in few-shot learning, especially in contrast to end-to-end trained models.
Proposed method
- The study evaluates 14 different datasets using multiple pretrained convolutional neural network backbones fine-tuned or adapted via few-shot classification methods.
- Feature representations are extracted from the final layer of each pretrained model without further training, serving as input to similarity-based few-shot classifiers.
- Three adaptation methods are used: Matching Networks, Prototype Networks, and logistic regression with SGD, each combined with different similarity functions (cosine, L2, unnormalized dot product).
- Performance is measured across 5-shot, 10-shot, and higher few-shot regimes to assess scalability of methods with increasing support set size.
- Experiments compare models pre-trained on ImageNet using supervised, self-supervised, and adversarially robust objectives to assess transferability.
- Results are averaged across all datasets and reported as mean accuracy to enable cross-model and cross-method comparison.
Experimental results
Research questions
- RQ1Do supervised ImageNet-pretrained models transfer better to few-shot image classification than unsupervised or adversarially robust models?
- RQ2How does the choice of similarity function (cosine, L2, dot product) affect performance when using pretrained features in few-shot classification?
- RQ3Does the performance of few-shot classification models vary significantly across in-distribution and out-of-distribution datasets when using pretrained features?
- RQ4How does the depth and architecture of the backbone affect few-shot classification accuracy when features are extracted from pretrained models?
- RQ5Do established best practices from end-to-end few-shot learning (e.g., L2 distance) remain valid when using pretrained features?
Key findings
- Supervised ImageNet-pretrained models consistently outperform unsupervised and adversarially robust models in few-shot classification, even on out-of-distribution datasets like MNIST and SVHN.
- Models pre-trained with adversarial robustness show smaller performance drops when transferred to out-of-distribution datasets, though their absolute accuracy is slightly lower than standard supervised models.
- Unsupervised pretraining methods do not achieve comparable performance to supervised pretraining and do not transfer better to few-shot tasks.
- Cosine similarity consistently outperforms L2 distance as a similarity function when using pretrained features, contrary to findings in end-to-end trained few-shot models.
- For 1-5 shots, similarity-based methods like Prototype Networks with cosine similarity perform best; for 10+ shots, fine-tuning the last layer (SGD logistic regression) becomes more effective.
- EfficientNet-B7 shows the most robust performance across all datasets, while the WSL model achieves the highest peak accuracy under optimal hyperparameters.
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.