Text-to-Image Diffusion Models are Zero-Shot Classifiers

Kevin Clark, Priyank Jaini
3/27/2023
cs.CVcs.AIcs.LG

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

The excellent generative capabilities of text-to-image diffusion models suggest they learn informative representations of image-text data. However, what knowledge their representations capture is not fully understood, and they have not been thoroughly explored on downstream tasks. We investigate diffusion models by proposing a method for evaluating them as zero-shot classifiers. The key idea is using a diffusion model's ability to denoise a noised image given a text description of a label as a proxy for that label's likelihood. We apply our method to Stable Diffusion and Imagen, using it to probe fine-grained aspects of the models' knowledge and comparing them with CLIP's zero-shot abilities. They perform competitively with CLIP on a wide range of zero-shot image classification datasets. Additionally, they achieve state-of-the-art results on shape/texture bias tests and can successfully perform attribute binding while CLIP cannot. Although generative pre-training is prevalent in NLP, visual foundation models often use other methods such as contrastive learning. Based on our findings, we argue that generative pre-training should be explored as a compelling alternative for vision-language tasks.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{clark2023texttoimage,
  title  = {Text-to-Image Diffusion Models are Zero-Shot Classifiers},
  author = {Kevin Clark and Priyank Jaini},
  year   = {2023},
  eprint = {2303.15233},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.15233v2},
  journal = {NEURIPS 2023 2023}
}

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

Discussion