Pith. sign in

REVIEW 2 cited by

Your Diffusion Model is Secretly a Zero-Shot Classifier

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2303.16203 v3 pith:FWBECQKZ submitted 2023-03-28 cs.LG cs.AIcs.CVcs.NEcs.RO

classification cs.LGcs.AIcs.CVcs.NEcs.RO
keywords diffusionmodelsclassificationclassifierdiscriminativegenerativeresultstasks
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

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 significantly stronger multimodal compositional reasoning ability than competing discriminative approaches. Finally, we use Diffusion Classifier to extract standard classifiers from class-conditional diffusion models trained on ImageNet. Our models achieve strong classification performance using only weak augmentations and exhibit qualitatively better "effective robustness" to distribution shift. Overall, our results are a step toward using generative over discriminative models for downstream tasks. Results and visualizations at https://diffusion-classifier.github.io/

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. ConceptAttention: Diffusion Transformers Learn Highly Interpretable Features

    cs.CV 2025-02 conditional novelty 7.0 of 10

    ConceptAttention shows that linear projections in the output space of DiT attention layers yield sharper concept-localizing saliency maps than cross-attention maps, reaching state-of-the-art zero-shot segmentation.

  2. Conditional Diffusion Models are Medical Image Classifiers that Provide Explainability and Uncertainty for Free

    cs.CV 2025-02 conditional novelty 4.0 of 10

    Conditional diffusion models can classify medical images by comparing reconstruction errors, and the per-noise-level majority vote also yields explanation and uncertainty byproducts.

Pith tools