Introduction
Large-scale vision-language models (VLMs) like CLIP have revolutionized zero-shot classification. However, deploying these models in specialized domains often reveals significant performance drops due to domain gaps. Furthermore, their massive size makes them computationally expensive for real-time inference. Traditional solutions like fine-tuning require costly human annotations, while standard knowledge distillation often fails to transfer the VLM's nuanced understanding effectively.
This paper introduces P-WSL (Pre-trained annotating - Weakly-supervised learning), a paradigm that leverages the inherent knowledge of VLMs to automatically label unlabeled data. By treating the VLM as a "partial annotator" and training a smaller student model with a collaborative consistency algorithm (Co-Reg), the authors achieve performance that rivals human-annotated few-shot methods without any manual labeling.
Methodology
Partial Annotation
The core innovation of P-WSL is the generation of "partial labels." Instead of relying on a single, potentially incorrect zero-shot prediction, the system uses multiple prompt templates (e.g., "a photo of a {}", "a rendering of a {}"). Each prompt acts as an independent voter. The union of the top predictions from these various prompts forms a Partial Label Set. This approach transforms the problem into Noisy Partial Label Learning (NPLL), which is more robust than learning from a single noisy label.
Collaborative Consistency Regularization (Co-Reg)
To train a student model (e.g., ResNet-18) on these noisy sets, the authors developed the Co-Reg algorithm. It employs a dual-network architecture where two networks are trained simultaneously, cross-checking each other to "purify" the labels and identify reliable samples. The training is further enhanced by Prototypical Similarity Alignment and Noisy Supervised Contrastive Learning, which help the model learn discriminative features despite the label noise.
Experimental Results
The P-WSL framework was evaluated across seven diverse benchmarks, ranging from general datasets like CIFAR to specialized domains like satellite imagery (EuroSAT) and street view numbers (SVHN).
Performance Gains
The results demonstrate that the student model consistently outperforms the teacher's zero-shot capabilities. For instance, on CIFAR-100, Co-Reg achieved 71.04% accuracy, significantly higher than CLIP's zero-shot performance of 62.74%.
The SVHN Breakthrough
The most striking result occurred with the SVHN dataset. CLIP's zero-shot accuracy is extremely low (~9%) due to the domain gap. However, the correct label is frequently present within the generated partial label sets. Co-Reg successfully extracted this information, reaching 46.57% accuracy—a massive improvement achieved without a single human label.
Comparison with Few-Shot Learning
Remarkably, P-WSL outperformed CoOp, a state-of-the-art few-shot prompt tuning method, on five out of seven datasets. This is particularly significant because CoOp requires 16 human-labeled samples per class, whereas P-WSL is entirely unsupervised regarding human labels.
Limitations and Conclusion
While powerful, P-WSL is "data hungry," requiring a large volume of unlabeled downstream data to effectively surpass zero-shot baselines. Additionally, the quality of initial partial labels still depends on the VLM's underlying vocabulary.
In conclusion, P-WSL demonstrates that pre-trained VLMs can serve as effective automated teachers for specialized tasks. By shifting from single-label prediction to partial annotation and employing collaborative training, researchers can adapt powerful models to new domains efficiently and accurately, bypassing the need for expensive manual data labeling.
Summary updated