TDPO: two-stage differentiated prompt optimization for image classification

Prompt engineering has emerged as an effective paradigm for adapting vision-language models (VLMs) to image classification. Although large language models (LLMs) could generate rich visual descriptions, their hallucination often produces inaccurate or weakly discriminative class-specific prompts. Moreover, existing prompt optimization methods uniformly optimize all classes, overlooking inter-class heterogeneity. To address these limitations, we propose a two-stage differentiated prompt optimization (TDPO) that refines prompts from task-specific templates to class-specific descriptions. In the first stage, TDPO optimizes templates via roulette-wheel selection to balance efficiency and diversity. In the second stage, salient classes are sampled via a class group sampling strategy, and prompts are optimized using hybrid breeding optimization algorithm (HBO). This cooperative algorithm assigns class-specific prompts to three evolutionary lines based on inter-class heterogeneity, enabling the efficient discovery of discriminative class-specific prompts while preserving stable prompts for well-performing classes. In the setting of challenging one-shot image classification, extensive experiments on seven image classification datasets demonstrate that the proposed TDPO effectively improves classification accuracy, particularly on the Flowers102 and DTD datasets with gains of 2.9% and 1.7% over the previous state of the art. This work provides a promising direction for prompt optimization in vision-language applications.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-09-26
DOI
https://doi.org/10.1038/s41598-026-72568-x
Primary Topic
Multimodal Machine Learning Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
article

TDPO: two-stage differentiated prompt optimization for image classification

Mengqing Mei, Songsong Zhang, Zhiwei Ye, Jia Guo et al.
Scientific Reports
Multimodal Machine Learning Applications
article

TDPO: two-stage differentiated prompt optimization for image classification

Mengqing Mei, Songsong Zhang, Zhiwei Ye, Jia Guo, Qubo Xie, Yunjie Zeng, Qiyi He
article en

Abstract

Prompt engineering has emerged as an effective paradigm for adapting vision-language models (VLMs) to image classification. Although large language models (LLMs) could generate rich visual descriptions, their hallucination often produces inaccurate or weakly discriminative class-specific prompts. Moreover, existing prompt optimization methods uniformly optimize all classes, overlooking inter-class heterogeneity. To address these limitations, we propose a two-stage differentiated prompt optimization (TDPO) that refines prompts from task-specific templates to class-specific descriptions. In the first stage, TDPO optimizes templates via roulette-wheel selection to balance efficiency and diversity. In the second stage, salient classes are sampled via a class group sampling strategy, and prompts are optimized using hybrid breeding optimization algorithm (HBO). This cooperative algorithm assigns class-specific prompts to three evolutionary lines based on inter-class heterogeneity, enabling the efficient discovery of discriminative class-specific prompts while preserving stable prompts for well-performing classes. In the setting of challenging one-shot image classification, extensive experiments on seven image classification datasets demonstrate that the proposed TDPO effectively improves classification accuracy, particularly on the Flowers102 and DTD datasets with gains of 2.9% and 1.7% over the previous state of the art. This work provides a promising direction for prompt optimization in vision-language applications.

Scientific Reports
Wuhan Donghu University (CN), Nagoya University (JP), Hubei University of Technology (CN)
Reduced inequalities
Openalex Percentile: Top 14%
Multimodal Machine Learning Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

TDPO: two-stage differentiated prompt optimization for image classification — Mengqing Mei, Songsong Zhang, et al. · Scientific Reports (2026) | TGRS Research Map | TGRS