Skip to main content
QUICK REVIEW

[Paper Review] Unsupervised Prompt Learning for Vision-Language Models

Tony Jun Huang, Jack O. Chu|arXiv (Cornell University)|Apr 7, 2022
Multimodal Machine Learning ApplicationsComputer Science54 citations
TL;DR

UPL unsupervisedly learns a prompt representation for CLIP by generating pseudo labels on unlabeled target data and self-training the prompt, improving transfer without target annotations.

ABSTRACT

Contrastive vision-language models like CLIP have shown great progress in transfer learning. In the inference stage, the proper text description, also known as prompt, needs to be carefully designed to correctly classify the given images. In order to avoid laborious prompt engineering, recent works such as CoOp, CLIP-Adapter and Tip-Adapter propose to adapt vision-language models for downstream image recognition tasks on a small set of labeled data. Though promising improvements are achieved, requiring labeled data from the target datasets may restrict the scalability. In this paper, we explore a different scenario, in which the labels of the target datasets are unprovided, and we present an unsupervised prompt learning (UPL) approach to avoid prompt engineering while simultaneously improving transfer performance of CLIP-like vision-language models. As far as we know, UPL is the first work to introduce unsupervised learning into prompt learning. Experimentally, our UPL outperforms original CLIP with prompt engineering on ImageNet as well as other 10 datasets. An enhanced version of UPL is even competitive with the 8-shot CoOp and the 8-shot TIP-Adapter on most datasets. Code and models are available at https://github.com/tonyhuang2022/UPL.

Motivation & Objective

  • Motivate prompt learning without labeled target data to improve CLIP-style models.
  • Eliminate manual prompt engineering by learning a continuous prompt representation in an unsupervised way.
  • Analyze how pseudo labeling and prompt optimization affect transfer performance across diverse datasets.

Proposed method

  • Use a pre-trained vision-language model (e.g., CLIP) to generate pseudo labels for unlabeled target data.
  • Select top-K confident samples per class to form a pseudo-labeled set and mitigate class balance issues.
  • Define a learnable prompt representation shared across all classes and optimize it via cross-entropy on pseudo-labeled samples.
  • During inference, replace hand-crafted prompts with the learned prompt representations.
  • Optionally employ pseudo-label ensemble (across CLIP models) and prompt representation ensemble (multiple learned prompts) to boost robustness.

Experimental results

Research questions

  • RQ1Can unsupervised prompt learning improve transfer performance of vision-language models without target-domain labels?
  • RQ2How do pseudo-labeling strategies (top-K) and ensembles affect transfer accuracy across datasets?
  • RQ3Does a shared learnable prompt representation suffice for multiple classes, or are multiple prompts beneficial?
  • RQ4How robust is UPL to noisy pseudo labels and class-imbalance issues inherent in pseudo labeling?

Key findings

  • UPL outperforms original CLIP with prompt engineering on ImageNet and 10 additional datasets.
  • An enhanced version UPL* using multiple CLIP models for pseudo-labeling achieves competitive performance with 8-shot CoOp and 8-shot Tip-Adapter on many datasets.
  • Top-K pseudo-labeling avoids threshold-induced class imbalance and weak correlation between confidence and label quality, improving stability.
  • Prompt representation ensemble yields additional transfer gains by exploiting class-specific biases in learned prompts.
  • UPL shows robustness to noisy pseudo labels since optimization shares a common prompt representation across all classes.

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.