Noisy Test-Time Adaptation in Vision-Language Models

Chentao Cao, Zhun Zhong, Zhanke Zhou, Tongliang Liu, Yang Liu +2 more
2/20/2025
cs.LG

Official code: tmlr-group/ZS-NTTA (14 stars, last commit 2025-02-22). 1 more implementation below.

Abstract

Test-time adaptation (TTA) aims to address distribution shifts between source and target data by relying solely on target data during testing. In open-world scenarios, models often encounter noisy samples, i.e., samples outside the in-distribution (ID) label space. Leveraging the zero-shot capability of pre-trained vision-language models (VLMs), this paper introduces Zero-Shot Noisy TTA (ZS-NTTA), focusing on adapting the model to target data with noisy samples during test-time in a zero-shot manner. We find existing TTA methods underperform under ZS-NTTA, often lagging behind even the frozen model. We conduct comprehensive experiments to analyze this phenomenon, revealing that the negative impact of unfiltered noisy data outweighs the benefits of clean data during model updating. Also, adapting a classifier for ID classification and noise detection hampers both sub-tasks. Built on this, we propose a framework that decouples the classifier and detector, focusing on developing an individual detector while keeping the classifier frozen. Technically, we introduce the Adaptive Noise Detector (AdaND), which utilizes the frozen model's outputs as pseudo-labels to train a noise detector. To handle clean data streams, we further inject Gaussian noise during adaptation, preventing the detector from misclassifying clean samples as noisy. Beyond the ZS-NTTA, AdaND can also improve the zero-shot out-of-distribution (ZS-OOD) detection ability of VLMs. Experiments show that AdaND outperforms in both ZS-NTTA and ZS-OOD detection. On ImageNet, AdaND achieves a notable improvement of $8.32\%$ in harmonic mean accuracy ($\text{Acc}_\text{H}$) for ZS-NTTA and $9.40\%$ in FPR95 for ZS-OOD detection, compared to SOTA methods. Importantly, AdaND is computationally efficient and comparable to the model-frozen method. The code is publicly available at: https://github.com/tmlr-group/ZS-NTTA.

View on arXivView PDF

Code Implementations(2)

tmlr-group/ZS-NTTAOfficial100%

[ICLR 2025] "Noisy Test-Time Adaptation in Vision-Language Models"

142Shell, PythonFeb 15, 20251 years ago
Aboriginer/ZS-NTTACommunity73%

[ICLR 2025] "Noisy Test-Time Adaptation in Vision-Language Models"

163Shell, PythonFeb 15, 20251 years ago
noisy-test-time-adaptationood-detectionrobustnesstest-time-adaptationvision-language-model

Similar Papers

Cite this paper

@article{cao2025noisy,
  title  = {Noisy Test-Time Adaptation in Vision-Language Models},
  author = {Chentao Cao and Zhun Zhong and Zhanke Zhou and Tongliang Liu and Yang Liu and Kun Zhang and Bo Han},
  year   = {2025},
  eprint = {2502.14604},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.14604v2},
  journal = {ICLR 2025 2025}
}

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/2502.14604.svg)](https://codeofpaper.com/paper/2502.14604)

Discussion