arXiv:2511.09101cs.CV2025-11被引 3

不更新模型参数,仅调整分类器就能让视觉语言模型在域外场景下更准更稳。

Ultra-Light Test-Time Adaptation for Vision--Language Models

  • 只优化分类头的原型、先验和温度,完全免训练免反向传播。
  • 在多个跨域数据集上平均准确率提升4.7点,误差校准度提高20%-30%。
  • 适合边缘设备或连续流数据,长期运行无性能退化。

视觉语言模型(如CLIP)通过对比图像嵌入与文本类别原型实现强零样本识别,但在域偏移下存在特征漂移、类别先验错配和严重校准偏差问题。现有测试时自适应(TTA)方法常需对大模型反向传播、协方差估计或大量内存,难以用于流式或边缘场景。本文提出超轻量测试时自适应(UL-TTA),一种全免训练、免反向传播的框架,冻结主干网络,仅适配逻辑层参数:类别原型、类别先验和温度。UL-TTA采用在线EM式流程,包括:(i) 仅保留高置信度预测的样本筛选;(ii) 基于文本和狄利克雷先验的闭式贝叶斯更新;(iii) 预测与校准解耦的温度;(iv) 轻量级防护机制(范数裁剪、先验KL约束、平滑温度)防止长序列下的漂移。在大规模跨域及分布外基准(PACS、Office-Home、DomainNet、Terra Incognita、ImageNet-R/A/V2/Sketch;约72.6万测试样本)上,相比零样本CLIP平均提升4.7点准确率,同时将ECE降低20%-30%,延迟增加不足8%。长达20万样本的长流实验未见性能崩溃。结果表明,逻辑层贝叶斯适配足以在域偏移下达成最优精度-校准权衡,无需更新任何主干参数。

原文摘要 · Abstract (English)

Vision-Language Models (VLMs) such as CLIP achieve strong zero-shot recognition by comparing image embeddings to text-derived class prototypes. However, under domain shift, they suffer from feature drift, class-prior mismatch, and severe miscalibration. Existing test-time adaptation (TTA) methods often require backpropagation through large backbones, covariance estimation, or heavy memory/state, which is problematic for streaming and edge scenarios. We propose Ultra-Light Test-Time Adaptation (UL-TTA), a fully training-free and backprop-free framework that freezes the backbone and adapts only logit-level parameters: class prototypes, class priors, and temperature. UL-TTA performs an online EM-style procedure with (i) selective sample filtering to use only confident predictions, (ii) closed-form Bayesian updates for prototypes and priors anchored by text and Dirichlet priors, (iii) decoupled temperatures for prediction vs. calibration, and (iv) lightweight guards (norm clipping, prior KL constraints, smoothed temperature) to prevent drift in long streams. Across large-scale cross-domain and OOD benchmarks (PACS, Office-Home, DomainNet, Terra Incognita, ImageNet-R/A/V2/Sketch; ~726K test samples) and strong TTA baselines including Tent, T3A, CoTTA, SAR, Tip-Adapter, and FreeTTA, UL-TTA consistently improves top-1 accuracy (e.g., +4.7 points over zero-shot CLIP on average) while reducing ECE by 20-30%, with less than 8% latency overhead. Long-stream experiments up to 200K samples show no collapse. Our results demonstrate that logit-level Bayesian adaptation is sufficient to obtain state-of-the-art accuracy-calibration trade-offs for VLMs under domain shift, without updating any backbone parameters.

视觉语言模型测试时自适应轻量化零样本

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。