arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2406.11252cs.CV
收藏

从CLIP中挖掘开放语义:面向少样本学习的关系转移视角

Mining Open Semantics from CLIP: A Relation Transition Perspective for Few-Shot Learning

Beihang University(北京航空航天大学);University of Amsterdam(阿姆斯特丹大学);Xiaohongshu(小红书)

Cilin Yan, Haochen Wang, Xiaolong Jiang, Yao Hu, Xu Tang, Guoliang Kang, Efstratios Gavves

AI总结:

本文提出从CLIP中挖掘开放语义作为锚点,通过Transformer实现图像-锚点到图像-目标的关系转移,从而提升少样本分类性能。

摘要:

对比视觉-语言预训练(CLIP)展现出令人印象深刻的零样本能力。提升CLIP在少量样本条件下适应下游任务能力的关键在于如何有效建模并迁移CLIP中嵌入的有用知识。以往工作通常基于有限的视觉样本和闭集语义(即下游任务目标类别集合内部)来挖掘知识。然而,对齐后的CLIP图像/文本编码器包含视觉特征与几乎无限的开放语义之间的丰富关系,这可能有益于少样本学习,但仍未被探索。本文提出挖掘开放语义作为锚点,执行从图像-锚点关系到图像-目标关系的关系转移以进行预测。具体而言,我们采用一个Transformer模块,该模块以视觉特征作为“Query”,以锚点的文本特征作为“Key”,以锚点与目标类别的文本特征之间的相似度矩阵作为“Value”。通过这种方式,该Transformer模块的输出表示图像与目标类别之间的关系,即分类预测结果。为避免手动选择开放语义,我们使输入文本嵌入中的[CLASS]标记可学习。我们在十一个具有代表性的分类数据集上进行了大量实验。结果表明,在少样本分类设置下,我们的方法优于先前的最先进方法。

英文摘要:

Contrastive Vision-Language Pre-training(CLIP) demonstrates impressive zero-shot capability. The key to improve the adaptation of CLIP to downstream task with few exemplars lies in how to effectively model and transfer the useful knowledge embedded in CLIP. Previous work mines the knowledge typically based on the limited visual samples and close-set semantics (i.e., within target category set of downstream task). However, the aligned CLIP image/text encoders contain abundant relationships between visual features and almost infinite open semantics, which may benefit the few-shot learning but remains unexplored. In this paper, we propose to mine open semantics as anchors to perform a relation transition from image-anchor relationship to image-target relationship to make predictions. Specifically, we adopt a transformer module which takes the visual feature as "Query", the text features of the anchors as "Key" and the similarity matrix between the text features of anchor and target classes as "Value". In this way, the output of such a transformer module represents the relationship between the image and target categories, i.e., the classification predictions. To avoid manually selecting the open semantics, we make the [CLASS] token of input text embedding learnable. We conduct extensive experiments on eleven representative classification datasets. The results show that our method performs favorably against previous state-of-the-arts considering few-shot classification settings.

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

↑