arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.09191cs.CV
收藏

域对齐CLIP用于少样本分类

Domain Aligned CLIP for Few-shot Classification

Amazon(亚马逊)

Muhammad Waleed Gondal, Jochen Gast, Inigo Alonso Ruiz, Richard Droste, Tommaso Macri, Suren Kumar, Luitpold Staudigl

AI总结:

提出域对齐CLIP(DAC),通过轻量适配器和文本嵌入调制改善模态内与跨模态对齐,无需微调主模型,在少样本分类中提升约2.3%并保持OOD鲁棒性。

摘要:

大型视觉-语言表示学习模型(如CLIP)通过对比目标实现跨模态(图像-文本)对齐,在下游任务的零样本迁移中表现出色。这种下游性能可通过全量微调进一步增强,但全量微调通常计算密集、需要大量标注数据,并可能降低分布外(OOD)鲁棒性。此外,仅依赖跨模态对齐可能忽略每个模态内部蕴含的丰富信息。在本工作中,我们提出一种针对CLIP的样本高效域适应策略,称为域对齐CLIP(DAC),在不微调主模型的情况下,改善目标分布上的模态内(图像-图像)和跨模态对齐。对于模态内对齐,我们引入一个轻量级适配器,专门使用模态内对比目标进行训练。为改善跨模态对齐,我们引入一个简单框架来调制预计算的类别文本嵌入。所提出的少样本微调框架计算高效、对分布偏移鲁棒,且不改变CLIP的参数。我们通过在11个广泛使用的图像分类任务上进行基准测试来研究DAC的有效性,在16-shot分类中相对于强基线一致提升约2.3%,并在4个OOD鲁棒性基准上展现出具有竞争力的性能。

英文摘要:

Large vision-language representation learning models like CLIP have demonstrated impressive performance for zero-shot transfer to downstream tasks while largely benefiting from inter-modal (image-text) alignment via contrastive objectives. This downstream performance can further be enhanced by full-scale fine-tuning which is often compute intensive, requires large labelled data, and can reduce out-of-distribution (OOD) robustness. Furthermore, sole reliance on inter-modal alignment might overlook the rich information embedded within each individual modality. In this work, we introduce a sample-efficient domain adaptation strategy for CLIP, termed Domain Aligned CLIP (DAC), which improves both intra-modal (image-image) and inter-modal alignment on target distributions without fine-tuning the main model. For intra-modal alignment, we introduce a lightweight adapter that is specifically trained with an intra-modal contrastive objective. To improve inter-modal alignment, we introduce a simple framework to modulate the precomputed class text embeddings. The proposed few-shot fine-tuning framework is computationally efficient, robust to distribution shifts, and does not alter CLIP's parameters. We study the effectiveness of DAC by benchmarking on 11 widely used image classification tasks with consistent improvements in 16-shot classification upon strong baselines by about 2.3% and demonstrate competitive performance on 4 OOD robustness benchmarks.

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

↑