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.
Introduction: The "Imbalance Trap"
Adapting Vision Language Models (VLMs) like CLIP to specific downstream tasks often involves prompt learning. To minimize labeling costs, Active Learning (AL) is typically employed to select the most informative samples. However, a significant discovery in this research is that standard AL methods—such as Entropy-based sampling—often perform worse than simple random sampling when applied to VLMs.
This phenomenon, termed the "imbalance trap," occurs because uncertainty-based samplers tend to over-select samples from classes where the VLM's zero-shot knowledge is weakest. This leads to a highly skewed training set, which degrades the performance of prompt learning compared to a balanced, albeit random, selection.
The PCB Framework
To address this, the authors propose PCB (Pseudo-Class Balance), a two-stage framework that leverages the VLM's own zero-shot capabilities to restore balance.
The framework operates as follows:
- Informative Subset Selection: A standard AL algorithm (e.g., Entropy, Coreset, or BADGE) identifies a large pool of informative candidates from the unlabeled data.
- Pseudo-Labeling & Balancing: The VLM assigns pseudo-labels to these candidates. A "Balance Sampler" then selects a final, class-balanced subset from this pool to be sent to a human oracle for ground-truth labeling.
- Description Augmentation: The method incorporates visual descriptions generated by LLMs (like GPT-3) into the prompts. Two strategies are compared: Average Similarity (AS), which averages similarity scores across descriptions, and Average Embedding (AE), which averages text embeddings before calculating similarity.
Experimental Results
The PCB framework was evaluated across seven diverse datasets, including Caltech101, Oxford Pets, and EuroSAT. The results consistently show that PCB mitigates the imbalance trap and outperforms both random sampling and vanilla AL baselines.
Key findings include:
- Superiority of AS: The Average Similarity (AS) approach generally outperformed Average Embedding (AE), suggesting that distinct visual signals are more effective than a single blended vector.
- Robustness: The performance gains were consistent across various model architectures (ResNet and ViT variants) and held true even on large-scale datasets like ImageNet-100.
- Restoring AL Utility: In cases where standard AL significantly underperformed random sampling (e.g., EuroSAT), PCB successfully restored and improved upon the baseline.
Conclusion
PCB demonstrates that the inherent zero-shot knowledge of VLMs, while potentially biased, can be effectively used to guide the active learning process. By balancing the labeling queue based on pseudo-labels, PCB overcomes the class imbalance issues that plague traditional AL in the context of foundation models. Future work may explore extending this approach to more complex vision tasks beyond classification.
Summary updated