Your Diffusion Model is Secretly a Zero-Shot Classifier
By Alexander C. Li, Mihir Prabhudesai, Shivam Duggal, Ellis Brown, Deepak Pathak. IEEE International Conference on Computer Vision, 2023
371 citations recorded by the source corpus.
The recent wave of large-scale text-to-image diffusion models has dramatically increased our text-based image generation abilities. These models can generate realistic images for a staggering variety of prompts and exhibit impressive compositional generalization abilities. Almost all use cases thus far have solely focused on sampling; however, diffusion models can also provide conditional density estimates, which are useful for tasks beyond image generation. In this paper, we show that the density estimates from large-scale text-to-image diffusion models like Stable Diffusion can be leveraged to perform zero-shot classification without any additional training. Our generative approach to classification, which we call Diffusion Classifier, attains strong results on a variety of benchmarks and outperforms alternative methods of extracting knowledge from diffusion models. Although a gap remains between generative and discriminative approaches on zero-shot recognition tasks, our diffusion-based approach has stronger multimodal compositional reasoning abilities than competing discriminative approaches. Finally, we use Diffusion Classifier to extract standard classifiers from class-conditional diffusion models trained on ImageNet. These models approach the performance of SOTA discriminative classifiers and exhibit strong "effective robustness" to distribution shift. Overall, our results are a step toward using generative over discriminative models for downstream tasks. Results and visualizations on our website: diffusion-classifier.github.io/
Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition
View Paper: https://www.semanticscholar.org/paper/4702d5a163477c734a54f3ed2d171dca1504eaae
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
- Ming-Hsuan Yang
- Yann LeCun
- Jinwoo Shin
- Yoshua Bengio
- Trevor Darrell
- Saining Xie
- Dacheng Tao
- Quoc V. Le
In Computer Vision and Pattern Recognition
- Ming-Hsuan Yang
- Luc Van Gool
- Dacheng Tao
- Xiaogang Wang
- Trevor Darrell
- Jitendra Malik
- Andrea Vedaldi
- Alan L. Yuille
Citations in the corpus
- Representation Alignment for Generation: Training Diffusion Transformers Is Easier Than You Think (2024, positive): “Recent works have explored the use of diffusion models as representation learners (Li et al., 2023a; Xiang et al., 2023; Chen et al., 2024c; Mukhopadhyay et al., 2021) and have shown that they learn discriminative features in their hidden states, and better diffusion models learn better…”
- A Tale of Two Features: Stable Diffusion Complements DINO for Zero-Shot Semantic Correspondence (2023, background): “Due to the text-to-image diffusion model’s ability to effectively connect a text prompt to the content in the images, they should be able to understand what an image contains and were recently shown in [11, 31] to be effective classifiers.”
- Cambrian-1: A Fully Open, Vision-Centric Exploration of Multimodal LLMs (2024, background): “However, there is a much broader pool of visual models that learn representations using only visual signals—such as self-supervised models [8, 96], segmentation [61], depth-supervised [67], and diffusion models [104] (see Fig.”