NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Frustratingly Easy Test-Time Adaptation of Vision-Language Models

Matteo Farina, Gianni Franchi, Giovanni Iacca, Massimiliano Mancini, Elisa Ricci · DOI

Abstract

Vision-Language Models (VLMs) like CLIP exhibit remarkable zero-shot capabilities but remain sensitive to distribution shifts. Existing Test-Time Adaptation (TTA) techniques, such as Test-Time Prompt Tuning (TPT), rely on Marginal Entropy Minimization (MEM) to adapt models to unlabeled test samples. However, these methods require expensive backpropagation and their theoretical benefits are often unclear. We introduce ZERO, a "frustratingly simple" optimization-free TTA method. By employing majority voting across augmented views with zero Softmax temperature, ZERO achieves state-of-the-art performance while being 10x faster and 13x more memory-efficient than standard prompt-tuning approaches.

1. Introduction

The robustness of Vision-Language Models (VLMs) under distribution shifts—such as sketches, artistic renditions, or adversarial examples—is a critical challenge. Test-Time Adaptation (TTA) has emerged as a solution, allowing models to adapt to a single unlabeled image at inference time. The current standard, Marginal Entropy Minimization (MEM), generates multiple augmented views of an image and updates model prompts via backpropagation to minimize prediction entropy.

Despite its success, MEM-based TTA faces two significant hurdles: high computational costs and a lack of clarity regarding whether optimization actually improves predictions or merely increases confidence. This paper addresses these issues by proposing ZERO, an optimization-free alternative that leverages the power of simple aggregation.

2. The ZERO Method

ZERO (TTA with "zero" temperature) eliminates the need for gradients and backpropagation. The method follows a streamlined five-step pipeline:

  1. Augmentation: Generate $N$ augmented views (e.g., 64 random crops/flips) of the test image.
  2. Prediction: Process these views through the vision encoder in a single batched forward pass.
  3. Filtering: Retain only the most "confident" views, typically the top 10% with the lowest entropy.
  4. Zero Temperature: Set the Softmax temperature to zero, transforming probability distributions into "one-hot" vectors.
  5. Marginalization: Average these vectors to produce the final prediction.

Mathematically, this process is equivalent to majority voting across the most confident augmented views, requiring only a single batched forward pass and no additional GPU memory for gradients.

3. Theoretical Insights: Overconfidence and Invariance

A key contribution of this work is the theoretical analysis of MEM. The authors demonstrate that minimizing marginal entropy often leaves the final predicted class unchanged, primarily "sharpening" the existing prediction rather than correcting it.

Furthermore, the study reveals that while augmentations provide diverse perspectives of an image, they frequently induce "overconfidence." As shown in the reliability diagrams below, while a model may be well-calibrated on standard data, its Expected Calibration Error (ECE) spikes significantly when processing augmented views. ZERO's use of zero temperature effectively ignores these overconfident probability values, focusing instead on the consensus (the vote) to improve robustness.

Reliability diagrams for ImageNet-1k and its augmented version, illustrating how augmentations lead to overconfidence (ECE increases from 1.93% to 13.24%).

4. Experimental Results

ZERO was evaluated across a rigorous suite of benchmarks, including natural distribution shifts (ImageNet-A, -R, -v2, -Sketch) and fine-grained classification tasks.

4.1 Efficiency and Accuracy

On an NVIDIA RTX 4090, ZERO processes images in 0.06s, a 10x speedup over TPT (0.57s). Memory usage is also dramatically reduced from 17.6GB to 1.4GB. Despite this efficiency, ZERO consistently matches or outperforms more complex methods. For instance, on the challenging ImageNet-A dataset, ZERO improved accuracy by +4.84% over TPT.

4.2 Versatility

ZERO is highly versatile, working "out of the box" with various VLM architectures and initializations, including multi-modal prompt learners like MaPLe and ensemble methods.

Accuracy results for ZERO compared to baselines across various datasets and model architectures, demonstrating consistent improvements.

5. Conclusion and Future Work

ZERO demonstrates that the performance gains of complex test-time prompt tuning can be largely recovered through smart aggregation of augmented views. While highly effective, the method faces limitations in domains like satellite imagery (EuroSAT), where standard augmentations are uninformative. Future research may explore latent-space augmentations to further enhance speed and refine the theoretical framework to account for correlations between augmented views.

Summary updated

BibTeX
@inproceedings{farina2024frustratingly,
  author = {Matteo Farina and Gianni Franchi and Giovanni Iacca and Massimiliano Mancini and Elisa Ricci},
  title = {{Frustratingly Easy Test-Time Adaptation of Vision-Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=eQ6VjBhevn},
}
Figure