Prompt Pre-Training with Twenty-Thousand Classes for Open-Vocabulary Visual Recognition
Shuhuai Ren, Aston Zhang, Yi Zhu, Shuai Zhang, Shuai Zheng, Mu Li, Alex Smola, Xu Sun
TL;DR
Prompt Pre-Training with Twenty-Thousand Classes for Open-Vocabulary Visual Recognition (POMP) pre-trains a universal soft prompt on ImageNet-21K to condense semantic information across 20k+ classes. It introduces Local Contrast (class-subset sampling) and Local Correction (adaptive margin) to achieve memory-efficient, scalable pre-training and robust generalization for zero-shot open-vocabulary tasks. Empirically, POMP delivers state-of-the-art results across image classification, open-vocabulary semantic segmentation, and open-vocabulary object detection, with notable efficiency gains over prior prompt-tuning approaches. This work provides a scalable path toward universal perceptual grounding in vision-language models, enabling straightforward zero-shot deployment across diverse downstream tasks.
Abstract
This work proposes POMP, a prompt pre-training method for vision-language models. Being memory and computation efficient, POMP enables the learned prompt to condense semantic information for a rich set of visual concepts with over twenty-thousand classes. Once pre-trained, the prompt with a strong transferable ability can be directly plugged into a variety of visual recognition tasks including image classification, semantic segmentation, and object detection, to boost recognition performances in a zero-shot manner. Empirical evaluation shows that POMP achieves state-of-the-art performances on 21 datasets, e.g., 67.0% average accuracy on 10 classification datasets (+3.1% compared to CoOp) and 84.4 hIoU on open-vocabulary Pascal VOC segmentation (+6.9 compared to ZSSeg). Our code is available at https://github.com/amazon-science/prompt-pretraining.
