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

基于平坦度引导的视觉-语言模型测试时适应

Flatness Guided Test-Time Adaptation for Vision-Language Models

School of Cyber Science and Technology, University of Science and Technology of China(中国科学技术大学网络科学与技术学院);National Engineering Laboratory for Brain-Inspired Intelligence Technology and Applications, University of Science and Technology of China(中国科学技术大学脑启发式智能技术与应用国家工程实验室);Peng Cheng Laboratory, Shenzhen, China(深圳鹏城实验室)

Aodi Li, Liansheng Zhuang, Xiao Long, Houqiang Li, Shafei Wang

AI总结:

本文提出基于平坦度引导的视觉-语言模型测试时适应框架,通过训练时的平坦最小值与测试时损失景观的对齐,提升模型在分布偏移下的适应性能。

摘要:

视觉-语言模型(VLMs)的测试时适应(TTA)已成为应对测试时分布偏移的一种技术。最近的研究表明,测试时适应本质上与模型的训练历史密切相关。然而,现有的TTA方法,如测试时提示微调,往往在孤立于模型训练特征的情况下设计适应策略,从而降低了性能。本文认为,通过锐度感知训练获得的平坦度是VLMs测试时适应的高效线索。基于这一见解,本文提出了一种新的基于平坦度的适应框架(FGA),用于统一VLMs的训练和测试时过程。其核心思想是利用训练最小值与测试损失平坦区域之间的对齐来指导适应过程。具体来说,我们的FGA包括一个提示微调阶段和一个测试时适应阶段。在微调阶段,使用锐度感知提示微调方法来识别训练平坦最小值,为后续适应提供几何线索。在测试阶段,提出了一种基于锐度的测试样本选择方法,以确保训练和每个增强测试样本损失景观之间的平坦最小值对齐。与现有TTA方法相比,我们的FGA避免了测试时昂贵的提示参数更新,并显著减少了计算开销。在域泛化和跨数据集基准测试中进行了广泛的实验,证明我们的FGA在现有TTA方法上实现了优越的性能。值得注意的是,当使用ViT-B/16图像编码器时,FGA在所有四个ImageNet out-of-domain变体上平均优于TPT+CoOp 4.88%。

英文摘要:

Test-time adaptation (TTA) of Vision-Language Models (VLMs) has emerged as a technique for tackling distribution shifts during the test time. Recent research indicates that the test-time adaptation is intrinsically linked to the model's training history. However, existing TTA methods, such as Test-time Prompt Tuning, often design adaptation strategies in isolation from the models' training characteristics, which degrade their performance. This paper argues that the flatness acquired via sharpness-aware training is an efficient clue for the test-time adaptation of VLMs. Built on this insight, this paper proposes a novel Flatness-Guided Adaptation framework (FGA) for VLMs to cohesively unify training and test-time procedures. Its core idea is to leverage the alignment between the training minimum and test loss flat regions to guide the adaptation process. Specifically, our FGA consists of a prompt-tuning stage and a test-time adaptation stage. In the tuning stage, a Sharpness-Aware Prompt Tuning method is utilized to identify the training flat minimum, offering a geometric clue of flatness for subsequent adaptation. In the test stage, a Sharpness-based Test Sample Selection approach is proposed to ensure the alignment of flat minima between the training and each augmented test sample's loss landscape. In comparison to existing TTA methods, our FGA avoids the expensive prompt parameter updates during test time, and substantially reduces the computation overhead. Extensive experiments on both domain generalization and cross-dataset benchmarks demonstrate that our FGA achieves superior performance over prevalent TTA methods. Notably, when employing a ViT-B/16 image encoder, FGA even outperforms TPT+CoOp by an average of 4.88% across all four ImageNet out-of-domain variants.

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

↑