arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.21777cs.CVcs.LG
收藏

测试时视觉上下文调优

Test-Time Visual In-Context Tuning

Max Planck Institute for Informatics(马克斯·普朗克信息学研究所);VIA Research Center(VIA研究中心);Google(谷歌公司)

Jiahao Xie, Alessio Tonioni, Nathalie Rauschmayr, Federico Tombari, Bernt Schiele

AI总结:

提出测试时视觉上下文调优(VICT),通过循环一致性损失翻转提示与样本角色,利用单样本即时适应,提升视觉上下文学习在分布偏移下的泛化能力。

摘要:

视觉上下文学习(VICL)作为计算机视觉中的一种新范式,允许模型仅凭借少量提示和示例快速适应各种任务。尽管有效,现有的VICL范式在分布偏移下表现出较差的泛化能力。在这项工作中,我们提出了测试时视觉上下文调优(VICT),一种能够利用单个测试样本即时调整VICL模型的方法。具体来说,我们翻转任务提示与测试样本之间的角色,并使用循环一致性损失来重建原始任务提示的输出。我们的关键洞察是,如果模型能够成功恢复原始任务提示,则它应该意识到新的测试分布。在从高层视觉理解到低层图像处理的六个代表性视觉任务上进行的广泛实验,包含15种常见损坏,表明我们的VICT能够提高VICL对未见新领域的泛化能力。此外,我们展示了在测试时将VICT应用于未见任务的潜力。代码:https://github.com/Jiahao000/VICT。

英文摘要:

Visual in-context learning (VICL), as a new paradigm in computer vision, allows the model to rapidly adapt to various tasks with only a handful of prompts and examples. While effective, the existing VICL paradigm exhibits poor generalizability under distribution shifts. In this work, we propose test-time Visual In-Context Tuning (VICT), a method that can adapt VICL models on the fly with a single test sample. Specifically, we flip the role between the task prompts and the test sample and use a cycle consistency loss to reconstruct the original task prompt output. Our key insight is that a model should be aware of a new test distribution if it can successfully recover the original task prompts. Extensive experiments on six representative vision tasks ranging from high-level visual understanding to low-level image processing, with 15 common corruptions, demonstrate that our VICT can improve the generalizability of VICL to unseen new domains. In addition, we show the potential of applying VICT for unseen tasks at test time. Code: https://github.com/Jiahao000/VICT.

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

↑