直接移位:面向视觉-语言模型零样本泛化的测试时原型移位方法
Just Shift It: Test-Time Prototype Shifting for Zero-Shot Generalization with Vision-Language Models
AI总结:
针对视觉-语言模型在测试时因域偏移效果下降的问题,提出测试时原型移位框架,通过动态调整类别原型弥合域差距,在15个数据集上取得最优效果且资源消耗更低。
摘要:
视觉-语言模型(VLM)的发展推动了计算机视觉领域的进步,尤其是在零样本学习场景下。尽管这类模型前景可观,但测试环境中的域偏移往往会导致其效果下降。为解决这一问题,我们提出测试时原型移位(Test-Time Prototype Shifting,TPS)框架,这是一种开创性方法,旨在利用无标注测试输入让VLM适配测试数据集。我们的方法基于在共享嵌入空间中调制每个类别原型的思路。通过预计算并缓存由预训练文本编码器生成的原型,TPS不仅支持后续预测时无需优化即可复用原型,还能与当前提示工程的前沿进展无缝融合。在测试阶段,TPS仅基于给定的测试样本,为每个原型动态学习移位向量,有效弥合域差距并提升分类准确率。与传统的文本提示调优方法相比,该框架的一个显著优势是大幅降低了内存与计算需求。我们在15个图像分类数据集上开展了广泛评估,涵盖自然分布偏移、跨数据集泛化以及上下文相关视觉推理场景,结果表明TPS性能更优,在取得当前最优结果的同时降低了资源消耗。
英文摘要:
Advancements in vision-language models (VLMs) have propelled the field of computer vision, particularly in the zero-shot learning setting. Despite their promise, the effectiveness of these models often diminishes due to domain shifts in test environments. To address this, we introduce the Test-Time Prototype Shifting (TPS) framework, a pioneering approach designed to adapt VLMs to test datasets using unlabeled test inputs. Our method is based on the notion of modulating per-class prototypes in the shared embedding space. By pre-computing and caching prototypes generated with the pre-trained text encoder, TPS not only facilitates optimization-free prototype reuse for subsequent predictions but also enables seamless integration with current advancements in prompt engineering. At test-time, TPS dynamically learns shift vectors for each prototype based solely on the given test sample, effectively bridging the domain gap and enhancing classification accuracy. A notable aspect of our framework is its significantly reduced memory and computational demands when compared to conventional text-prompt tuning methods. Extensive evaluations across 15 image classification datasets involving natural distribution shifts and cross-dataset generalization, as well as in context-dependent visual reasoning, demonstrate TPS's superior performance, achieving state-of-the-art results while reducing resource requirements.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。