Skip to main content
QUICK REVIEW

[论文解读] PLOT: Prompt Learning with Optimal Transport for Vision-Language Models

Guangyi Chen, Weiran Yao|arXiv (Cornell University)|Oct 3, 2022
Multimodal Machine Learning ApplicationsComputer Science被引用 22
一句话总结

PLOT 学习多重局部提示并使用最优传输来将视觉特征与提示集合对齐,从而实现细粒度的跨模态匹配,并在 few-shot 性能方面优于 CoOp。

ABSTRACT

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.

研究动机与目标

  • 激励学习多个全面的提示,以从多样的属性和情境描述一个类别。
  • 通过使用最优传输将提示与局部视觉特征对齐,克服多个提示收敛到一个点的问题。
  • 在跨越多样数据集的少样本视觉识别中提升鲁棒性和准确性。
  • 通过两阶段基于 OT 的优化保持端到端可训练性,并且需要极少额外参数。

提出的方法

  • 用一组文本提示来描述不同属性或情境来表示每个类别。
  • 从 CLIP 的视觉编码器(特征图)提取一组局部视觉特征,而不是单一全局特征。
  • 将提示与视觉特征之间的匹配建模为基于余弦相似性的代价的最优传输问题。
  • 使用两阶段优化:内循环通过 Sinkhorn 迭代优化 OT 传输计划,外循环通过反向传播更新提示。
  • 采用两阶段、端到端可微的训练方案,并且除了提示外不引入额外的模型参数。

实验结果

研究问题

  • RQ1在视觉-语言模型中,多个提示是否比单一提示更全面地描述一个类别؟
  • RQ2应用最优传输将局部视觉特征与多组文本提示对齐,是否比传统的均值特征距离能实现更精细、更鲁棒的跨模态匹配?
  • RQ3使用局部特征图与全局特征对少样本识别和领域鲁棒性的影响是什么?
  • RQ4在不同数据集和不同样本设置下,PLOT 相对于 CoOp 和 CoCoOp 的表现如何?

主要发现

  • 在多数数据集的少样本识别场景中,PLOT始终优于CoOp和CoCoOp。
  • 使用带 OT 的多提示使视觉与语言模态之间实现细粒度对齐,从而在领域漂移下提高鲁棒性。
  • 使用局部特征图结合 OT 而非单一全局特征显著影响性能,OT 提供了必要的对齐。
  • 该方法相对于 CoOp 基线增加大约 10% 推理时间和 5% 训练时间的开销。
  • 提示数量(N)大约为 4,在不同数据集上提供了准确率与成本之间的利好平衡。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。