arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.06741cs.CV
收藏

提升合成图像检测的泛化能力:一种图像变换视角

Improving Synthetic Image Detection Towards Generalization: An Image Transformation Perspective

University of Science and Technology of China(中国科学技术大学);Xiaohongshu Inc.(小红书科技有限公司)

Ouxiang Li, Jiayin Cai, Yanbin Hao, Xiaolong Jiang, Yao Hu, Fuli Feng

AI总结:

针对合成图像检测训练范式中的伪影减弱、过拟合及局部感知不足问题,提出基于裁剪、颜色/旋转变换和块随机掩码的轻量检测器 SAFE,并在 26 个生成模型构成的开放世界数据集上取得新 SOTA。

摘要:

随着近期生成模型推动照片级真实图像合成的发展,合成图像的泛滥也对社交平台造成了某些负面影响,因此迫切需要开发有效的检测器。当前的合成图像检测(SID)流程主要致力于构造通用伪影特征,却忽视了 SID 训练范式。本文重新审视 SID 问题,并识别出当前训练范式中两种普遍存在的偏差,即伪影特征减弱和伪影特征过拟合。同时,我们发现合成图像的成像机制会增强像素之间的局部相关性,这表明检测器应具备局部感知能力。基于此,我们提出 SAFE,这是一种轻量且有效的检测器,包含三种简单的图像变换。首先,针对伪影特征减弱,我们在图像预处理中使用裁剪算子替代下采样算子,以帮助避免伪影失真。其次,针对伪影特征过拟合,我们加入 ColorJitter 和 RandomRotation 作为额外的数据增强,以帮助缓解有限训练样本中颜色差异和语义差异带来的无关偏差。第三,针对局部感知,我们提出一种专为 SID 定制的基于图像块的随机掩码策略,迫使检测器在训练时关注局部区域。我们在一个开放世界数据集上进行了对比实验,该数据集包含由 26 个不同生成模型生成的合成图像。我们的流程取得了新的最先进性能,与现有方法相比,准确率显著提升 4.5%,平均精度显著提升 2.9%。我们的代码可在 https://github.com/Ouxiang-Li/SAFE 获取。

英文摘要:

With recent generative models facilitating photo-realistic image synthesis, the proliferation of synthetic images has also engendered certain negative impacts on social platforms, thereby raising an urgent imperative to develop effective detectors. Current synthetic image detection (SID) pipelines are primarily dedicated to crafting universal artifact features, accompanied by an oversight about SID training paradigm. In this paper, we re-examine the SID problem and identify two prevalent biases in current training paradigms, i.e., weakened artifact features and overfitted artifact features. Meanwhile, we discover that the imaging mechanism of synthetic images contributes to heightened local correlations among pixels, suggesting that detectors should be equipped with local awareness. In this light, we propose SAFE, a lightweight and effective detector with three simple image transformations. Firstly, for weakened artifact features, we substitute the down-sampling operator with the crop operator in image pre-processing to help circumvent artifact distortion. Secondly, for overfitted artifact features, we include ColorJitter and RandomRotation as additional data augmentations, to help alleviate irrelevant biases from color discrepancies and semantic differences in limited training samples. Thirdly, for local awareness, we propose a patch-based random masking strategy tailored for SID, forcing the detector to focus on local regions at training. Comparative experiments are conducted on an open-world dataset, comprising synthetic images generated by 26 distinct generative models. Our pipeline achieves a new state-of-the-art performance, with remarkable improvements of 4.5% in accuracy and 2.9% in average precision against existing methods. Our code is available at: https://github.com/Ouxiang-Li/SAFE.

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

↑