Enhancing Few-shot CLIP with Semantic-Aware Fine-Tuning
Not on the map. Why?
Abstract (arXiv)
Learning generalized representations from limited training samples is crucial for applying deep neural networks in low-resource scenarios. Recently, methods based on Contrastive Language-Image Pre-training (CLIP) have exhibited promising performance in few-shot adaptation tasks. To avoid catastrophic forgetting and overfitting caused by few-shot fine-tuning, existing works usually freeze the parameters of CLIP pre-trained on large-scale datasets, overlooking the possibility that some parameters might not be suitable for downstream tasks. To this end, we revisit CLIP's visual encoder with a specific focus on its distinctive attention pooling layer, which performs a spatial weighted-sum of the dense feature maps. Given that dense feature maps contain meaningful semantic information, and different semantics hold varying importance for diverse downstream tasks (such as prioritizing semantics like ears and eyes in pet classification tasks rather than side mirrors), using the same weighted-sum operation for dense features across different few-shot tasks might not be appropriate. Hence, we propose fine-tuning the parameters of the attention pooling layer during the training process to encourage the model to focus on task-specific semantics. In the inference process, we perform residual blending between the features pooled by the fine-tuned and the original attention pooling layers to incorporate both the few-shot knowledge and the pre-trained CLIP's prior knowledge. We term this method as Semantic-Aware FinE-tuning (SAFE). SAFE is effective in enhancing the conventional few-shot CLIP and is compatible with the existing adapter approach (termed SAFE-A).
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). First posted on arXiv 8 Nov 2023.
Builds on
0 of 0 references.
No references here yet.
Built on by
Citing papers per year: 2024: 1; 2025: 3.
4 papers.
- 2025Kelp: A Streaming Safeguard for Large Models via Latent Dynamics-Guided Risk Detectioncited by 6
- 2024Flat Posterior Does Matter For Bayesian Model Averagingcited by 1
- 2025Bayesian Natural Gradient Fine-Tuning of CLIP Models via Kalman Filteringcited by 1
- 2025Task-Adapter++: Task-specific Adaptation with Order-aware Alignment for Few-shot Action Recognitioncited by 0
- 2025Bayesian Natural Gradient Fine-Tuning of CLIP Models via Kalman Filtering3 Nov 2025
- 2025Kelp: A Streaming Safeguard for Large Models via Latent Dynamics-Guided Risk Detection9 Oct 2025
- 2025Task-Adapter++: Task-specific Adaptation with Order-aware Alignment for Few-shot Action Recognition9 May 2025
- 2024Flat Posterior Does Matter For Bayesian Model Averaging21 Jun 2024