通过 Token 级 Shuffling 和 Mixing 探索无偏 Deepfake 检测
Exploring Unbiased Deepfake Detection via Token-Level Shuffling and Mixing
AI总结:
针对 deepfake 检测中的位置与内容偏差,本文提出在 Transformer 潜在空间进行 token 级 shuffling、mixing,并用特征对比与 logit 散度对齐分支,提升跨场景泛化。
摘要:
泛化问题被广泛认为是 deepfake 检测中的一项关键挑战。以往大多数工作认为,泛化差距是由各种伪造方法之间的差异造成的。然而,我们的研究表明,当与伪造无关的因素发生变化时,泛化问题仍然可能出现。在本文中,我们识别出检测器也可能容易过拟合的两种偏差:位置偏差和内容偏差,如图 1 所示。对于位置偏差,我们观察到检测器倾向于懒惰地依赖图像内的特定位置(例如,即使没有伪造也依赖中心区域)。至于内容偏差,我们认为检测器可能会错误地利用与伪造无关的信息进行检测(例如背景和头发)。为干预这些偏差,我们提出两个分支,在 transformer 的潜在空间中对 token 进行 shuffling 和 mixing。对于 shuffling 分支,我们在保持局部相关性的同时,重新排列每张图像的 token 及相应的位置嵌入。对于 mixing 分支,我们在 mini-batch 内随机选择并混合两张具有相同标签的图像在潜在空间中的 token,以重组内容信息。在学习过程中,我们在特征空间和 logit 空间中对齐来自不同分支的检测器输出。我们采用面向特征的对比损失和面向 logits 的散度损失,以获得无偏的特征表示和分类器。通过在广泛使用的评估数据集上进行大量实验,我们展示并验证了该方法的有效性。
英文摘要:
The generalization problem is broadly recognized as a critical challenge in detecting deepfakes. Most previous work believes that the generalization gap is caused by the differences among various forgery methods. However, our investigation reveals that the generalization issue can still occur when forgery-irrelevant factors shift. In this work, we identify two biases that detectors may also be prone to overfitting: position bias and content bias, as depicted in Fig. 1. For the position bias, we observe that detectors are prone to lazily depending on the specific positions within an image (e.g., central regions even no forgery). As for content bias, we argue that detectors may potentially and mistakenly utilize forgery-unrelated information for detection (e.g., background, and hair). To intervene these biases, we propose two branches for shuffling and mixing with tokens in the latent space of transformers. For the shuffling branch, we rearrange the tokens and corresponding position embedding for each image while maintaining the local correlation. For the mixing branch, we randomly select and mix the tokens in the latent space between two images with the same label within the mini-batch to recombine the content information. During the learning process, we align the outputs of detectors from different branches in both feature space and logit space. Contrastive losses for features and divergence losses for logits are applied to obtain unbiased feature representation and classifiers. We demonstrate and verify the effectiveness of our method through extensive experiments on widely used evaluation datasets.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。