arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.01253cs.CVcs.CLcs.LG
收藏

PLOT:视觉语言模型的最优传输快速学习

PLOT: Prompt Learning with Optimal Transport for Vision-Language Models

Carnegie Mellon University(卡内基梅隆大学);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学);Tsinghua University(清华大学);New York University(纽约大学)

Guangyi Chen, Weiran Yao, Xiangchen Song, Xinyue Li, Yongming Rao, Kun Zhang

摘要:

随着人们对CLIP等大型视觉语言模型的日益关注,已经有大量的工作致力于构建高效的提示。不同于传统的方法,只学习一个单一的提示,我们建议学习多个全面的提示,以描述不同的类别,如内在属性或外在环境的特点。然而,直接将每个提示与相同的视觉特征匹配是有问题的,因为它会促使提示收敛到一点。为了解决这个问题,我们建议应用最佳传输来匹配视觉和文本模态。具体来说,我们首先用视觉和文本特征集对图像和类别进行建模。然后,我们应用两阶段优化策略来学习提示。在内部循环中,我们通过Sinkhorn算法优化最佳传输距离以对齐视觉特征和提示,而在外部循环中,我们通过监督数据的距离学习提示。在Few-Shot识别任务上进行了大量的实验,实验结果证明了该方法的优越性。该代码可在https://github.com/CHENGY12/PLOT上获得。

英文摘要:

With the increasing attention to large vision-language models such as CLIP, there has been a significant amount of effort dedicated to building efficient prompts. Unlike conventional methods of only learning one single prompt, we propose to learn multiple comprehensive prompts to describe diverse characteristics of categories such as intrinsic attributes or extrinsic contexts. However, directly matching each prompt to the same visual feature is problematic, as it pushes the prompts to converge to one point. To solve this problem, we propose to apply optimal transport to match the vision and text modalities. Specifically, we first model images and the categories with visual and textual feature sets. Then, we apply a two-stage optimization strategy to learn the prompts. In the inner loop, we optimize the optimal transport distance to align visual features and prompts by the Sinkhorn algorithm, while in the outer loop, we learn the prompts by this distance from the supervised data. Extensive experiments are conducted on the few-shot recognition task and the improvement demonstrates the superiority of our method. The code is available at https://github.com/CHENGY12/PLOT.

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

↑