Diversity-Enhanced and Classification-Aware Prompt Learning for Few-Shot Learning via Stable Diffusion

Gaoqin Chang, Jun Shu, Xiang Yuan, Deyu Meng · Submission to ICLR 2025 · Rejected

Abstract

Recent text-to-image generative models have exhibited an impressive ability to generate fairly realistic images from some text prompts. In this work, we explore to leverage off-the-shelf text-to-image generative models to train non-specific downstream few-shot classification model architectures using synthetic dataset to classify real images. Current approaches use hand-crafted or model-generated text prompts of text-to-image generative models to generated desired synthetic images, however, they have limited capability of generating diversity images. Especially, their synthetic datasets has relatively limited relevance to the downstream classification tasks. This makes them fairly hard to guarantee training models from synthetic images are efficient in practice. To address this issue, we propose a method capable of adaptively learning proper text prompts for the off-the-shelf diffusion model to generate diverse and classification-aware synthetic images. Our approach shows notable improvements in various classification datasets, with results comparable to existing prompt designing methods. We find that replacing data generation strategy of existing zero/few-shot methods with proposed method could consistly improves downstream classification performance across different network architectures, demostrating its model-agnostic characteristic for few-shot learning. This makes it possible to train an efficient downstream few-shot learning models from synthetic images generated by proposed method for real problems.
BibTeX
@article{chang2025diversity,
  author = {Gaoqin Chang and Jun Shu and Xiang Yuan and Deyu Meng},
  title = {{Diversity-Enhanced and Classification-Aware Prompt Learning for Few-Shot Learning via Stable Diffusion}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=4CfliohyqK},
}

Loading related content...

Figure