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

面向视觉-语言模型目标识别与检测的贝叶斯测试时自适应

Bayesian Test-time Adaptation for Object Recognition and Detection with Vision-language Models

Centre for Artificial Intelligence and Robotics, Hong Kong Institute of Science and Innovation, Chinese Academy of Sciences, Hong Kong, China(人工智能与机器人研究中心,香港科学与创新研究院,中国科学院,香港,中国);School of Computer Science and Engineering, University of Electronic Science and Technology of China(电子科学与技术大学计算机科学与工程学院);Surrey Institute for People-Centred Artificial Intelligence, CVSSP, University of Surrey(以人为中心的人工智能研究院,CVSSP, Surrey大学);School of Electronics and Information Engineering, Shenzhen University(电子与信息工程学院,深圳大学);University of Rochester(罗切斯特大学)

Lihua Zhou, Mao Ye, Shuaifeng Li, Nianxin Li, Jinlin Wu, Xiatian Zhu, Lei Deng, Hongbin Liu, Jiebo Luo, Zhen Lei

AI总结:

针对视觉-语言模型在分布偏移下性能下降的问题,提出免训练的贝叶斯测试时自适应框架BCA+,通过动态缓存与双重自适应融合实现目标识别和检测的高效适配,性能达当前最优。

摘要:

视觉-语言模型(Vision-language models, VLMs)如CLIP和Grounding DINO已在目标识别与检测领域取得显著成效,但在真实世界分布偏移场景下其性能往往会出现下降。测试时自适应(Test-time adaptation, TTA)旨在通过在推理阶段调整模型来缓解这一问题。现有方法要么依赖计算成本高昂的反向传播,阻碍了实时部署;要么仅聚焦于似然自适应,忽略了先验的关键作用。我们此前的工作贝叶斯类别自适应(Bayesian Class Adaptation, BCA)针对目标识别任务,通过引入一种融合自适应先验的免训练框架解决了上述缺陷。在此基础上,我们提出贝叶斯类别自适应增强版(Bayesian Class Adaptation plus, BCA+),这是一个适用于目标识别与检测任务的统一免训练测试时自适应框架。BCA+引入了动态缓存机制,可自适应存储并更新类别嵌入、(检测任务的)空间尺度,以及从历史预测中推导的自适应类别先验——这一点至关重要。我们将自适应过程建模为贝叶斯推理问题,最终预测由初始VLM输出与基于缓存的预测融合生成。其中,基于缓存的预测结合了动态更新的似然(用于衡量特征与尺度相似度)和先验(反映不断变化的类别分布)。这种双重自适应机制搭配不确定性引导的融合策略,使BCA+能够同时修正模型的语义理解能力与上下文置信度。作为一种无需反向传播的免训练方法,BCA+具备极高的效率。大量实验表明,BCA+在识别与检测基准数据集上均达到了当前最优性能。

英文摘要:

Vision-language models (VLMs) such as CLIP and Grounding DINO have achieved remarkable success in object recognition and detection. However, their performance often degrades under real-world distribution shifts. Test-time adaptation (TTA) aims to mitigate this issue by adapting models during inference. Existing methods either rely on computationally expensive backpropagation, which hinders real-time deployment, or focus solely on likelihood adaptation, which overlooks the critical role of the prior. Our prior work, Bayesian Class Adaptation (BCA), addressed these shortcomings for object recognition by introducing a training-free framework that incorporates adaptive priors. Building upon this foundation, we now present Bayesian Class Adaptation plus (BCA+), a unified, training-free framework for TTA for both object recognition and detection. BCA+ introduces a dynamic cache that adaptively stores and updates class embeddings, spatial scales (for detection), and, crucially, adaptive class priors derived from historical predictions. We formulate adaptation as a Bayesian inference problem, where final predictions are generated by fusing the initial VLM output with a cache-based prediction. This cache-based prediction combines a dynamically updated likelihood (measuring feature and scale similarity) and a prior (reflecting the evolving class distribution). This dual-adaptation mechanism, coupled with uncertainty-guided fusion, enables BCA+ to correct both the model's semantic understanding and its contextual confidence. As a training-free method requiring no backpropagation, BCA+ is highly efficient. Extensive experiments demonstrate that BCA+ achieves state-of-the-art performance on both recognition and detection benchmarks.

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

↑