Adaptively Fine-Tuning and Ensembling Vision-Language Model for Few-Shot Image Classification
Abstract
The main challenge in few-shot learning (FSL) is overfitting of the model to limited training data. Recently developed vision-language models like CLIP have been employed to alleviate the overfitting issue and achieved state-of-the-art FSL performance. However, such approaches heavily depend on good alignments between images and associated texts, and therefore may not work as expected when image-text alignment is challenging in downstream tasks, e.g., fine-grained and cross domain image classification. In this study, a new CLIP-based fine-tuning and inference framework is proposed to particularly help the model more accurately recognize visually similar classes and also work well in new imaging domains. During fine-tuning, a modified contrastive loss with adaptively weighted negative pairs is proposed to effectively separate visually similar classes and cluster each class more compactly. During inference, an instance level adaptive ensemble strategy is proposed, utilizing the visual prototypes to adaptively complement the prediction from the CLIP's image-text alignment. Extensive experimental evaluations demonstrate the superiority of the proposed framework, outperforming current state-of-the-art methods by a decent margin on twelve public datasets. The source code will be released publicly.
Fields of Study & Subjects
Domain Adaptation and Few-Shot Learning
Multimodal Machine Learning Applications
Face recognition and analysis
Publication details
- Journal / source
- IEEE Transactions on Multimedia
- Publisher
- Institute of Electrical and Electronics Engineers (IEEE)
- Volume
- 28
- Pages
- 6770–6783
- Publication date
- 1 January 2026