不依赖训练数据和生成模型,用熵值检测AI生成图像
Zero-Shot Detection of AI-Generated Images
- 基于像素上下文的无损编码器计算图像熵值
- 在多种生成模型上平均准确率提升超3%
- 适合需要快速应对新生成工具的检测场景
随着DALLE、Midjourney、Stable Diffusion等工具不断迭代,检测AI生成图像变得愈发困难。传统方法需针对每种生成模型重新训练,难以应对快速变化。本文提出零样本熵检测器(ZED),无需任何AI生成数据,也不依赖生成模型结构来合成特征。受机器生成文本检测启发,通过一个仅使用真实图像训练的无损编码器,估计每个像素在上下文中的概率分布,衡量图像的意外程度。编码器采用多分辨率架构,上下文主要来自低分辨率图像,确保计算效率。仅用单一判别特征,该方法在多种生成模型上实现领先性能,平均准确率比现有最优方法高出3%以上。代码已公开。
原文摘要 · Abstract (English)
Detecting AI-generated images has become an extraordinarily difficult challenge as new generative architectures emerge on a daily basis with more and more capabilities and unprecedented realism. New versions of many commercial tools, such as DALLE, Midjourney, and Stable Diffusion, have been released recently, and it is impractical to continually update and retrain supervised forensic detectors to handle such a large variety of models. To address this challenge, we propose a zero-shot entropy-based detector (ZED) that neither needs AI-generated training data nor relies on knowledge of generative architectures to artificially synthesize their artifacts. Inspired by recent works on machine-generated text detection, our idea is to measure how surprising the image under analysis is compared to a model of real images. To this end, we rely on a lossless image encoder that estimates the probability distribution of each pixel given its context. To ensure computational efficiency, the encoder has a multi-resolution architecture and contexts comprise mostly pixels of the lower-resolution version of the image.Since only real images are needed to learn the model, the detector is independent of generator architectures and synthetic training data. Using a single discriminative feature, the proposed detector achieves state-of-the-art performance. On a wide variety of generative models it achieves an average improvement of more than 3% over the SoTA in terms of accuracy. Code is available at https://grip-unina.github.io/ZED/.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。