利用图文错位检测假图,通用性强且不易过拟合。
Leveraging Hierarchical Image-Text Misalignment for Universal Fake Image Detection
- 在视觉语言空间中捕捉图文错位作为判别线索
- 对多种生成模型的假图检测准确率超90%
- 适合需要跨模型泛化的假图检测场景
随着生成模型的快速发展,检测生成的虚假图像以防止其被恶意使用已成为关键问题。现有方法将此任务视为简单的二分类问题,仅依赖视觉线索,导致检测器容易过拟合特定图像模式,难以泛化到未见生成模型。本文从多模态视角出发,发现虚假图像与对应文本描述在语义对齐上不如真实图像。基于此,我们提出 ITEM 检测器,利用预训练 CLIP 空间中的图像-文本错位作为判别线索。具体地,先计算图像与文本在 CLIP 空间中的错位程度,再通过一个轻量级 MLP 头完成检测任务。此外,我们设计了分层错位机制,先关注整体图像,再细化到文本描述的每个语义对象,从而挖掘全局与细粒度局部语义错位。大量实验表明,该方法在多种近期生成模型上均优于现有最先进方法,展现出出色的泛化能力与鲁棒性。
原文摘要 · Abstract (English)
With the rapid development of generative models, detecting generated fake images to prevent their malicious use has become a critical issue recently. Existing methods frame this challenge as a naive binary image classification task. However, such methods focus only on visual clues, yielding trained detectors susceptible to overfitting specific image patterns and incapable of generalizing to unseen models. In this paper, we address this issue from a multi-modal perspective and find that fake images cannot be properly aligned with corresponding captions compared to real images. Upon this observation, we propose a simple yet effective detector termed ITEM by leveraging the image-text misalignment in a joint visual-language space as discriminative clues. Specifically, we first measure the misalignment of the images and captions in pre-trained CLIP's space, and then tune a MLP head to perform the usual detection task. Furthermore, we propose a hierarchical misalignment scheme that first focuses on the whole image and then each semantic object described in the caption, which can explore both global and fine-grained local semantic misalignment as clues. Extensive experiments demonstrate the superiority of our method against other state-of-the-art competitors with impressive generalization and robustness on various recent generative models.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。