Active Prompt Learning in Vision Language Models
Jihwan Bang, Sumyeong Ahn, Jae-Gil Lee
TL;DR
This paper tackles the challenge of adapting pre-trained vision-language models through active learning, identifying that naive sampling amplifies class imbalance and degrades performance. To address this, the authors introduce PCB, a two-stage, balance-aware framework that uses pseudo-labels from the VLM to construct a balanced query set before querying experts, integrated with prompt learning. They further enhance robustness via description augmentation, generating per-class descriptions to support multiple text embeddings and two aggregation schemes (AS and AE). Extensive experiments across seven datasets demonstrate that PCB improves over standard active-learning baselines and random sampling, with gains up to about 4.6 percentage points, and often yields the best results when combined with BADGE; the approach thus provides a practical path for efficient task adaptation of VLMs.
Abstract
Pre-trained Vision Language Models (VLMs) have demonstrated notable progress in various zero-shot tasks, such as classification and retrieval. Despite their performance, because improving performance on new tasks requires task-specific knowledge, their adaptation is essential. While labels are needed for the adaptation, acquiring them is typically expensive. To overcome this challenge, active learning, a method of achieving a high performance by obtaining labels for a small number of samples from experts, has been studied. Active learning primarily focuses on selecting unlabeled samples for labeling and leveraging them to train models. In this study, we pose the question, "how can the pre-trained VLMs be adapted under the active learning framework?" In response to this inquiry, we observe that (1) simply applying a conventional active learning framework to pre-trained VLMs even may degrade performance compared to random selection because of the class imbalance in labeling candidates, and (2) the knowledge of VLMs can provide hints for achieving the balance before labeling. Based on these observations, we devise a novel active learning framework for VLMs, denoted as PCB. To assess the effectiveness of our approach, we conduct experiments on seven different real-world datasets, and the results demonstrate that PCB surpasses conventional active learning and random sampling methods. Code will be available in https://github.com/kaist-dmlab/pcb .
