Large Multimodal Models as General In-Context Classifiers
Organizations: University of Trento · Fondazione Bruno Kessler
Abstract
Which multimodal model should we use for classification? Previous studies suggest that the answer lies in CLIP-like contrastive Vision-Language Models (VLMs), due to their remarkable performance in zero-shot classification. In contrast, Large Multimodal Models (LMM) are more suitable for complex tasks. In this work, we argue that this answer overlooks an important capability of LMMs: in-context learning. We benchmark state-of-the-art LMMs on diverse datasets for closed-world classification and find that, although their zero-shot performance is lower than CLIP's, LMMs with a few in-context examples can match or even surpass contrastive VLMs with cache-based adapters, their "in-context" equivalent. We extend this analysis to the open-world setting, where the generative nature of LMMs makes them more suitable for the task. In this challenging scenario, LMMs struggle whenever provided with imperfect context information. To address this issue, we propose CIRCLE, a simple training-free method that assigns pseudo-labels to in-context examples, iteratively refining them with the available context itself. Through extensive experiments, we show that CIRCLE establishes a robust baseline for open-world classification, surpassing VLM counterparts and highlighting the potential of LMMs to serve as unified classifiers, and a flexible alternative to specialized models.
Figures & tables
| Model | Zero-Shot | Few-Shot & In-Context Learning | |||||
| 4-shot | 8-shot | 16-shot | |||||
| Contrastive Vision-Language Models (“Few-Shot” = Tip-Adapter) | |||||||
| CLIP ViT-B/32 | 62.6 | 66.0 | +3.4 | 68.2 | +5.6 | 70.1 | +7.5 |
| k-NN | N/A | 54.2 | -8.4 | 60.3 | -2.3 | 64.8 | +2.2 |
| CLIP ViT-B/16 | 65.6 | 69.7 | +4.1 | 71.4 | +5.8 | 74.4 | +8.8 |
| k-NN | N/A | 61.6 | -4.0 | 66.8 | +1.2 | 70.9 | +5.3 |
| Model | Method | Prototypical | Non-prototypical | Fine-grained | Very fine-grained | ||||||||||||||||
| LI | SS | bCS | mCS | LI | SS | bCS | mCS | LI | SS | bCS | mCS | LI | SS | bCS | mCS | ||||||
| Contrastive Vision-Language Models | |||||||||||||||||||||
| CaSED [ 10 ] (ViT-L/14) | 46.3 | 58.9 | 59.8 | 58.8 | 18.6 | 41.8 | 42.4 | 41.8 | 46.6 | 60.7 | 61.6 | 60.7 | 47.1 | 38.5 | 38.5 | 38.5 | |||||
| CLIP retrieval (ViT-L/14) | 42.9 | 40.2 | 60.6 | 31.1 | 28.1 | 43.4 | 32.4 | 23.8 | 45.4 | 42.9 | 65.4 | 31.8 | 18.1 | 39.7 | 56.1 | 29.5 | |||||
| Large Multimodal Models | |||||||||||||||||||||
| Zero-Shot | 78.7 | 51.9 | 76.0 | 43.7 | 42.6 | 30.8 | 49.8 | 29.2 | 64.0 | 39.2 | 62.9 | 31.9 | 63.0 | 34.5 | 43.4 | 33.1 | |||||
Appendix figures & tables30 assets
Supplementary material from the paper’s appendix.
Appendix
| Abbr. | Dataset | Images | Classes |
| C101 | Caltech101 [ 14 ] | 2,465 | 100 |
| DTD | DTD [ 9 ] | 1,692 | 47 |
| ESAT | Eurosat [ 17 ] | 8,100 | 10 |
| FGVC | FGVC Aircraft [ 24 ] | 3,333 | 100 |
| FLWR | Flowers102 [ 27 ] | 2,463 | 102 |
| FOOD | Food101 [ 5 ] | 30,300 | 101 |
| Method | Shots | Prototypical | Non-prototypical | Fine-grained | Very fine-grained | ||||||||||||||||
| LI | SS | bCS | mCS | LI | SS | bCS | mCS | LI | SS | bCS | mCS | LI | SS | bCS | mCS | ||||||
| LLaVa OneVision 7B | |||||||||||||||||||||
| Zero-Shot | - | 53.2 | 56.2 | 62.0 | 53.4 | 28.1 | 31.6 | 43.8 | 30.2 | 40.4 | 39.0 | 43.9 | 37.2 | 76.7 | 31.8 | 32.3 | 30.9 | ||||
| Random Ctx | 4 | 13.9 | 33.7 | 35.1 | 33.9 | 7.3 | 25.3 | 35.7 | 23.7 | 20.8 | 34.2 | 34.5 | 34.2 | 74.1 | 30.8 | 30.8 | 30.8 | ||||
| 8 | 14.2 | 33.1 | 35.5 | 33.2 | 6.8 | 25.9 | 37.9 | 24.0 | 20.7 | 34.3 | 34.6 | 34.3 | 74.1 | 30.8 | 30.8 | 30.8 | |||||
| 16 | 14.0 | 29.3 | 36.7 | 29.6 | 8.6 | 26.0 | 39.3 | 24.1 | 21.0 | 33.2 | 35.8 | 33.4 | 75.8 | 30.8 | 30.8 | 30.8 | |||||
| Method | Shots | Prototypical | Non-prototypical | Fine-grained | Very fine-grained | ||||||||||||||||
| LI | SS | bCS | mCS | LI | SS | bCS | mCS | LI | SS | bCS | mCS | LI | SS | bCS | mCS | ||||||
| Phi-3.5-Vision | |||||||||||||||||||||
| Zero-Shot | - | 60.7 | 48.2 | 65.6 | 46.1 | 28.7 | 24.9 | 36.7 | 24.1 | 50.7 | 32.1 | 47.2 | 31.3 | 54.2 | 29.5 | 36.3 | 29.8 | ||||
| Random Ctx | 4 | 49.2 | 57.5 | 60.9 | 57.3 | 14.7 | 27.2 | 35.4 | 27.2 | 29.1 | 35.9 | 43.1 | 35.6 | 51.7 | 27.7 | 32.3 | 26.5 | ||||
| 8 | 45.0 | 53.4 | 57.6 | 53.3 | 11.3 | 27.1 | 37.5 | 27.5 | 26.7 | 34.7 | 41.5 | 34.7 | 56.7 | 28.2 | 31.7 | 27.3 | |||||
| 16 | 40.3 | 48.3 | 54.4 | 48.4 | 10.4 | 26.3 | 36.4 | 27.4 | 24.1 | 26.3 | 36.4 | 27.4 | 58.2 | 27.1 | 31.7 | 26.3 | |||||
| Method | Shots | C101 | DTD | ESAT | FGVC | FLWR | FOOD | PETS | CARS | S397 | U101 | Avg. | ||
| LLaVa OneVision 7B | ||||||||||||||
| Zero-Shot | - | 68.9 | 32.0 | 19.4 | 29.4 | 37.5 | 41.6 | 37.8 | 34.3 | 43.4 | 43.4 | 38.8 | ||
| Random Ctx | 4 | 41.2 | 24.7 | 24.9 | 29.4 | 32.1 | 33.0 | 37.6 | 32.2 | 26.3 | 26.3 | 30.8 | -8.0 | |
| 8 | 40.1 | 24.1 | 27.1 | 29.4 | 32.0 | 33.3 | 37.7 | 32.2 | 26.1 | 26.4 | 30.8 | -8.0 | ||
| 16 | 31.5 | 25.3 | 26.3 | 29.4 | 27.8 | 34.0 | 37.8 | 32.2 | 27.2 | 26.3 | 29.8 | -9.0 | ||
| Pseudo ICL | 4 | 19.9 | 17.2 | 17.6 | 29.4 | 26.3 | 45.1 | 35.1 | 31.8 | 42.5 | 20.0 | 28.5 | -10.3 | |
| Method | Shots | C101 | DTD | ESAT | FGVC | FLWR | FOOD | PETS | CARS | S397 | U101 | Avg. | ||
| Phi-3.5-Vision | ||||||||||||||
| Zero-Shot | - | 53.2 | 29.1 | 7.4 | 19.9 | 31.6 | 40.2 | 24.6 | 39.1 | 43.2 | 38.3 | 32.6 | ||
| Random Ctx | 4 | 67.0 | 26.9 | 16.9 | 20.5 | 36.3 | 41.8 | 29.6 | 34.9 | 48.1 | 37.8 | 36.0 | +3.4 | |
| 8 | 62.1 | 24.7 | 24.1 | 22.9 | 36.6 | 37.5 | 30.1 | 33.5 | 44.8 | 32.6 | 34.9 | +2.3 | ||
| 16 | 57.4 | 24.2 | 25.1 | 21.0 | 35.3 | 34.2 | 29.4 | 33.2 | 39.3 | 29.7 | 32.9 | +2.3 | ||
| Pseudo ICL | 4 | 49.6 | 26.0 | 6.6 | 18.8 | 31.7 | 39.3 | 28.0 | 46.0 | 38.5 | 35.8 | 32.1 | -0.5 | |
| Method | Shots | C101 | DTD | ESAT | FGVC | FLWR | FOOD | PETS | CARS | S397 | U101 | Avg. | ||
| LLaVa OneVision 7B | ||||||||||||||
| Zero-Shot | - | 79.1 | 46.9 | 41.0 | 29.4 | 51.9 | 41.9 | 37.9 | 35.3 | 44.8 | 43.5 | 45.2 | ||
| Random Ctx | 4 | 44.0 | 30.3 | 50.4 | 29.4 | 32.7 | 33.0 | 37.6 | 32.2 | 26.3 | 26.3 | 34.2 | -11.0 | |
| 8 | 44.9 | 30.9 | 56.4 | 29.4 | 32.7 | 33.3 | 37.7 | 32.2 | 26.1 | 26.4 | 35.0 | -10.2 | ||
| 16 | 46.2 | 36.4 | 55.2 | 29.4 | 35.5 | 34.0 | 37.8 | 32.2 | 27.2 | 26.3 | 36.0 | -9.2 | ||
| Pseudo ICL | 4 | 33.0 | 35.0 | 38.6 | 29.4 | 35.1 | 49.7 | 35.3 | 32.9 | 49.2 | 20.9 | 35.9 | -9.3 | |
| Method | Shots | C101 | DTD | ESAT | FGVC | FLWR | FOOD | PETS | CARS | S397 | U101 | Avg. | ||
| Phi-3.5-Vision | ||||||||||||||
| Zero-Shot | - | 73.6 | 43.5 | 16.4 | 29.6 | 44.9 | 58.1 | 38.7 | 43.0 | 57.6 | 50.1 | 45.5 | ||
| Random Ctx | 4 | 71.1 | 34.1 | 29.2 | 29.3 | 42.5 | 50.2 | 36.7 | 35.3 | 50.6 | 42.7 | 42.2 | -3.3 | |
| 8 | 67.4 | 32.0 | 41.6 | 29.3 | 41.2 | 46.3 | 36.9 | 34.1 | 47.7 | 38.9 | 41.5 | -4.0 | ||
| 16 | 64.7 | 31.9 | 40.1 | 29.3 | 41.0 | 42.7 | 36.6 | 34.1 | 44.2 | 37.2 | 40.2 | -5.3 | ||
| Pseudo ICL | 4 | 69.3 | 40.9 | 16.1 | 29.2 | 41.9 | 58.9 | 45.1 | 54.4 | 54.2 | 48.3 | 45.8 | +0.3 | |
| Method | Shots | C101 | DTD | ESAT | FGVC | FLWR | FOOD | PETS | CARS | S397 | U101 | Avg. | ||
| LLaVa OneVision 7B | ||||||||||||||
| Zero-Shot | - | 64.1 | 30.0 | 17.6 | 29.4 | 32.5 | 41.4 | 37.8 | 32.5 | 42.6 | 43.1 | 37.1 | ||
| Random Ctx | 4 | 41.6 | 25.6 | 19.3 | 29.4 | 32.1 | 33.0 | 37.6 | 32.2 | 26.3 | 26.3 | 30.3 | -6.8 | |
| 8 | 40.4 | 25.2 | 20.4 | 29.4 | 32.0 | 33.3 | 37.7 | 32.2 | 26.1 | 26.4 | 30.3 | -6.8 | ||
| 16 | 32.1 | 25.5 | 20.3 | 29.4 | 28.3 | 34.0 | 37.8 | 32.2 | 27.2 | 26.3 | 29.3 | -7.8 | ||
| Pseudo ICL | 4 | 23.3 | 22.5 | 16.3 | 29.4 | 27.1 | 41.9 | 35.1 | 30.2 | 37.8 | 20.3 | 28.4 | -8.7 | |
| Method | Shots | C101 | DTD | ESAT | FGVC | FLWR | FOOD | PETS | CARS | S397 | U101 | Avg. | ||
| Phi-3.5-Vision | ||||||||||||||
| Zero-Shot | - | 53.1 | 28.8 | 7.4 | 21.2 | 32.3 | 36.6 | 25.0 | 38.3 | 39.2 | 36.1 | 31.8 | ||
| Random Ctx | 4 | 67.0 | 27.5 | 16.6 | 20.5 | 36.3 | 41.3 | 29.4 | 32.4 | 47.6 | 37.3 | 35.6 | +3.8 | |
| 8 | 62.0 | 25.3 | 24.3 | 22.9 | 36.6 | 37.6 | 29.8 | 31.7 | 44.5 | 32.8 | 34.8 | +3.0 | ||
| 16 | 57.6 | 24.9 | 26.5 | 21.0 | 35.3 | 35.3 | 29.2 | 31.6 | 39.2 | 30.9 | 33.1 | +1.3 | ||
| Pseudo ICL | 4 | 47.4 | 25.3 | 6.7 | 20.8 | 27.3 | 32.7 | 29.2 | 44.3 | 32.8 | 32.4 | 29.9 | -1.9 | |
| Method | Shots | C101 | DTD | ESAT | FGVC | FLWR | FOOD | PETS | CARS | S397 | U101 | Avg. | ||
| LLaVa OneVision 7B | ||||||||||||||
| Zero-Shot | - | 81.3 | 45.6 | 11.8 | 68.9 | 48.9 | 22.0 | 50.2 | 84.4 | 25.0 | 27.0 | 46.5 | ||
| Random Ctx | 4 | 24.3 | 6.6 | 9.9 | 67.9 | 18.0 | 4.5 | 40.0 | 80.4 | 3.6 | 5.3 | 26.0 | -20.5 | |
| 8 | 25.1 | 7.0 | 9.0 | 67.9 | 17.3 | 4.5 | 40.4 | 80.4 | 3.3 | 4.3 | 25.9 | -20.6 | ||
| 16 | 21.8 | 16.3 | 7.8 | 0.0 | 6.5 | 2.6 | 0.0 | 0.0 | 0.7 | 0.3 | 5.6 | -40.9 | ||
| Pseudo ICL | 4 | 3.1 | 2.8 | 5.1 | 68.9 | 7.7 | 24.4 | 28.9 | 71.8 | 36.3 | 2.0 | 25.1 | -21.4 | |
| Method | Shots | C101 | DTD | ESAT | FGVC | FLWR | FOOD | PETS | CARS | S397 | U101 | Avg. | ||
| Phi-3.5-Vision | ||||||||||||||
| Zero-Shot | - | 75.0 | 45.6 | 1.7 | 60.7 | 61.8 | 42.9 | 47.4 | 47.7 | 46.4 | 38.8 | 46.8 | ||
| Random Ctx | 4 | 66.6 | 19.9 | 5.0 | 39.2 | 46.5 | 20.0 | 20.7 | 64.2 | 31.9 | 19.2 | 33.3 | -13.5 | |
| 8 | 61.7 | 15.0 | 2.8 | 47.9 | 44.0 | 14.5 | 21.7 | 65.6 | 28.4 | 16.1 | 31.8 | -15.0 | ||
| 16 | 56.5 | 15.4 | 0.8 | 55.6 | 43.4 | 8.6 | 20.2 | 60.9 | 24.1 | 15.0 | 30.0 | -16.8 | ||
| Pseudo ICL | 4 | 66.9 | 34.5 | 1.0 | 35.7 | 40.4 | 44.0 | 45.1 | 14.1 | 41.1 | 35.5 | 35.8 | -11.0 | |
| Method | Prototypical | Non-prototypical | Fine-grained | Very fine-grained | ||||||||||||||||
| LI | SS | bCS | mCS | LI | SS | bCS | mCS | LI | SS | bCS | mCS | LI | SS | bCS | mCS | |||||
| Qwen2-VL 7B | ||||||||||||||||||||
| Zero-Shot | 78.7 | 51.9 | 76.0 | 43.7 | 42.6 | 30.8 | 49.8 | 29.2 | 64.0 | 39.2 | 62.9 | 31.9 | 63.0 | 34.5 | 43.4 | 33.1 | ||||
| Pseudo ICL | 65.9 | 62.9 | 70.5 | 61.4 | 36.5 | 36.5 | 44.3 | 36.3 | 54.0 | 54.0 | 59.3 | 52.6 | 40.0 | 40.0 | 46.5 | 39.9 | ||||
| CIRCLE | 90.4 | 60.9 | 71.7 | 59.5 | 58.8 | 38.8 | 46.1 | 38.4 | 83.4 | 56.0 | 66.9 | 55.2 | 83.5 | 42.2 | 51.4 | 38.7 | ||||
| Qwen2.5-VL 7B | ||||||||||||||||||||
| Method | C101 | DTD | ESAT | FGVC | FLWR | FOOD | PETS | CARS | S397 | U101 | Avg. | ||
| Qwen2-VL 7B | |||||||||||||
| Zero-Shot | 55.8 | 28.6 | 20.7 | 20.6 | 41.7 | 50.7 | 25.1 | 48.3 | 48.1 | 43.1 | 38.3 | ||
| Pseudo ICL | 70.0 | 31.9 | 24.3 | 25.8 | 51.6 | 70.0 | 40.5 | 54.2 | 55.7 | 53.4 | 47.7 | +9.4 | |
| CIRCLE | 63.2 | 34.0 | 32.1 | 33.8 | 54.1 | 62.0 | 51.9 | 50.6 | 58.5 | 50.2 | 49.0 | +10.7 | |
| Qwen2.5-VL 7B | |||||||||||||
| Zero-Shot | 48.8 | 28.3 | 19.0 | 36.7 | 47.4 | 52.4 | 41.1 | 54.9 | 47.0 | 44.2 | 42.0 | ||
| Method | C101 | DTD | ESAT | FGVC | FLWR | FOOD | PETS | CARS | S397 | U101 | Avg. | ||
| Qwen2-VL 7B | |||||||||||||
| Zero-Shot | 81.3 | 50.3 | 39.8 | 30.7 | 68.7 | 77.0 | 43.2 | 55.7 | 70.7 | 59.0 | 57.6 | ||
| Pseudo ICL | 79.9 | 44.2 | 32.8 | 30.7 | 59.1 | 77.3 | 41.4 | 62.3 | 61.0 | 55.8 | 54.5 | -3.1 | |
| CIRCLE | 77.0 | 42.7 | 36.2 | 46.9 | 62.6 | 71.7 | 66.5 | 56.0 | 66.3 | 59.3 | 58.5 | +0.9 | |
| Qwen2.5-VL 7B | |||||||||||||
| Zero-Shot | 85.6 | 53.4 | 41.3 | 68.7 | 79.7 | 79.6 | 77.3 | 68.5 | 74.2 | 67.2 | 69.5 | ||
| Method | C101 | DTD | ESAT | FGVC | FLWR | FOOD | PETS | CARS | S397 | U101 | Avg. | ||
| Qwen2-VL 7B | |||||||||||||
| Zero-Shot | 51.3 | 27.9 | 20.6 | 20.4 | 33.3 | 37.3 | 25.0 | 45.8 | 36.1 | 38.9 | 33.7 | ||
| Pseudo ICL | 69.4 | 31.2 | 24.9 | 25.7 | 50.1 | 67.2 | 40.5 | 54.2 | 53.3 | 52.9 | 46.9 | +13.2 | |
| CIRCLE | 61.4 | 34.8 | 31.1 | 30.0 | 54.9 | 61.4 | 49.3 | 47.5 | 57.5 | 49.2 | 47.7 | +14.0 | |
| Qwen2.5-VL 7B | |||||||||||||
| Zero-Shot | 33.0 | 26.3 | 18.6 | 24.7 | 29.5 | 31.8 | 27.3 | 29.4 | 29.3 | 29.6 | 27.9 | ||
| Method | C101 | DTD | ESAT | FGVC | FLWR | FOOD | PETS | CARS | S397 | U101 | Avg. | ||
| Qwen2-VL 7B | |||||||||||||
| Zero-Shot | 84.0 | 59.5 | 17.7 | 55.5 | 68.9 | 74.3 | 46.0 | 63.5 | 72.2 | 47.7 | 58.9 | ||
| Pseudo ICL | 83.9 | 41.8 | 12.6 | 63.6 | 55.8 | 60.3 | 49.0 | 42.8 | 47.8 | 33.7 | 49.1 | -9.8 | |
| CIRCLE | 93.5 | 61.1 | 43.9 | 76.4 | 90.0 | 85.5 | 74.7 | 90.7 | 87.2 | 71.5 | 77.4 | +18.5 | |
| Qwen2.5-VL 7B | |||||||||||||
| Zero-Shot | 84.3 | 58.9 | 12.5 | 68.8 | 74.7 | 76.1 | 70.7 | 69.3 | 81.6 | 66.3 | 66.3 | ||
Multimodal Classification
Multimodal classification combines images, text, audio, signals, metadata, or other inputs to assign labels more accurately and reliably.
See all 199 papers