CARPRT Enhances Zero-Shot VLM Classification with Class-Aware Prompt Reweighting

Ruijiang Dong, Zesheng Ye, Jianzhong Qi, Lei Feng, Feng Liu, Gang Niu, Masashi Sugiyama· July 17, 2026 View original

Summary

CARPRT (Class-Aware Zero-Shot Prompt Reweighting) improves zero-shot image classification in Vision-Language Models (VLMs) by dynamically adjusting prompt weights for each class. This method accounts for class-specific relevance of prompts, outperforming existing class-independent reweighting strategies.

Pre-trained Vision-Language Models (VLMs) enable zero-shot image classification by comparing an image to textual descriptions, often generated by inserting class labels into prompts. The effectiveness of this process is highly sensitive to the chosen prompt. Current methods typically use a single weighting vector for prompts across all classes, assuming prompts are conditionally independent of classes, which is often inaccurate. To address this limitation, researchers introduce CARPRT (Class-Aware Zero-Shot Prompt Reweighting). This novel scoring scheme dynamically adjusts the weighting vector for each class label, capturing the class-specific relevance of different prompts without requiring additional training. CARPRT quantifies this relevance by averaging image-text scores for images predicted to a specific class under a given prompt, then normalizes these estimates to derive class-specific weights. Evaluations demonstrate that CARPRT significantly outperforms existing class-independent reweighting methods, confirming the importance of modeling prompt-class dependencies for effective zero-shot prediction and broader VLM applications.

Why it matters

Improving zero-shot classification accuracy in VLMs makes them more versatile and powerful for tasks where labeled data is scarce, enabling faster deployment and broader application across various domains.

How to implement this in your domain

  1. 1Explore CARPRT's methodology to enhance your existing VLM-based zero-shot classification pipelines.
  2. 2Implement class-aware prompt reweighting in your VLM applications, especially for tasks with diverse object categories.
  3. 3Evaluate the performance gains of CARPRT against current class-independent prompt ensembling techniques.
  4. 4Consider adapting this approach for other VLM-based tasks that rely on prompt engineering and ensembling.

Who benefits

E-commerceHealthcareManufacturingMedia & EntertainmentRobotics

Key takeaways

  • CARPRT improves zero-shot VLM classification by using class-aware prompt reweighting.
  • It addresses the limitation of class-independent prompt weighting in VLMs.
  • The method captures class-specific relevance of prompts without additional training.
  • CARPRT outperforms existing reweighting methods on standard benchmarks.

Original post by Ruijiang Dong, Zesheng Ye, Jianzhong Qi, Lei Feng, Feng Liu, Gang Niu, Masashi Sugiyama

"arXiv:2607.14125v1 Announce Type: new Abstract: Pre-trained vision-language models (VLMs) enable zero-shot image classification by computing the similarity score between an image and textual descriptions, typically formed by inserting a class label (e.g., "cat") into a prompt (e.…"

View on X

Originally posted by Ruijiang Dong, Zesheng Ye, Jianzhong Qi, Lei Feng, Feng Liu, Gang Niu, Masashi Sugiyama on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses

More in AI Research