Skip to main content
QUICK REVIEW

[论文解读] Detecting Images Generated by Diffusers

Davide Alessandro Coccomini, Andrea Esuli|arXiv (Cornell University)|Mar 9, 2023
Digital Media Forensic DetectionComputer Science被引用 3
一句话总结

本文研究了使用文本到图像扩散模型生成的图像的检测问题,表明使用CLIP特征的简单分类器(如MLP和CNN)能够有效区分生成图像与真实图像。主要发现显示,基于Stable Diffusion数据训练的模型在GLIDE生成的图像上泛化良好,但反之则不然;此外,由于真实感更高,静态物体更难被检测到,而字幕中的语言特征对检测性能的影响微乎其微。

ABSTRACT

This paper explores the task of detecting images generated by text-to-image diffusion models. To evaluate this, we consider images generated from captions in the MSCOCO and Wikimedia datasets using two state-of-the-art models: Stable Diffusion and GLIDE. Our experiments show that it is possible to detect the generated images using simple Multi-Layer Perceptrons (MLPs), starting from features extracted by CLIP, or traditional Convolutional Neural Networks (CNNs). We also observe that models trained on images generated by Stable Diffusion can detect images generated by GLIDE relatively well, however, the reverse is not true. Lastly, we find that incorporating the associated textual information with the images rarely leads to significant improvement in detection results but that the type of subject depicted in the image can have a significant impact on performance. This work provides insights into the feasibility of detecting generated images, and has implications for security and privacy concerns in real-world applications. The code to reproduce our results is available at: https://github.com/davide-coccomini/Detecting-Images-Generated-by-Diffusers

研究动机与目标

  • 研究使用文本到图像扩散模型(如Stable Diffusion和GLIDE)生成的图像检测的可行性。
  • 评估在一种生成器上训练的模型是否能够泛化以检测来自另一种生成器的图像。
  • 分析图像主体类别(生物与非生物)对检测性能的影响。
  • 评估在检测中引入文本字幕是否能提高准确性。
  • 探索字幕的语言特征,以分析其对检测错误的潜在影响。

提出的方法

  • 在从CLIP或传统CNN提取的图像特征上训练多层感知机(MLP)和卷积神经网络(CNN)。
  • 采用两种仅图像和两种图像+文本分类设置,后者中图像和字幕均使用CLIP特征。
  • 使用MSCOCO和Wikimedia数据集中的字幕,在Stable Diffusion和GLIDE生成的图像上进行模型训练。
  • 通过在一种生成器上训练的模型测试其对另一种生成器图像的泛化能力,评估泛化性能。
  • 基于维基百科本体论,将测试图像划分为生物与非生物类别,进行错误分析。
  • 使用皮尔逊相关系数对字幕进行语言学分析,以评估句子特征对分类结果的影响。

实验结果

研究问题

  • RQ1能否使用CLIP特征,通过简单分类器检测扩散模型生成的图像?
  • RQ2在一种扩散模型(如Stable Diffusion)上训练的模型,是否能够检测到另一种模型(如GLIDE)生成的图像?
  • RQ3主体类别(生物与非生物)如何影响检测性能?
  • RQ4在检测中引入文本字幕是否能提高准确性?
  • RQ5字幕中的特定语言特征是否与检测错误相关?

主要发现

  • 在CLIP特征上训练的MLP和CNN能够有效检测来自Stable Diffusion和GLIDE的生成图像。
  • 在Stable Diffusion数据上训练的模型在GLIDE生成的图像上泛化良好,但在Stable Diffusion图像上对GLIDE模型的泛化表现较差,表明存在非对称泛化现象。
  • 与生物主体(如人物、动物)相比,非生物物体(如建筑、道路、河流)的生成图像显著更难检测,其假阴性率更高。
  • 字幕的语言特征(如长度、复杂度)与检测性能之间无显著相关性,表明分类中图像内容起主导作用,而非文本。
  • 在图像+文本设置中引入文本信息通常不会显著提升检测准确性。
  • 非生物场景生成的图像真实感更高,使其更难检测,表明图像质量与一致性是影响检测难度的关键因素。

阅读本论文

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

在 Nubint 中阅读本论文

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