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/Rethinking Generalization in Few-Shot Classification

Rethinking Generalization in Few-Shot Classification

Markus Hiller, Rongkai Ma, Mehrtash Harandi, Tom Drummond

2022-06-15Few-Shot LearningFew-Shot Image ClassificationClassification
PaperPDFCode(official)

Abstract

Single image-level annotations only correctly describe an often small subset of an image's content, particularly when complex real-world scenes are depicted. While this might be acceptable in many classification scenarios, it poses a significant challenge for applications where the set of classes differs significantly between training and test time. In this paper, we take a closer look at the implications in the context of $\textit{few-shot learning}$. Splitting the input samples into patches and encoding these via the help of Vision Transformers allows us to establish semantic correspondences between local regions across images and independent of their respective class. The most informative patch embeddings for the task at hand are then determined as a function of the support set via online optimization at inference time, additionally providing visual interpretability of `$\textit{what matters most}$' in the image. We build on recent advances in unsupervised training of networks via masked image modelling to overcome the lack of fine-grained labels and learn the more general statistical structure of the data while avoiding negative image-level annotation influence, $\textit{aka}$ supervision collapse. Experimental results show the competitiveness of our approach, achieving new state-of-the-art results on four popular few-shot classification benchmarks for $5$-shot and $1$-shot scenarios.

Results

TaskDatasetMetricValueModel
Image ClassificationCIFAR-FS 5-way (1-shot)Accuracy77.76FewTURE
Image ClassificationMini-Imagenet 5-way (5-shot)Accuracy86.38FewTURE
Image ClassificationMini-Imagenet 5-way (1-shot)Accuracy72.4FewTURE
Image ClassificationFC100 5-way (5-shot)Accuracy63.81FewTURE
Image ClassificationFC100 5-way (1-shot)Accuracy47.68FewTURE
Image ClassificationTiered ImageNet 5-way (1-shot)Accuracy76.32FewTURE
Image ClassificationTiered ImageNet 5-way (5-shot)Accuracy89.96FewTURE
Image ClassificationCIFAR-FS 5-way (5-shot)Accuracy88.9FewTURE
Few-Shot Image ClassificationCIFAR-FS 5-way (1-shot)Accuracy77.76FewTURE
Few-Shot Image ClassificationMini-Imagenet 5-way (5-shot)Accuracy86.38FewTURE
Few-Shot Image ClassificationMini-Imagenet 5-way (1-shot)Accuracy72.4FewTURE
Few-Shot Image ClassificationFC100 5-way (5-shot)Accuracy63.81FewTURE
Few-Shot Image ClassificationFC100 5-way (1-shot)Accuracy47.68FewTURE
Few-Shot Image ClassificationTiered ImageNet 5-way (1-shot)Accuracy76.32FewTURE
Few-Shot Image ClassificationTiered ImageNet 5-way (5-shot)Accuracy89.96FewTURE
Few-Shot Image ClassificationCIFAR-FS 5-way (5-shot)Accuracy88.9FewTURE

Related Papers

GLAD: Generalizable Tuning for Vision-Language Models2025-07-17Adversarial attacks to image classification systems using evolutionary algorithms2025-07-17Efficient Calisthenics Skills Classification through Foreground Instance Selection and Depth Estimation2025-07-16Safeguarding Federated Learning-based Road Condition Classification2025-07-16AI-Enhanced Pediatric Pneumonia Detection: A CNN-Based Approach Using Data Augmentation and Generative Adversarial Networks (GANs)2025-07-13ViT-ProtoNet for Few-Shot Image Classification: A Multi-Benchmark Evaluation2025-07-12Doodle Your Keypoints: Sketch-Based Few-Shot Keypoint Detection2025-07-10An Enhanced Privacy-preserving Federated Few-shot Learning Framework for Respiratory Disease Diagnosis2025-07-10