arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.14604cs.LG
收藏

视觉-语言模型中的噪声测试时自适应

Noisy Test-Time Adaptation in Vision-Language Models

Hong Kong Baptist University(香港浸会大学);Hefei University of Technology(合肥工业大学);The University of Sydney(悉尼大学);University of California, Santa Cruz(加州大学圣克鲁兹分校);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学);Carnegie Mellon University(卡内基梅隆大学)

Chentao Cao, Zhun Zhong, Zhanke Zhou, Tongliang Liu, Yang Liu, Kun Zhang, Bo Han

AI总结:

本文针对视觉-语言模型在测试时遇到噪声样本的问题,提出零样本噪声测试时自适应框架ZS-NTTA,通过解耦分类器与检测器并设计自适应噪声检测器AdaND,在保持分类器冻结的同时提升噪声检测和分布外检测性能,在ImageNet上显著超越现有方法。

摘要:

测试时自适应(TTA)旨在通过测试期间仅依赖目标数据来解决源数据与目标数据之间的分布偏移问题。在开放世界场景中,模型经常会遇到噪声样本,即分布内(ID)标签空间之外的样本。利用预训练视觉-语言模型(VLM)的零样本能力,本文提出了零样本噪声测试时自适应(ZS-NTTA),专注于在测试期间以零样本方式使模型适应包含噪声样本的目标数据。我们发现现有TTA方法在ZS-NTTA下表现不佳,往往甚至落后于冻结模型。我们进行了全面的实验来分析这一现象,揭示了在模型更新过程中,未过滤噪声数据的负面影响超过了干净数据带来的收益。同时,为ID分类和噪声检测适配一个分类器会损害这两个子任务。基于此,我们提出了一个将分类器和检测器解耦的框架,专注于开发一个独立的检测器,同时保持分类器冻结。在技术层面,我们引入了自适应噪声检测器(AdaND),它利用冻结模型的输出作为伪标签来训练噪声检测器。为了处理干净数据流,我们进一步在自适应过程中注入高斯噪声,防止检测器将干净样本误分类为噪声样本。除了ZS-NTTA,AdaND还可以提升VLM的零样本分布外(ZS-OOD)检测能力。实验表明,AdaND在ZS-NTTA和ZS-OOD检测方面均表现优异。在ImageNet上,与SOTA方法相比,AdaND在ZS-NTTA的调和平均准确率(Acc_H)上实现了8.32%的显著提升,在ZS-OOD检测的FPR95上实现了9.40%的提升。重要的是,AdaND计算效率高,与模型冻结方法相当。代码已公开于:https://github.com/tmlr-group/ZS-NTTA。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑