Unlocking Few-Shot Capabilities in LVLMs via Prompt Conditioning and Head Selection
Organizations: Université Paris-Saclay, CNRS, ENS Paris-Saclay, Centre Borelli, France · École Polytechnique, AMIAD, France · Institut Universitaire de France
Abstract
Current Large Vision Language Models (LVLMs) excel at many zero-shot tasks like image captioning, visual question answering and OCR. However, these same models suffer from poor performance at image classification tasks, underperforming against CLIP-based methods. Notably, this gap is surprising because many LVLMs use CLIP-pretrained vision encoders. Yet LVLMs are not inherently limited by CLIP's architecture with independent vision and text encoders. In CLIP, this separation biases classification toward class-name matching rather than joint visual-text reasoning. In this paper we show that, despite their poor raw performance, LVLMs can improve visual feature class separability at inference using prompt conditioning, and LVLMs' internal representations, especially attention heads, can outperform the model itself at zero-shot and few-shot classification. We introduce Head Ensemble Classifiers (HEC) to bridge the performance gap between CLIP-based and LVLM-based classification methods. Inspired by Gaussian Discriminant Analysis, HEC ranks the most discriminative vision and text heads and combines them into a training-free classifier. We show that HEC achieves state-of-the-art performance in few-shot and zero-shot classification across 12 datasets.
Figures & tables
| Model | Method | PETS | ESAT | UCF | SUN | CAL | DTD | AIR | FOOD | FLWR | CARS | BIRD | SIGN | AVG |
| DINOv1 | Probing | |||||||||||||
| DINOv2 | Probing | |||||||||||||
| DINOv3 | Probing | |||||||||||||
| OpenAI CLIP | Probing | |||||||||||||
| OpenCLIP | Probing | |||||||||||||
| DFN | Probing |
| Model | Method | PETS | ESAT | UCF | SUN | CAL | DTD | AIR | FOOD | FLWR | CARS | BIRD | SIGN | AVG |
| DFN | Zero-Shot | |||||||||||||
| DFN+LLM (Qwen2-VL) | Baseline | |||||||||||||
| ST [ 53 ] | ||||||||||||||
| HEC-T | ||||||||||||||
| {\color[rgb]{0,0.4688,0}\raisebox{0.86108pt}{\scriptsize+}11.1} | {\color[rgb]{0,0.4688,0}\raisebox{0.86108pt}{\scriptsize+}20.4} | {\color[rgb]{0,0.4688,0}\raisebox{0.86108pt}{\scriptsize+}7.0} | {\color[rgb]{0,0.4688,0}\raisebox{0.86108pt}{\scriptsize+}2.8} | {\color[rgb]{0,0.4688,0}\raisebox{0.86108pt}{\scriptsize+}0.9} | {\color[rgb]{0,0.4688,0}\raisebox{0.86108pt}{\scriptsize+}13.3} | {\color[rgb]{0,0.4688,0}\raisebox{0.86108pt}{\scriptsize+}16.6} | {\color[rgb]{0,0.4688,0}\raisebox{0.86108pt}{\scriptsize+}4.0} | {\color[rgb]{0,0.4688,0}\raisebox{0.86108pt}{\scriptsize+}12.9} | {\color[rgb]{0,0.4688,0}\raisebox{0.86108pt}{\scriptsize+}6.7} | {\color[rgb]{0,0.4688,0}\raisebox{0.86108pt}{\scriptsize+}16.2} | {\color[rgb]{0,0.4688,0}\raisebox{0.86108pt}{\scriptsize+}9.3} | {\color[rgb]{0,0.4688,0}\raisebox{0.86108pt}{\scriptsize+}10.1} | ||
| SigLIP | Zero-Shot |
| Model | Method | PETS | ESAT | UCF | SUN | CAL | DTD | AIR | FOOD | FLWR | CARS | BIRD | SIGN | AVG |
| DFN | Zero-Shot † [ 57 ] | |||||||||||||
| Probing [ 6 ] | ||||||||||||||
| TipAdapter [ 71 ] | ||||||||||||||
| GDA [ 64 ] | ||||||||||||||
| ProKeR [ 4 ] | ||||||||||||||
| DFN+LLM (Qwen2-VL) | Zero-Shot † [ 53 ] |
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Domain prompt |
| PETS | What breed is the animal in this image? |
| ESAT | What type of remote sensing image does the given image belong to? |
| UCF | What action is the person performing in this video frame? |
| SUN | What scene is shown in this image? |
| CAL | What is the main object in this photo? |
| DTD | What texture pattern is visible in this image? |
| Category | Method | Acc. ( ) |
| Voting | Majority vote | |
| Voting | Weighted vote | |
| Proba | Mean | |
| Proba | Score weights | |
| Proba | Optimal weights | |
| Logit | Mean |
| HEC-T | HEC-V | |||||
| Heads | Selection Method | Acc. | Gain | Acc. | Gain | |
| Task | HEC Oracle | |||||
| Domain | HEC Oracle | {\color[rgb]{0,0.4688,0}\uparrow+\mkern 1.0mu0.01} | {\color[rgb]{0,0.4688,0}\uparrow+\mkern 1.0mu0.39} | |||
| Class | HEC Test-time | {\color[rgb]{0.6289,0,0}\downarrow-\mkern 1.0mu0.08} | {\color[rgb]{0.6289,0,0}\downarrow-\mkern 1.0mu0.04} | |||
| Method | Finedefics [ 22 ] | Idefics2 [ 33 ] | LLaVA-OV [ 35 ] |
| Zero-Shot | |||
| Probing | |||
| HEC-VT | |||
| + 2.1 | + 3.4 | + 2.9 |
Large Vision-Language Models
Large vision-language models (LVLMs) connect image and video perception with language generation, reasoning, and interactive tasks.
See all 401 papers