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

视觉语言模型的无训练无监督提示

Training-Free Unsupervised Prompt for Vision-Language Models

Jilin University(吉林大学);Baidu VIS(百度VIS);University of Sydney(悉尼大学);University of Hong Kong(香港大学)

Sifan Long, Linbin Wang, Zhen Zhao, Zichang Tan, Yiming Wu, Shengsheng Wang, Jingdong Wang

AI总结:

提出无训练无监督提示方法 TFUP,利用特征缓存模型和多级相似度度量在无标签数据上增强 VLMs 表征能力,并扩展出基于训练的 TFUP-T,在多个基准上实现最先进分类性能。

摘要:

提示学习已成为将大型预训练视觉语言模型(VLMs)适配到下游任务的最有效范式。最近,无监督提示微调方法,如 UPL 和 POUF,直接利用伪标签作为监督信息,在无标签数据上微调额外的适配模块。然而,不准确的伪标签容易误导微调过程,导致表征能力较差。鉴于此,我们提出了无训练无监督提示(TFUP),其以无训练和无标签的方式最大程度地保留固有的表征能力,并通过残差连接与基于相似度的预测概率来增强这些能力。具体而言,我们结合实例置信度和原型分数来选择代表性样本,用于定制一个可靠的特征缓存模型(FCM)以进行无训练推理。然后,我们设计了一个多级相似度度量(MSM),同时考虑特征级和语义级相似度,计算每张测试图像与缓存样本之间的距离,作为相应缓存标签的权重,以生成基于相似度的预测概率。通过这种方式,TFUP 取得了令人惊讶的性能,甚至在多个分类数据集上超越了基于训练的方法。基于我们的 TFUP,我们提出了一种基于训练的方法(TFUP-T)以进一步提升适配性能。除了标准的交叉熵损失外,TFUP-T 还采用额外的边际分布熵损失从全局视角约束模型。与多个基准上的无监督和少样本适配方法相比,我们的 TFUP-T 实现了新的最先进分类性能。特别地,TFUP-T 在最具挑战性的 Domain-Net 数据集上将 POUF 的分类准确率提高了 3.3%。

英文摘要:

Prompt learning has become the most effective paradigm for adapting large pre-trained vision-language models (VLMs) to downstream tasks. Recently, unsupervised prompt tuning methods, such as UPL and POUF, directly leverage pseudo-labels as supervisory information to fine-tune additional adaptation modules on unlabeled data. However, inaccurate pseudo labels easily misguide the tuning process and result in poor representation capabilities. In light of this, we propose Training-Free Unsupervised Prompts (TFUP), which maximally preserves the inherent representation capabilities and enhances them with a residual connection to similarity-based prediction probabilities in a training-free and labeling-free manner. Specifically, we integrate both instance confidence and prototype scores to select representative samples, which are used to customize a reliable Feature Cache Model (FCM) for training-free inference. Then, we design a Multi-level Similarity Measure (MSM) that considers both feature-level and semantic-level similarities to calculate the distance between each test image and the cached sample as the weight of the corresponding cached label to generate similarity-based prediction probabilities. In this way, TFUP achieves surprising performance, even surpassing the training-base method on multiple classification datasets. Based on our TFUP, we propose a training-based approach (TFUP-T) to further boost the adaptation performance. In addition to the standard cross-entropy loss, TFUP-T adopts an additional marginal distribution entropy loss to constrain the model from a global perspective. Our TFUP-T achieves new state-of-the-art classification performance compared to unsupervised and few-shot adaptation approaches on multiple benchmarks. In particular, TFUP-T improves the classification accuracy of POUF by 3.3% on the most challenging Domain-Net dataset.

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

↑