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

ForgeryTTT:基于测试时训练的零样本图像篡改定位

ForgeryTTT: Zero-Shot Image Manipulation Localization with Test-Time Training

University of Macau(澳门大学);Intellindust(智业公司);Great Bay University(湾区大学)

Weihuang Liu, Xi Shen, Chi-Man Pun, Xiaodong Cun

AI总结:

针对现有图像篡改检测算法泛化性差的问题,提出基于测试时训练的零样本定位方法ForgeryTTT,通过双任务联合训练与测试时自适应微调,在五个基准上实现准确率显著提升。

摘要:

社交媒体上逼真的假图像日益泛滥,使得内容可信度难以保障。以往的假图像检测算法通常在特定数据集上训练,在全新的真实场景中往往失效。为解决这一问题,我们提出ForgeryTTT,这是首个利用测试时训练(TTT)识别图像篡改区域的方法。该方法针对每个独立测试样本微调模型,以提升性能。\nForgeryTTT首先采用视觉Transformer作为共享图像编码器,在训练阶段使用大型合成数据集同时学习分类和定位任务。具体而言,定位头预测掩码以高亮显示篡改区域。基于该掩码,输入token可被分为篡改组和真实组,随后输入分类头以区分篡改部分和真实部分。在测试时训练阶段,定位头预测的掩码被用于分类头,以更新图像编码器实现更好的适配。此外,在每个token组中使用经典的dropout策略显著提升了性能和效率。\n我们在五个标准基准上测试了ForgeryTTT。尽管方法简洁,与其他零样本方法相比,ForgeryTTT的定位准确率提升了20.1%,相较于非零样本技术提升了4.3%。我们的代码和数据将在论文发表后公开。

英文摘要:

Social media is increasingly plagued by realistic fake images, making it hard to trust content. Previous algorithms to detect these fakes often fail in new, real-world scenarios because they are trained on specific datasets. To address the problem, we introduce ForgeryTTT, the first method leveraging test-time training (TTT) to identify manipulated regions in images. The proposed approach fine-tunes the model for each individual test sample, improving its performance. ForgeryTTT first employs vision transformers as a shared image encoder to learn both classification and localization tasks simultaneously during the training-time training using a large synthetic dataset. Precisely, the localization head predicts a mask to highlight manipulated areas. Given such a mask, the input tokens can be divided into manipulated and genuine groups, which are then fed into the classification head to distinguish between manipulated and genuine parts. During test-time training, the predicted mask from the localization head is used for the classification head to update the image encoder for better adaptation. Additionally, using the classical dropout strategy in each token group significantly improves performance and efficiency. We test ForgeryTTT on five standard benchmarks. Despite its simplicity, ForgeryTTT achieves a 20.1% improvement in localization accuracy compared to other zero-shot methods and a 4.3% improvement over non-zero-shot techniques. Our code and data will be released upon publication.

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

↑