Tip-Adapter:CLIP无需培训即可适应Few-Shot分类
Tip-Adapter: Training-free Adaption of CLIP for Few-shot Classification
摘要:
对比视觉语言预训练(CLIP)为使用大规模图像-文本对学习视觉表示提供了一种新的范式。它通过zero-shot知识转移在下游任务上表现出令人印象深刻的性能。为了进一步增强CLIP的自适应能力,现有方法提出微调额外的可学习模块,这显著提高了Few-Shot性能,但引入了额外的训练时间和计算资源。本文提出了一种无需训练的CLIP自适应方法(Tip-Adapter)来进行Few-Shot分类,该方法既继承了zero-shot CLIP无需训练的优点,又对需要训练的方法进行了改进。Tip-Adapter通过键值缓存模型从Few-Shot训练集中构造适配器,并通过特征检索更新CLIP中编码的先验知识。最重要的是,Tip-Adapter的性能可以进一步提升到ImageNet上最先进的水平,通过微调缓存模型,比现有方法少10个$\times$ epoch,这既有效又高效。我们在11个数据集上进行了大量的Few-Shot分类实验,以证明我们提出的方法的优越性。代码发布于https://github.com/gaopengcuhk/Tip-Adapter。
英文摘要:
Contrastive Vision-Language Pre-training, known as CLIP, has provided a new paradigm for learning visual representations using large-scale image-text pairs. It shows impressive performance on downstream tasks by zero-shot knowledge transfer. To further enhance CLIP's adaption capability, existing methods proposed to fine-tune additional learnable modules, which significantly improves the few-shot performance but introduces extra training time and computational resources. In this paper, we propose a training-free adaption method for CLIP to conduct few-shot classification, termed as Tip-Adapter, which not only inherits the training-free advantage of zero-shot CLIP but also performs comparably to those training-required approaches. Tip-Adapter constructs the adapter via a key-value cache model from the few-shot training set, and updates the prior knowledge encoded in CLIP by feature retrieval. On top of that, the performance of Tip-Adapter can be further boosted to be state-of-the-art on ImageNet by fine-tuning the cache model for 10$\times$ fewer epochs than existing methods, which is both effective and efficient. We conduct extensive experiments of few-shot classification on 11 datasets to demonstrate the superiority of our proposed methods. Code is released at https://github.com/gaopengcuhk/Tip-Adapter.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。