Towards Generative Class Prompt Learning for Fine-grained Visual Recognition

Soumitri Chattopadhyay, Sanket Biswas, Emanuele Vivoli, Josep Lladós
9/3/2024
cs.CVcs.CL

Official code: soumitri2001/GCPL (5 stars, MIT, last commit 2025-11-01).

Abstract

Although foundational vision-language models (VLMs) have proven to be very successful for various semantic discrimination tasks, they still struggle to perform faithfully for fine-grained categorization. Moreover, foundational models trained on one domain do not generalize well on a different domain without fine-tuning. We attribute these to the limitations of the VLM's semantic representations and attempt to improve their fine-grained visual awareness using generative modeling. Specifically, we propose two novel methods: Generative Class Prompt Learning (GCPL) and Contrastive Multi-class Prompt Learning (CoMPLe). Utilizing text-to-image diffusion models, GCPL significantly improves the visio-linguistic synergy in class embeddings by conditioning on few-shot exemplars with learnable class prompts. CoMPLe builds on this foundation by introducing a contrastive learning component that encourages inter-class separation during the generative optimization process. Our empirical results demonstrate that such a generative class prompt learning approach substantially outperform existing methods, offering a better alternative to few shot image recognition challenges. The source code will be made available at: https://github.com/soumitri2001/GCPL.

View on arXivView PDF

Code Implementations(1)

soumitri2001/GCPLOfficial100%
MIT

Towards Generative Class Prompt Learning for Fine-grained Visual Recognition, BMVC 2024 (Oral)

50CSS, HTMLAug 27, 202411 months agoMIT

Similar Papers

Cite this paper

@article{chattopadhyay2024towards,
  title  = {Towards Generative Class Prompt Learning for Fine-grained Visual Recognition},
  author = {Soumitri Chattopadhyay and Sanket Biswas and Emanuele Vivoli and Josep Lladós},
  year   = {2024},
  eprint = {2409.01835},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.01835v2}
}

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/2409.01835.svg)](https://codeofpaper.com/paper/2409.01835)

Discussion