arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.09500cs.CV
收藏

推进视觉变化下视觉语言模型的可靠测试时适应

Advancing Reliable Test-Time Adaptation of Vision-Language Models under Visual Variations

Tsinghua University(清华大学);Nanyang Technological University(南洋理工大学)

Yiwen Liang, Hui Chen, Yizhe Xiong, Zihan Zhou, Mengyao Lyu, Zijia Lin, Shuaicheng Niu, Sicheng Zhao, Jungong Han, Guiguang Ding

AI总结:

针对视觉语言模型测试时适应中熵不可靠和决策边界不灵活的问题,提出ReTA方法,结合一致性感知熵重加权(CER)和多样性驱动分布校准(DDC)增强可靠性,显著提升分布偏移下的性能。

摘要:

视觉语言模型(VLMs)展现出卓越的零样本能力,但在无标签数据时,在下游任务中难以应对分布偏移,这促使了测试时适应(TTA)的发展,以在无标注情况下提升VLMs在推理时的性能。在各种TTA方法中,基于缓存的方法通过在动态缓存中保留来自低熵样本的历史知识,并促进高效适应,展现出了潜力。然而,这些方法面临两个关键的可靠性挑战:(1)在分布偏移下熵往往变得不可靠,导致缓存中的错误累积和适应性能下降;(2)由于无法适应巨大下游偏移的不灵活决策边界,最终预测可能不可靠。为了解决这些挑战,我们提出了一种可靠测试时适应(ReTA)方法,该方法整合了两种互补策略,从两个视角增强可靠性。首先,为了缓解熵作为缓存构建样本选择标准的不可靠性,我们引入了一致性感知熵重加权(CER),它在缓存更新期间结合一致性约束来对熵进行加权。传统方法仅依赖低熵来进行缓存优先级排序并可能引入噪声,而我们的方法利用预测一致性来维持高质量缓存并促进更稳健的适应。其次,我们提出了多样性驱动分布校准(DDC),将类别文本嵌入建模为多元高斯分布,从而为视觉多样化内容提供自适应决策边界以实现更准确的预测。大量实验表明,ReTA持续优于最先进方法,特别是在真实世界分布偏移下。代码:https://github.com/Evelyn1ywliang/ReTA。

英文摘要:

Vision-language models (VLMs) exhibit remarkable zero-shot capabilities but struggle with distribution shifts in downstream tasks when labeled data is unavailable, which has motivated the development of Test-Time Adaptation (TTA) to improve VLMs' performance during inference without annotations. Among various TTA approaches, cache-based methods show promise by preserving historical knowledge from low-entropy samples in a dynamic cache and fostering efficient adaptation. However, these methods face two critical reliability challenges: (1) entropy often becomes unreliable under distribution shifts, causing error accumulation in the cache and degradation in adaptation performance; (2) the final predictions may be unreliable due to inflexible decision boundaries that fail to accommodate large downstream shifts. To address these challenges, we propose a Reliable Test-time Adaptation (ReTA) method that integrates two complementary strategies to enhance reliability from two perspectives. First, to mitigate the unreliability of entropy as a sample selection criterion for cache construction, we introduce Consistency-aware Entropy Reweighting (CER), which incorporates consistency constraints to weight entropy during cache updating. While conventional approaches rely solely on low entropy for cache prioritization and risk introducing noise, our method leverages predictive consistency to maintain a high-quality cache and facilitate more robust adaptation. Second, we present Diversity-driven Distribution Calibration (DDC), which models class-wise text embeddings as multivariate Gaussian distributions, enabling adaptive decision boundaries for more accurate predictions across visually diverse content. Extensive experiments demonstrate that ReTA consistently outperforms state-of-the-art methods, particularly under real-world distribution shifts. Code: https://github.com/Evelyn1ywliang/ReTA.

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

↑