VLM-CPL: Consensus Pseudo-Labels From Vision-Language Models for Annotation-Free Pathological Image Classification

Lanfeng Zhong, Zongyao Huang, Yang Liu, Wenjun Liao, Shichuan Zhang, Guotai Wang, Shaoting Zhang

Introduction

Deep learning has revolutionized digital pathology, yet its reliance on massive, expert-annotated datasets remains a significant bottleneck. Training a reliable classifier typically requires thousands of microscopic images annotated by expert pathologists—a process that is expensive, time-consuming, and difficult to scale. While Vision-Language Models (VLMs) like CLIP offer "zero-shot" classification capabilities, they often struggle with the domain-specific nuances of H&E-stained tissue, leading to noisy pseudo-labels that can cause model collapse during training.

This paper introduces VLM-CPL (Consensus Pseudo-Labels), a novel framework designed to bridge this gap. By leveraging a "consensus" filtering strategy, VLM-CPL automatically identifies and retains only the most reliable labels generated by a VLM, enabling high-accuracy pathological image classification without a single human label.

Methodology

The VLM-CPL framework employs a three-stage pipeline to refine automated labels and train robust classifiers:

  1. Multi-View Consensus (MVC): To assess prediction reliability, the system generates $K$ augmented versions of each tissue patch (e.g., rotation, flipping, and color jittering). If the VLM provides inconsistent predictions across these views (resulting in high entropy), the sample is flagged as unreliable and discarded.
  2. Prompt-Feature Consensus (PFC): This core innovation exploits the dual nature of VLMs: their ability to align images with text prompts and their ability to group similar images in a feature space. PFC performs K-means clustering on image features and uses Hungarian matching to check if cluster-based labels align with prompt-based labels. Disagreements indicate noisy labels.
  3. High-confidence Cross Supervision (HCS): The final classifier is trained using a semi-supervised approach where two parallel networks learn from "clean" consensus labels and provide high-confidence supervision for the remaining noisy samples.
The VLM-CPL framework overview, illustrating the MVC, PFC, and HCS training stages alongside Open-Set Prompting for WSIs.

For Whole Slide Images (WSIs), the authors introduced Open-Set Prompting (OSP). Recognizing that slides contain many irrelevant regions (e.g., fat or background), they utilized GPT-4o to suggest "non-target" classes. This allows the VLM to reject irrelevant patches rather than forcing them into diagnostic categories.

Results and Insights

The framework was evaluated on five public datasets (HPH, LC25K, NCT-CRC-HE-100K, DigestPath, and TCGA-RCC) using medical VLMs like PLIP and BioMedCLIP. VLM-CPL demonstrated a significant performance leap over standard zero-shot VLM inference, with an average accuracy improvement of 18.8%.

  • Accuracy Boost: On the HPH prostate dataset, accuracy increased from 64.5% (baseline) to 88.3%.
  • WSI Performance: On the TCGA-RCC kidney cancer dataset, the framework achieved 82.2% accuracy, outperforming the zero-shot baseline by 15 percentage points.
  • The Power of Agreement: A key insight is that reliability in unsupervised learning is strongly correlated with consensus. As shown in the entropy analysis, samples where the model is most "certain" (low entropy) are significantly more likely to have correct labels.
Distribution of correct and incorrect pseudo-labels across different entropy percentiles for three datasets, demonstrating that lower entropy (higher consensus) correlates with higher label accuracy.

Ablation studies further revealed that color jittering is the most effective augmentation for estimating uncertainty in pathology, likely due to the high variability in staining across different laboratories.

Conclusion

VLM-CPL provides a robust path toward human-annotation-free pathology. By demanding consistency across different views and mathematical representations, the system effectively filters VLM "hallucinations." While the selection ratio currently remains a manual hyperparameter, future work will focus on adaptive thresholding and extending this consensus-based approach to more complex tasks like image segmentation.

Summary updated

BibTeX
@article{zhong2025vlm,
  author = {Lanfeng Zhong and Zongyao Huang and Yang Liu and Wenjun Liao and Shichuan Zhang and Guotai Wang and Shaoting Zhang},
  title = {{VLM-CPL: Consensus Pseudo-Labels From Vision-Language Models for Annotation-Free Pathological Image Classification}},
  journal = {IEEE Trans. Medical Imaging},
  year = {2025},
  doi = {10.1109/tmi.2025.3595111},
}
Figure