WATT: Weight Average Test-Time Adaptation of CLIP

David Osowiechi, Mehrdad Noori, G. Hakim, Moslem Yazdanpanah, Ali Bahri +5 more
2/3/2026

No official code found. Best implementation: Mehrdad-Noori/WATT (58 stars, MIT, last commit 2024-09-26).

Abstract

Vision-Language Models (VLMs) such as CLIP have yielded unprecedented performance for zero-shot image classification, yet their generalization capability may still be seriously challenged when confronted to domain shifts. In response, we present Weight Average Test-Time Adaptation (WATT) of CLIP, a pioneering approach facilitating full test-time adaptation (TTA) of this VLM. Our method employs a diverse set of templates for text prompts, augmenting the existing framework of CLIP. Predictions are utilized as pseudo labels for model updates, followed by weight averaging to consolidate the learned information globally. Furthermore, we introduce a text ensemble strategy, enhancing overall test performance by aggregating diverse textual cues. Our findings underscore the efficacy of WATT in enhancing performance across diverse datasets, including CIFAR-10-C, CIFAR-10.1, CIFAR-100-C, VisDA-C, and several other challenging datasets, effectively covering a wide range of domain shifts. Notably, these enhancements are achieved without necessitating additional model transformations or trainable modules. Moreover, compared to other Test-Time Adaptation methods, our approach can operate effectively with just a single image. Highlighting the potential of innovative test-time strategies, this research emphasizes their role in fortifying the adaptability of VLMs. The implementation is available at: \url{https://github.com/Mehrdad-Noori/WATT.git}.

View on arXivView PDF

Code Implementations(1)

Mehrdad-Noori/WATTCommunity100%
MIT

[NeurIPS 2024] WATT: Weight Average Test-Time Adaptation of CLIP

583Shell, PythonMay 22, 20242 years agoMIT
clipdomain-shifttest-time-adaptationvision-language-modelweight-average

Similar Papers

Cite this paper

@article{osowiechi2026watt,
  title  = {WATT: Weight Average Test-Time Adaptation of CLIP},
  author = {David Osowiechi and Mehrdad Noori and G. Hakim and Moslem Yazdanpanah and Ali Bahri and Milad Cheraghalikhani and Sahar Dastani and Farzad Beizaee and Ismail Ben Ayed and Christian Desrosiers},
  year   = {2026},
  eprint = {2406.13875},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2406.13875},
  url    = {https://arxiv.org/abs/2406.13875},
  journal = {NEURIPS 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/2406.13875.svg)](https://codeofpaper.com/paper/2406.13875)

Discussion