Skip to main content
QUICK REVIEW

[论文解读] Diffusion Models Beat GANs on Image Classification

Soumik Mukhopadhyay, Matthew Gwilliam|arXiv (Cornell University)|Jul 17, 2023
Generative Adversarial Networks and Image SynthesisComputer Science被引用 16
一句话总结

这篇论文表明预训练的扩散模型可以作为统一的自监督表示,在256x256分辨率下在生成和分类上都优于BigBiGAN,并实现有竞争力的FGVC迁移。

ABSTRACT

While many unsupervised learning models focus on one family of tasks, either generative or discriminative, we explore the possibility of a unified representation learner: a model which uses a single pre-training stage to address both families of tasks simultaneously. We identify diffusion models as a prime candidate. Diffusion models have risen to prominence as a state-of-the-art method for image generation, denoising, inpainting, super-resolution, manipulation, etc. Such models involve training a U-Net to iteratively predict and remove noise, and the resulting model can synthesize high fidelity, diverse, novel images. The U-Net architecture, as a convolution-based architecture, generates a diverse set of feature representations in the form of intermediate feature maps. We present our findings that these embeddings are useful beyond the noise prediction task, as they contain discriminative information and can also be leveraged for classification. We explore optimal methods for extracting and using these embeddings for classification tasks, demonstrating promising results on the ImageNet classification task. We find that with careful feature selection and pooling, diffusion models outperform comparable generative-discriminative methods such as BigBiGAN for classification tasks. We investigate diffusion models in the transfer learning regime, examining their performance on several fine-grained visual classification datasets. We compare these embeddings to those generated by competing architectures and pre-trainings for classification tasks.

研究动机与目标

  • 推动支持判别与生成任务的统一无监督表示学习。
  • 证明扩散模型嵌入对于高准确度图像分类具有足够的判别性。
  • 探索从扩散特征中提取和汇聚以用于分类的有效策略。
  • 评估扩散派生特征在细粒度视觉分类(FGVC)上的迁移学习能力。
  • 通过中心核对齐(CKA)表征扩散各层和时间步的表示,并与其他预训练方法进行比较。

提出的方法

  • 使用预训练的无条件引导扩散模型(ADM U-Net,256x256)从中间块和扩散时间步提取特征。
  • 将特征提取定义为 f_theta(x0,t,b) = 在将噪声的 x_t 通过 U-Net 时经过第 b 个块后的激活。
  • 评估线性探针、MLP/CNN/注意力头,以及将特征图转换为分类向量的各种汇聚策略。
  • 在 ImageNet-1k 上就准确度和 FID,将基于扩散的分类器与 BigBiGAN 和 MAGE 基线进行比较。
  • 评估对 FGVC 数据集的迁移能力,并使用中心核对齐(CKA)分析表示。
  • 在时间步 t、块索引 b 和汇聚大小上进行消融,以确定最佳的特征提取设置。

实验结果

研究问题

  • RQ1是否可以在不微调扩散模型的情况下,将扩散模型嵌入重新用于判别性图像分类?
  • RQ2汇聚与分类扩散特征的最佳方法是什么(线性、MLP、CNN、注意力头)?
  • RQ3扩散派生表示与基于GAN的和自监督基线在 ImageNet 和 FGVC 任务中的比较如何?
  • RQ4扩散特征是否能很好地迁移到细粒度数据集,并且它们在不同任务中的超参数敏感性如何?
  • RQ5通过 CKA 衡量,扩散表示在层和扩散时间步上如何演变?

主要发现

  • 扩散模型在 ImageNet-1k 上使用冻结特征、注意力头(b=24, t=90)实现 61.95% 的准确率,优于 BigBiGAN 的分类性能。
  • GD 变体在同样的 FID 26.21 下达到 64.96%(L,pool 2x2)和 71.89%(Attention)的准确率,超过若干统一的基线。
  • 使用扩散特征的线性探针在 ImageNet-1k 上对 Attention 头得到 61.86% 的准确率(b=24, t=150);稳定的扩散特征也支持分类。
  • 在 FGVC 数据集上,扩散特征表现具有竞争力,Aircraft 在多个头上常常优于基于 SimCLR 的基线,尽管在其他任务上仍有差距。
  • CKA 分析显示早期层在模型之间共享更多相似性,而瓶颈层则产生与 ResNet/ViT 相似的判别表示。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。