Lune

NeurIPS2023Top-tier venue

Text-to-Image Diffusion Models are Zero Shot Classifiers

Kevin Clark, Priyank Jaini

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

62 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • High-Resolution Image Synthesis with Latent Diffusion Models cites Denoising Diffusion Probabilistic Models
  • LaRE2: Latent Reconstruction Error Based Method for Diffusion-Generated Image Detection cites High-Resolution Image Synthesis with Latent Diffusion Models
  • LaRE2: Latent Reconstruction Error Based Method for Diffusion-Generated Image Detection cites Learning Transferable Visual Models From Natural Language Supervision
  • LaRE2: Latent Reconstruction Error Based Method for Diffusion-Generated Image Detection cites Denoising Diffusion Probabilistic Models
  • Robust Classification via a Single Diffusion Model cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Robust Classification via a Single Diffusion Model cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Robust Classification via a Single Diffusion Model cites Denoising Diffusion Probabilistic Models
  • A Tale of Two Features: Stable Diffusion Complements DINO for Zero-Shot Semantic Correspondence cites High-Resolution Image Synthesis with Latent Diffusion Models
  • A Tale of Two Features: Stable Diffusion Complements DINO for Zero-Shot Semantic Correspondence cites Denoising Diffusion Probabilistic Models
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale cites Language Models are Few-Shot Learners
  • Intriguing Properties of Generative Classifiers cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Intriguing Properties of Generative Classifiers cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Intriguing Properties of Generative Classifiers cites Learning Transferable Visual Models From Natural Language Supervision
  • Intriguing Properties of Generative Classifiers cites Denoising Diffusion Probabilistic Models
  • Learning Transferable Visual Models From Natural Language Supervision cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Learning Transferable Visual Models From Natural Language Supervision cites Language Models are Few-Shot Learners
  • Diffusion Models are Certifiably Robust Classifiers cites Robust Classification via a Single Diffusion Model
  • Diffusion Models are Certifiably Robust Classifiers cites Denoising Diffusion Probabilistic Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers62

  1. A Tale of Two Features: Stable Diffusion Complements DINO for Zero-Shot Semantic CorrespondenceJunyi Zhang, Charles Herrmann, Junhwa Hur, Luisa Polania Cabrera et al.NeurIPS 2023 · 371 citations
  2. Robust Classification via a Single Diffusion ModelHuanran Chen, Yinpeng Dong, Zhengyi Wang, Xiao Yang et al.ICML 2024 · 94 citations
  3. Intriguing Properties of Generative ClassifiersPriyank Jaini, Kevin Clark, Robert GeirhosICLR 2024 · 61 citations
  4. Diffusion Models are Certifiably Robust ClassifiersHuanran Chen, Yinpeng Dong, Shitong Shao, Zhongkai Hao et al.NeurIPS 2024 · 42 citations
  5. LaRE2: Latent Reconstruction Error Based Method for Diffusion-Generated Image DetectionYunpeng Luo, Junlong Du, Ke Yan, Shouhong DingCVPR 2024 · 29 citations

Builds on18

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
  3. Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
  4. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  5. High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations

Related papers

  1. Your Diffusion Model is Secretly a Zero-Shot ClassifierAlexander C. Li, Mihir Prabhudesai, Shivam Duggal, Ellis Brown et al.ICCV 2023 · 341 citations
  2. DiffusionCLIP: Text-Guided Diffusion Models for Robust Image ManipulationGwanghyun Kim, Taesung Kwon, Jong Chul YeCVPR 2022 · 458 citations
  3. DiffDis: Empowering Generative Diffusion Model with Cross-Modal Discrimination CapabilityRunhui Huang, Jianhua Han, Guansong Lu, Xiaodan Liang et al.ICCV 2023 · 10 citations
  4. Are Diffusion Models Vision-And-Language Reasoners?Benno Krojer, Elinor Poole-Dayan, Vikram Voleti, Chris Pal et al.NeurIPS 2023 · 21 citations
  5. CLIPText: A New Paradigm for Zero-shot Text ClassificationLibo Qin, Weiyun Wang, Qiguang Chen, Wanxiang CheACL Findings 2023 · 12 citations
Dusk over the sea between two cliffs drawn in fine vertical lines