arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.16203cs.LGcs.AIcs.CVcs.NEcs.RO
收藏

你的扩散模型 secretly 是一个零样本分类器

Your Diffusion Model is Secretly a Zero-Shot Classifier

Carnegie Mellon University(卡内基梅隆大学)

Alexander C. Li, Mihir Prabhudesai, Shivam Duggal, Ellis Brown, Deepak Pathak

AI总结:

本文提出 Diffusion Classifier,利用大规模文本到图像扩散模型的密度估计执行零样本分类,在多模态组合推理上优于判别式方法,且在 ImageNet 类条件模型上表现出更强的分布偏移鲁棒性。

摘要:

近期的大规模文本到图像扩散模型浪潮极大地增强了我们基于文本的图像生成能力。这些模型能为令人惊叹的多样化提示词生成逼真图像,并展现出令人印象深刻的组合泛化能力。迄今为止,几乎所有用例都仅专注于采样;然而,扩散模型也能提供条件密度估计,这对于图像生成之外的任务非常有用。在本文中,我们展示了像 Stable Diffusion 这样的大规模文本到图像扩散模型的密度估计可以被利用来执行零样本分类,而无需任何额外训练。我们的生成式分类方法,我们称之为 Diffusion Classifier,在多种基准上取得了强劲的结果,并优于从扩散模型中提取知识的替代方法。尽管在零样本识别任务上,生成式和判别式方法之间仍存在差距,但我们基于扩散的方法在多模态组合推理能力上显著强于竞争的判别式方法。最后,我们使用 Diffusion Classifier 从在 ImageNet 上训练的类条件扩散模型中提取标准分类器。我们的模型仅使用弱增强就实现了强劲的分类性能,并展现出在定性上更好的对分布偏移的“有效鲁棒性”。总体而言,我们的结果向为下游任务使用生成式而非判别式模型迈出了一步。结果和可视化见 https://diffusion-classifier.github.io/

英文摘要:

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/

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑