Simple Domain Generalization for Strong Pixel-Level Image Tampering Detection in Modern VLMs

ML TLDA CV Deepfake Detection Other CV
2026年07月20日
当前主流的视觉-语言模型(VLM)在图像生成与编辑能力上取得了显著进步,这使得针对像素级图像篡改的检测日益重要,但在跨模型场景及分布外(OOD)条件下,该任务也愈发具有挑战性。本研究聚焦于现代视觉-语言模型(如ChatGPT、Gemini、Qwen-Image等)所生成图像的像素级篡改检测问题,致力于构建具备强领域泛化能力的篡改定位模型,使其在面对各类VLM生成的多样化篡改样本时仍能保持鲁棒性。为此,我们提出了一种简洁而高效的领域泛化训练框架,其核心由两项切实可行的策略构成:第一,我们设计了一种均衡的小批量采样机制,在每个小批量中按策略同时采样篡改图像与真实图像,从而避免模型优化过程偏向于篡改伪影特征或干净图像先验,防止训练崩溃,并确保每一轮优化均能获得充分且平衡的梯度信号;第二,我们采用一种简易的“后期注入”策略——先在大规模基础数据集上对检测器进行充分训练,直至其收敛稳定,再仅引入少量从新兴VLM分布中精心筛选的辅助数据,以提升模型对新领域的适应能力,同时规避因新域数据有限而导致的过拟合风险。上述两项技术协同作用,为提升现代VLM生成图像中像素级篡改定位的准确性与分布外鲁棒性,提供了一套既简洁又强大的解决方案。尽管设计理念极为简明,我们的方法在GPT-Images-2.0、Gemini-3.1、FLUX.2和Seedream 4.5等分布外VLM数据集上的平均gIoU与cIoU指标上,相较先前最优方法PIXAR分别实现了26.1%和26.8%的显著相对提升。本工作的代码已开源,地址为:https://github.com/VILA-Lab/PIXAR-DG
Modern vision-language models (VLMs) have significantly improved image generation and editing capabilities, making pixel-level image tampering detection increasingly important yet challenging under cross-model and out-of-distribution shifts. This work studies domain generalization for pixel-level image tampering detection in modern VLMs like ChatGPT, Gemini, Qwen-Image, etc., aiming to learn tampering localization models that remain robust across diverse VLM-generated manipulation distributions. We propose a simple yet effective domain-generalized training framework built on two practical strategies. First, we introduce a balanced minibatch sampling scheme that strategically samples tampered and real images in each minibatch, preventing biased optimization toward either manipulated artifacts or clean-image priors and avoiding training collapse, ensuring that each optimization step receives proper sampled gradient signals. Second, we adopt a simple late-injection strategy, where the detector is first trained on large-scale base data until stable convergence, and then exposed to a small amount of newly selected supporting data from emerging VLM distributions, improving adaptability without overfitting to limited new domains. Together, these components provide a simple yet strong recipe for improving pixel-level tampering localization and OOD robustness across modern VLMs. Despite the conceptual simplicity, our framework outperforms the prior state-of-the-art PIXAR by a large margin of 26.1% and 26.8% relative improvement in average gIoU and cIoU, respectively, across OOD VLMs of GPT-Images-2.0, Gemini-3.1, FLUX.2, and Seedream 4.5. Our code is available at https://github.com/VILA-Lab/PIXAR-DG
许愿