[Paper Review] Rethinking Generalization in Few-Shot Classification
The paper introduces FewTURE, a token-reweighting, similarity-based few-shot classifier that operates with online optimization at inference and demonstrates benefits of self-supervised pretraining for generalization in few-shot tasks, along with comprehensive ablations on model size and components.
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 $ extit{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 `$ extit{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, $ extit{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.
Motivation & Objective
- Motivate improved generalization in few-shot classification beyond conventional prototypes by leveraging token-level information within transformers.
- Propose a token-reweighting mechanism that adapts at inference through online optimization to select informative image patches for classification.
- Assess the role of self-supervised pretraining versus supervised pretraining in mitigating supervision collapse and enhancing few-shot performance.
- Examine how model size influences few-shot performance and identify practical backbone choices and training dynamics for strong results.
Proposed method
- Introduce FewTURE, a patch/token-based classifier that uses a task-specific similarity score aggregated with logsumexp across tokens.
- Implement online optimization to learn token importance weights during inference, enabling selective attention to informative regions.
- Use temperature scaling on embedding similarity logits to stabilize and adapt class logits across tokens.
- Pretrain backbones with self-supervised masked image modeling and compare to supervised pretraining under a fixed evaluation protocol.
- Conduct ablations on inner-loop token reweighting steps, aggregation methods, and similarity metrics to justify design choices.
- Report training and inference details including backbone variants (ViT-small, Swin-tiny) and hardware used.
Experimental results
Research questions
- RQ1Does a token-reweighting based inference procedure improve few-shot generalization compared to fixed prototypes?
- RQ2How does self-supervised pretraining affect generalization in few-shot settings relative to supervised pretraining?
- RQ3What is the impact of model size on few-shot performance, and which backbones yield best results under FewTURE?
- RQ4How do token aggregation and similarity metric choices affect classification accuracy in FewTURE?
- RQ5What is the effect of the number of online optimization steps on accuracy and inference time?
Key findings
- FewTURE with token reweighting achieves competitive or stateful performance across mini ImageNet, tiered ImageNet, CIFAR-FS, and FC-100 datasets.
- Self-supervised pretraining provides a significant advantage for FewTURE, likely due to avoiding supervision collapse and promoting more general representations.
- Increasing inner-loop reweighting steps improves accuracy with diminishing returns and higher inference time, with 5–15 steps offering a good trade-off.
- Logsumexp-based aggregation of token logits and temperature-scaled cosine similarity yield superior performance over mean aggregation or alternative metrics.
- Model size alone is not a reliable predictor of few-shot performance; smaller ViT-tiny/ViT-small backbones can be highly effective, and larger backbones offer limited gains in some cases.
- Ablations show the importance of token reweighting and the stability provided by temperature scaling in embedding similarities.
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.