Abstract
Vision-Language Models (VLMs) like CLIP demonstrate impressive zero-shot capabilities but often suffer from performance degradation under distribution shifts. Existing Test-Time Adaptation (TTA) methods either incur high computational costs through backpropagation or rely on limited, rigid cache-based updates. We present ETTA (Efficient Test-Time Adaptation), a training-free framework that enables real-time adaptation through dynamic embedding updates. ETTA utilizes an adaptive prompt ensembling strategy and a recursive update module that functions as an unbounded cache, achieving state-of-the-art performance with minimal overhead.
Introduction
The "zero-shot" generalization of VLMs is a cornerstone of modern computer vision. However, real-world data often deviates from the training distribution (e.g., sketches, low-resolution images, or domain-specific textures), leading to significant accuracy drops. Test-Time Adaptation (TTA) aims to mitigate this by adjusting the model during inference. Current approaches face a dilemma: prompt-tuning methods are computationally expensive due to gradient updates, while cache-based methods are limited by fixed memory and sensitivity to noisy labels. ETTA addresses these challenges by providing a fast, training-free alternative that leverages the entire test stream.
Methodology
ETTA consists of three primary components designed to work in concert without traditional training:
- Adaptive Ensemble Module: Instead of using a static average of all text prompts, ETTA dynamically filters prompts for each image. It retains only the top $\alpha$ percentile of prompts based on their similarity to the image embedding, reducing noise from irrelevant descriptions.
- Recursive Update Module: This module maintains a single contextual embedding per class. As new test samples arrive, these embeddings are updated recursively. This approach effectively creates an "unbounded cache" that incorporates information from every sample in the stream without increasing memory requirements.
- Adaptive Fusion Module: To produce the final classification, ETTA fuses the scores from the text encoder and the recursively updated visual embeddings. The fusion weights are determined dynamically based on the entropy (confidence) of each prediction.
Experimental Evaluation
ETTA was evaluated on ImageNet variants (ImageNet-A, -V2, -R, -S) and ten cross-domain benchmarks. The results demonstrate that ETTA consistently outperforms both zero-shot CLIP and existing TTA methods across various backbones.
Key Results
- Efficiency: ETTA processed 50,000 ImageNet samples in 19 minutes, significantly faster than tuning-based methods like TPT (19.5 hours) or DiffTPT (51 hours).
- Accuracy: ETTA achieved a 1.4% improvement over the previous state-of-the-art (TDA) on ViT-B/16 for cross-domain tasks.
- Robustness: The recursive update strategy proves more resilient to noisy initial predictions compared to conventional fixed-size caches.
Discussion and Conclusion
ETTA demonstrates that high-performance test-time adaptation does not require expensive gradient updates. By treating the test stream as a continuous source of information and using recursive math to update class prototypes, ETTA achieves a balance of speed and robustness. Future work may explore the integration of data augmentation and few-shot learning to further enhance the stability of the recursive updates.
Summary updated