Skip to main content
QUICK REVIEW

[Paper Review] Prompting Large Pre-trained Vision-Language Models For Compositional Concept Learning

Guangyue Xu, Parisa Kordjamshidi|arXiv (Cornell University)|Nov 9, 2022
Domain Adaptation and Few-Shot LearningComputer Science6 citations
TL;DR

This paper proposes PromptCompVL, a parameter-efficient prompting framework that enhances large vision-language models (VLMs) for compositional zero-shot learning (CZSL) by introducing dual learnable components: soft-prompting and soft-embedding layers. By reprogramming CLIP via these components, the model achieves state-of-the-art performance on MIT-States and consistent improvements over CLIP-based baselines, demonstrating the effectiveness of joint soft-prompting and soft-embedding for compositional concept learning.

ABSTRACT

This work explores the zero-shot compositional learning ability of large pre-trained vision-language models(VLMs) within the prompt-based learning framework and propose a model ( extit{PromptCompVL}) to solve the compositonal zero-shot learning (CZSL) problem. extit{PromptCompVL} makes two design choices: first, it uses a soft-prompting instead of hard-prompting to inject learnable parameters to reprogram VLMs for compositional learning. Second, to address the compositional challenge, it uses the soft-embedding layer to learn primitive concepts in different combinations. By combining both soft-embedding and soft-prompting, extit{PromptCompVL} achieves state-of-the-art performance on the MIT-States dataset. Furthermore, our proposed model achieves consistent improvement compared to other CLIP-based methods which shows the effectiveness of the proposed prompting strategies for CZSL.

Motivation & Objective

  • To investigate the zero-shot compositional learning capability of large pre-trained vision-language models (VLMs) within a prompt-based framework.
  • To address the distribution shift problem in compositional zero-shot learning (CZSL), where models must recognize novel attribute-object pairs unseen during training.
  • To improve VLM generalization for CZSL by introducing a parameter-efficient prompting method that reprograms CLIP without fine-tuning the entire model.
  • To explore the effectiveness of combining soft-prompting and soft-embedding for learning primitive concepts and their compositions.

Proposed method

  • Introduces soft-prompting by replacing CLIP’s hard-prompting vectors with learnable, continuous prompt embeddings to reprogram the model for CZSL.
  • Introduces a soft-embedding layer that replaces CLIP’s fixed vocabulary embedding layer to learn and update primitive concept embeddings (e.g., 'sliced', 'apple') dynamically during training.
  • Uses CLIP’s pre-trained image and text encoders (ViT-L/14 or ResNet) and fixes them during training, only updating the soft-prompting and soft-embedding parameters.
  • Constructs text inputs using the learned soft-embeddings and soft-prompts to form compositional concepts (e.g., 'sliced apple'), which are then encoded via CLIP’s text encoder.
  • Employs contrastive loss with cosine similarity to compute logits and cross-entropy loss to optimize the soft-prompting and soft-embedding parameters.
  • During inference, selects the compositional label with the highest cosine similarity between image and text embeddings in the shared space.

Experimental results

Research questions

  • RQ1Can large pre-trained vision-language models like CLIP generalize to compositional zero-shot learning without fine-tuning?
  • RQ2How effective is soft-prompting in reprogramming VLMs for compositional concept learning tasks?
  • RQ3Does introducing a learnable soft-embedding layer for primitive concepts improve generalization to unseen attribute-object compositions?
  • RQ4Can the joint use of soft-prompting and soft-embedding outperform existing CLIP-based prompting methods on CZSL benchmarks?

Key findings

  • PromptCompVL achieves state-of-the-art performance on the MIT-States dataset in both close-world and open-world CZSL settings, outperforming both non-CLIP and CLIP-based baselines.
  • On MIT-States, PromptCompVL achieves the highest seen accuracy and competitive unseen accuracy, with consistent improvements over other CLIP-based methods like COOP and CSP.
  • The model shows consistent performance gains on MIT-States across both seen and unseen compositions, indicating robustness to distribution shift in compositional learning.
  • On UT-Zappos, while not achieving SOTA, PromptCompVL still outperforms other CLIP-based methods in the close-world setting, demonstrating the effectiveness of the prompting strategy in broader domains.
  • The ablation shows that soft-prompting alone significantly improves performance, and the addition of soft-embedding further enhances compositional generalization beyond fixed embeddings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.