On the test-time zero-shot generalization of vision-language models: Do we really need prompt learning?
About
The development of large vision-language models, notably CLIP, has catalyzed research into effective adaptation techniques, with a particular focus on soft prompt tuning. Conjointly, test-time augmentation, which utilizes multiple augmented views of a single image to enhance zero-shot generalization, is emerging as a significant area of interest. This has predominantly directed research efforts toward test-time prompt tuning. In contrast, we introduce a robust MeanShift for Test-time Augmentation (MTA), which surpasses prompt-based methods without requiring this intensive training procedure. This positions MTA as an ideal solution for both standalone and API-based applications. Additionally, our method does not rely on ad hoc rules (e.g., confidence threshold) used in some previous test-time augmentation techniques to filter the augmented views. Instead, MTA incorporates a quality assessment variable for each view directly into its optimization process, termed as the inlierness score. This score is jointly optimized with a density mode seeking process, leading to an efficient training- and hyperparameter-free approach. We extensively benchmark our method on 15 datasets and demonstrate MTA's superiority and computational efficiency. Deployed easily as plug-and-play module on top of zero-shot models and state-of-the-art few-shot methods, MTA shows systematic and consistent improvements.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Image Classification | ImageNet-R | Top-1 Acc77 | 474 | |
| Fine-grained Image Classification | Stanford Cars | Accuracy67.7 | 206 | |
| Image Classification | Cross-domain Benchmark (AIR, CAL, CAR, DTD, EUR, FLWR, FOOD, PETS, SUN, UCF) (test) | AIR Accuracy25.32 | 67 | |
| Fine grained classification | Aircraft | Top-1 Acc24.84 | 62 | |
| Fine grained classification | EuroSAT | Accuracy47.8 | 57 | |
| Image Classification | Tiny-ImageNet | Top-1 Accuracy90.6 | 56 | |
| Image Classification | ImageNet OOD | ImageNet Acc70.08 | 55 | |
| Image Classification | ImageNet A | Accuracy57.03 | 50 | |
| Image Classification | Cross-dataset generalization suite ImageNet to 10 fine-grained datasets | Flower102 Accuracy68.26 | 40 | |
| Fine-grained Image Classification | UCF101 | Accuracy67.8 | 34 |