[Paper Review] PLOT: Prompt Learning with Optimal Transport for Vision-Language Models
PLOT learns multiple local prompts and uses optimal transport to align vision features with prompt sets, enabling fine-grained cross-modal matching and improved few-shot performance over CoOp.
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.
Motivation & Objective
- Motivate learning multiple comprehensive prompts to describe a category from diverse attributes and contexts.
- Overcome convergence of multiple prompts to a single point by aligning prompts with local visual features using optimal transport.
- Improve robustness and accuracy in few-shot visual recognition across diverse datasets.
- Maintain end-to-end trainability with a two-stage OT-based optimization that requires minimal extra parameters.
Proposed method
- Represent each category with a set of textual prompts describing different attributes or contexts.
- Extract a set of local visual features from CLIP's visual encoder (feature maps) instead of a single global feature.
- Model the matching between prompts and visual features as an optimal transport problem with a cost based on cosine similarity.
- Use a two-stage optimization: inner loop optimizes the OT transport plan with Sinkhorn iterations while outer loop updates prompts via backpropagation.
- Employ a two-stage, end-to-end differentiable training regime without introducing additional model parameters beyond the prompts.
Experimental results
Research questions
- RQ1Can multiple prompts describe a category more comprehensively than a single prompt in vision-language models?
- RQ2Does applying optimal transport to align local visual features with multiple textual prompts yield finer, more robust cross-modal matching than traditional mean-feature distances?
- RQ3What is the impact of using local feature maps versus global features on few-shot recognition and domain robustness?
- RQ4How does PLOT perform relative to CoOp and CoCoOp across varied datasets and shot settings?
Key findings
- PLOT consistently outperforms CoOp and CoCoOp on most datasets in few-shot recognition scenarios.
- Using multiple prompts with OT enables fine-grained alignment between vision and language modalities, improving robustness under domain shift.
- Utilizing local feature maps with OT rather than a single global feature significantly affects performance, with OT providing the necessary alignment.
- The method adds around 10% inference time and 5% training time overhead compared to the CoOp baseline.
- The number of prompts (N) around 4 provides a favorable balance between accuracy and cost across datasets.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.