ProAPO: Progressively Automatic Prompt Optimization for Visual Classification

Xiangyang Qu, Gaopeng Gou, Jiamin Zhuang, Jing Yu, Kun Song +3 more
2/10/2026

No official code found. Best implementation: MorningStarOvO/ProAPO (33 stars, MIT, last commit 2025-11-09).

Abstract

Vision-language models (VLMs) have made significant progress in image classification by training with large-scale paired image-text data. Their performances largely depend on the prompt quality. While recent methods show that visual descriptions generated by large language models (LLMs) enhance the generalization of VLMs, class-specific prompts may be inaccurate or lack discrimination due to the hallucination in LLMs. In this paper, we aim to find visually discriminative prompts for fine-grained categories with minimal supervision and no human-in-the-loop. An evolution-based algorithm is proposed to progressively optimize language prompts from task-specific templates to class-specific descriptions. Unlike optimizing templates, the search space shows an explosion in class-specific candidate prompts. This increases prompt generation costs, iterative times, and the overfitting problem. To this end, we first introduce several simple yet effective edit-based and evolution-based operations to generate diverse candidate prompts by one-time query of LLMs. Then, two sampling strategies are proposed to find a better initial search point and reduce traversed categories, saving iteration costs. Moreover, we apply a novel fitness score with entropy constraints to mitigate overfitting. In a challenging one-shot image classification setting, our method outperforms existing textual prompt-based methods and improves LLM-generated description methods across 13 datasets. Meanwhile, we demonstrate that our optimal prompts improve adapter-based methods and transfer effectively across different backbones. Our code is available at here.

View on arXivView PDF

Code Implementations(1)

MIT

Official PyTorch implementation for paper "ProAPO: Progressively Automatic Prompt Optimization for Visual Classification". The paper is accepted by CVPR 2025

332Shell, PythonFeb 27, 202511 months agoMIT

Similar Papers

Cite this paper

@article{qu2026proapo,
  title  = {ProAPO: Progressively Automatic Prompt Optimization for Visual Classification},
  author = {Xiangyang Qu and Gaopeng Gou and Jiamin Zhuang and Jing Yu and Kun Song and Qihao Wang and Yili Li and Gang Xiong},
  year   = {2026},
  eprint = {2502.19844},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2502.19844},
  journal = {CVPR 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.19844.svg)](https://codeofpaper.com/paper/2502.19844)

Discussion