arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.11969cs.AIcs.CVcs.LG
收藏

利用类别相似性知识为 CLIP 学习可泛化提示

Learning Generalizable Prompt for CLIP with Class Similarity Knowledge

Konkuk University(建国大学)

Sehun Jung, Hyang-won Lee

AI总结:

针对提示调优易过拟合基类、损害新类语义关系的问题,本文提出 SAR,借助 ChatGPT-4o 生成相关新类并对齐可学习与手工提示的类别相似性,从而提升 CLIP 对未见过类别的泛化能力。

摘要:

在视觉-语言模型(VLM)中,提示调优已展现出将模型适配到下游任务的有效性。然而,学习到的提示难以泛化到未见过的类别,因为它们往往会过拟合于提示调优期间所针对的类别。通过检查失败案例,我们观察到学习到的提示会破坏未见过类别的语义,生成在类别之间具有不正确语义关系的文本嵌入。为解决这一问题,我们提出了相似性对齐正则化(Similarity Alignment Regularization,SAR),它对可学习提示进行正则化,以保留手工提示所捕获的类别间语义关系。具体而言,我们首先使用 ChatGPT-4o 获取与基类相关的新类,并将其用作提示调优期间潜在的未见过类别。随后,通过同时针对基类和新类,SAR 将可学习提示生成的文本嵌入之间的相似性关系,与手工提示得到的相似性关系进行对齐。将 SAR 应用于现有提示调优方法的大量实验证明了其在提升对未见过类别泛化能力方面的有效性。

英文摘要:

In vision-language models (VLMs), prompt tuning has shown its effectiveness in adapting models to downstream tasks. However, learned prompts struggle to generalize to unseen classes, as they tend to overfit to the classes that are targeted during prompt tuning. Examining failure cases, we observed that learned prompts disrupt the semantics of unseen classes, generating text embeddings with incorrect semantic relationships among classes. To address this, we propose Similarity Alignment Regularization (SAR), which regularizes learnable prompts to preserve the semantic relationships among classes captured by hand-crafted prompts. Specifically, we first obtain novel classes related to base classes using ChatGPT-4o and utilize them as potential unseen classes during prompt tuning. Then, by targeting both base and novel classes, SAR aligns the similarity relationships among text embeddings generated by learnable prompts with the similarity relationships from hand-crafted prompts. Extensive experiments applying SAR to existing prompt tuning methods demonstrate its effectiveness in improving generalization to unseen classes.

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

↑