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

BayesTTA:基于高斯判别分析的视觉-语言模型连续时序测试时适应

BayesTTA: Continual-Temporal Test-Time Adaptation for Vision-Language Models via Gaussian Discriminant Analysis

National Key Laboratory of Space Integrated Information System(国家空间信息集成系统重点实验室);Institute of Software Chinese Academy of Sciences(中国科学院软件研究所);University of Chinese Academy of Sciences(中国科学院大学);Wangxuan Institute of Computer Technology(计算机技术王轩研究所);Peking University(北京大学);Department of Computer Science and Technology(计算机科学与技术系);Tsinghua University(清华大学);Thrust of Artificial Intelligence, the Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州)人工智能方向);Department of Computer Science & Engineering, the Hong Kong University of Science and Technology(香港科技大学计算机科学与工程系)

Shuang Cui, Jinglin Xu, Yi Li, Xiongxin Tang, Jiangmeng Li, Jiahuan Zhou, Fanjiang Xu, Fuchun Sun, Hui Xiong

AI总结:

针对视觉-语言模型在时序演化分布偏移下性能退化问题,提出贝叶斯适应框架BayesTTA,通过增量估计高斯混合分布和高斯判别分析进行校准推理与表示对齐,显著优于现有方法。

摘要:

诸如CLIP的视觉-语言模型(VLMs)能实现强大的零样本识别,但在现实场景常见的时序演化分布偏移(如渐进的光照或季节变化)下会显著退化。现有的连续测试时适应(CTTA)方法通常针对突发且严重的分布偏移构建,忽略了时序连续性,导致三个核心缺陷:有限的记忆缓存限制了长程分布建模,引发灾难性遗忘;基于熵的置信度在时序漂移下变得不可靠,加剧误差累积;静态视觉表示与演化的输入失配。我们将这一实际问题形式化为连续时序测试时适应(CT-TTA),其中测试分布随时间逐渐演化。为解决此问题,我们提出BayesTTA,一个贝叶斯适应框架,强制时序一致的预测并动态对齐视觉表示。具体而言,BayesTTA在不存储原始数据的情况下增量估计类条件高斯混合分布,通过统计假设检验自适应选择协方差结构,并使用高斯判别分析(GDA)执行校准推理。这些校准预测监督归一化层的自定步长适应,确保高效稳定的表示对齐。我们在四个时序演化数据集上建立了全面的CT-TTA基准,并在十个标准TTA数据集上进一步评估泛化能力。大量实验表明,BayesTTA持续优于最先进方法,在保持效率的同时取得显著增益。代码可在https://github.com/cuishuang99/BayesTTA获取。

英文摘要:

Vision-language models (VLMs) such as CLIP achieve strong zero-shot recognition but degrade significantly under \textit{temporally evolving distribution shifts} common in real-world scenarios (e.g., gradual illumination or seasonal changes). Existing continual test-time adaptation (CTTA) methods are typically built around sudden and severe distribution shifts and neglect temporal continuity, leading to three core defects: limited memory cache restricts long-range distribution modeling, causing catastrophic forgetting; entropy-based confidence becomes unreliable under temporal drift, worsening error accumulation; and static visual representations misalign with evolving inputs. We formalize this practical problem as \textit{Continual-Temporal Test-Time Adaptation (CT-TTA)}, where test distributions evolve gradually over time. To address it, we propose \textit{BayesTTA}, a Bayesian adaptation framework that enforces temporally consistent predictions and dynamically aligns visual representations. Specifically, BayesTTA incrementally estimates class-conditional Gaussian mixture distributions without storing raw data, adaptively selects covariance structures through statistical hypothesis testing, and performs calibrated inference using Gaussian discriminant analysis (GDA). These calibrated predictions supervise self-paced adaptation of normalization layers, ensuring efficient and stable representation alignment. We establish a comprehensive CT-TTA benchmark across four temporally evolving datasets and further evaluate generalization on ten standard TTA datasets. Extensive experiments show that BayesTTA consistently outperforms state-of-the-art methods, achieving significant gains while maintaining efficiency. Code is available at \href{https://github.com/cuishuang99/BayesTTA}{https://github.com/cuishuang99/BayesTTA}.

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

↑