arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2511.09101cs.CV
收藏

视觉-语言模型的超轻量测试时自适应

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

Kyungpook National University(庆尚国立大学)

Byunghyun Kim

AI总结:

针对域偏移下视觉-语言模型的性能下降问题,提出超轻量测试时自适应框架UL-TTA,仅自适应对数级参数,在流处理和边缘场景中提升准确率并降低校准误差,且无训练和反向传播开销。

摘要:

CLIP等视觉-语言模型(VLMs)通过比较图像嵌入与文本衍生的类别原型实现了强大的零样本识别。然而,在域偏移下,它们存在特征漂移、类别先验不匹配和严重的校准错误问题。现有测试时自适应(TTA)方法常需通过大型骨干网络反向传播、协方差估计或占用大量内存/状态,这在流处理和边缘场景中存在问题。我们提出超轻量测试时自适应(UL-TTA),这是一种完全无需训练且无反向传播的框架,它冻结骨干网络,仅自适应对数级参数:类别原型、类别先验和温度系数。UL-TTA执行在线EM风格的流程,包括(i)选择性样本过滤,仅使用置信度高的预测;(ii)以文本和狄利克雷先验为锚点的原型和先验的闭式贝叶斯更新;(iii)预测与校准的解耦温度系数;(iv)轻量级保护机制(范数裁剪、先验KL约束、平滑温度)以防止长流中的漂移。在大规模跨域和分布外基准(PACS、Office-Home、DomainNet、Terra Incognita、ImageNet-R/A/V2/Sketch;约72.6万测试样本)以及包括Tent、T3A、CoTTA、SAR、Tip-Adapter和FreeTTA在内的强TTA基线中,UL-TTA持续提升Top-1准确率(例如,平均比零样本CLIP高4.7个百分点),同时将ECE降低20-30%,且延迟开销低于8%。多达20万样本的长流实验显示无性能崩溃。我们的结果表明,对数级贝叶斯自适应足以在域偏移下为VLMs获得最先进的准确率-校准权衡,无需更新任何骨干网络参数。

英文摘要:

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.

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

↑