On the Test-Time Zero-Shot Generalization of Vision-Language Models: Do we Really need Prompt Learning?

Maxime Zanella, Ismail Ben Ayed
2/9/2026

No official code found. Best implementation: MaxZanella/MTA (68 stars, MIT, last commit 2024-12-15).

Abstract

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 trainingand 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.

View on arXivView PDF

Code Implementations(1)

MaxZanella/MTACommunity100%
MIT

[CVPR 2024] Zero-shot method for Vision-Language Models based on a robust formulation of the MeanShift algorithm for Test-time Augmentation (MTA).

684Shell, PythonMar 6, 20241 years agoMIT

Similar Papers

Cite this paper

@article{zanella2026testtime,
  title  = {On the Test-Time Zero-Shot Generalization of Vision-Language Models: Do we Really need Prompt Learning?},
  author = {Maxime Zanella and Ismail Ben Ayed},
  year   = {2026},
  eprint = {2405.02266},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2405.02266},
  journal = {CVPR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.02266.svg)](https://codeofpaper.com/paper/2405.02266)

Discussion