What does a platypus look like? Generating customized prompts for zero-shot image classification

By Sarah Pratt, Rosanne Liu, Ali Farhadi. IEEE International Conference on Computer Vision, 2022

367 citations recorded by the source corpus.

Open-vocabulary models are a promising new paradigm for image classification. Unlike traditional classification models, open-vocabulary models classify among any arbitrary set of categories specified with natural language during inference. This natural language, called "prompts", typically consists of a set of hand-written templates (e.g., "a photo of a {}") which are completed with each of the category names. This work introduces a simple method to generate higher accuracy prompts, without relying on any explicit knowledge of the task domain and with far fewer hand-constructed sentences. To achieve this, we combine open-vocabulary models with large language models (LLMs) to create Customized Prompts via Language models (CuPL, pronounced "couple"). In particular, we leverage the knowledge contained in LLMs in order to generate many descriptive sentences that contain important discriminating characteristics of the image categories. This allows the model to place a greater importance on these regions in the image when making predictions. We find that this straightforward and general approach improves accuracy on a range of zero-shot image classification benchmarks, including over one percentage point gain on ImageNet. Finally, this simple baseline requires no additional training and remains completely zero-shot. Code available at https://github.com/sarahpratt/CuPL.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Radiology, Nuclear Medicine and Imaging

View Paper: https://www.semanticscholar.org/paper/007fe51fddfae031570f2d69e67dc67e1fe33621

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Yu Qiao
  2. Hongsheng Li
  3. Peng Gao
  4. Renrui Zhang
  5. Shijian Lu
  6. Sheng Jin
  7. Jiaxing Huang
  8. Jingyi Zhang

In Computer Vision and Pattern Recognition

  1. Yu Qiao
  2. Hongsheng Li
  3. Luc Van Gool
  4. Xiaogang Wang
  5. Dacheng Tao
  6. Ming-Hsuan Yang
  7. Andrew Zisserman
  8. Peng Gao

In Radiology, Nuclear Medicine and Imaging

  1. Yu Qiao
  2. Carl Vondrick
  3. Hongxu Yin
  4. Sachit Menon
  5. Hongsheng Li

Citations in the corpus