[论文解读] DiffusionFake: Enhancing Generalization in Deepfake Detection via Guided Stable Diffusion
DiffusionFake通过引导一个冻结的Stable Diffusion模型重建源图像和目标图像,提升深度伪造检测器的跨域泛化能力,从而学习出解耦、鲁棒的特征,而无需额外的推理参数。
The rapid progress of Deepfake technology has made face swapping highly realistic, raising concerns about the malicious use of fabricated facial content. Existing methods often struggle to generalize to unseen domains due to the diverse nature of facial manipulations. In this paper, we revisit the generation process and identify a universal principle: Deepfake images inherently contain information from both source and target identities, while genuine faces maintain a consistent identity. Building upon this insight, we introduce DiffusionFake, a novel plug-and-play framework that reverses the generative process of face forgeries to enhance the generalization of detection models. DiffusionFake achieves this by injecting the features extracted by the detection model into a frozen pre-trained Stable Diffusion model, compelling it to reconstruct the corresponding target and source images. This guided reconstruction process constrains the detection network to capture the source and target related features to facilitate the reconstruction, thereby learning rich and disentangled representations that are more resilient to unseen forgeries. Extensive experiments demonstrate that DiffusionFake significantly improves cross-domain generalization of various detector architectures without introducing additional parameters during inference. Our Codes are available in https://github.com/skJack/DiffusionFake.git.
研究动机与目标
- 通过分析人脸伪造的生成过程,识别区分深度伪造图像与真实人脸的普遍特征。
- 开发一种即插即用的框架,利用冻结的预训练Stable Diffusion模型来引导检测器学习源相关与目标相关的特征。
- 在不增加推理参数或计算开销的情况下,提升现有检测器的跨域泛化能力。
- 在多种主干网络架构和未见数据集上展示有效性。
提出的方法
- 提出一种即插即用的DiffusionFake框架,将检测器特征注入冻结的Stable Diffusion模型,以重建源脸和目标脸。
- 使用带有卷积和注意力机制的特征筛选模块(Fs和Ft)从检测器嵌入中提取源相关和目标相关特征。
- 使用权重模块(Ws和Wt)基于在Stable Diffusion潜在空间中的相似性自适应地对源信息与目标信息进行加权。
- 引入引导模块,通过可训练的拷贝层和零卷积层将引导特征注入扩散U-Net,从而实现源图像/目标图像的重建。
- 使用联合损失 L = L_ce + λs Ls + λt Lt + Lws + Lwt 进行训练,其中 Ls 和 Lt 是扩散引导的重建损失,Lws/Lwt 将特征权重与源/目标的相似性对齐。
- 在推理阶段,仅使用编码器和分类器,不添加额外参数。
实验结果
研究问题
- RQ1通过引导扩散反向伪造生成过程,是否能获得更具泛化性的检测特征?
- RQ2源特定和目标特征的解耦与引导重建是否提升跨域伪造检测性能?
- RQ3DiffusionFake在不同主干架构下是否有效且不增加推理开销?
- RQ4引入Stable Diffusion引导对未见伪造样本的特征可分离性有何影响?
主要发现
- DiffusionFake在多种主干网络上取得显著的跨域提升(例如 EfficientNet-B4 在未见数据集上的平均AUC提升约6-11%)。
- DiffusionFake在不增加推理参数或计算成本的情况下提升泛化能力。
- 消融研究表明,预训练的 Stable Diffusion、特征筛选模块和权重模块对性能提升都很重要。
- 可视化结果表明真实人脸的源-目标特征距离较小,而伪造人脸的距离更大,支持源/目标信息的解耦。
- t-SNE在未见数据集上使用DiffusionFake时显示真实与伪造特征的分离更清晰。
- DiffusionFake在扩散基与非扩散基数据集上均取得强劲表现,包括DiffSwap。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。