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

Yi Tang, Xinyi Shang, Jiacheng Cui, Sondos Mahmoud Bsharat, Jiacheng Liu, Xiaohan Zhao, Tran Dinh Tien, Ahmed Elhagry, Salwa K. Al Khatib, Tianjun Yao, Yonina C. Eldar, Jing-Hao Xue, Hao Li, Salman Khan, Zhiqiang ShenarXiv 2026

TL;DR

PIXAR-DG introduces a simple, architecture-agnostic training recipe that allows pixel-level image tampering detectors to generalize to entirely unseen Vision-Language Models (VLMs). By strategically balancing minibatches and staging the introduction of new data domains, it achieves state-of-the-art out-of-distribution localization performance while using less than 20% of the original training data.

What Problem Does This Paper Address?

Modern Vision-Language Models (VLMs) like ChatGPT, Gemini, and Midjourney/Flux have made localized image editing incredibly realistic and accessible. To combat visual misinformation, we need forensic tools that can not only detect if an image was tampered with, but also localize the exact pixels that were altered.

However, current detectors suffer from a major flaw: they overfit to the specific architectural artifacts and generation pipelines of their training data. When a new VLM is released, or when tested against closed-source models, existing detectors fail due to massive out-of-distribution (OOD) domain shifts. This paper tackles the challenge of domain generalization—training a detector that captures transferable, generator-agnostic tampering cues rather than superficial, model-specific artifacts.

Methods

Instead of proposing a complex new neural network architecture, the authors focus on a highly practical training framework built on three core strategies:

  1. Balanced Minibatch Sampling: Standard uniform data pooling often creates highly imbalanced batches dominated by tampered images, leading to biased optimization and training collapse. PIXAR-DG enforces a strict, controllable ratio (e.g., 1:1) of real and tampered images in every single minibatch. This ensures stable, smooth gradient signals.
  2. Late-Injection Optimization: When adapting to a newly released VLM, directly mixing its scarce samples into the training pool from day one can corrupt early feature learning. Instead, the model is first trained on a large, stable base dataset until convergence. Only then is a small amount of the new domain data "injected" alongside the base data, allowing the model to adapt without overfitting.
  3. Conservative Optimization Schedule: The authors replace aggressive learning rate decay schedules with a lower base learning rate ($2 \times 10^{-5}$) and a constant scheduler after a brief warmup, preserving the generalized features learned across multiple domains.
Figure 1: Overview of the proposed training framework. Our tamper detector jointly produces a pixel- level tampering mask, a semantic category label, and a natural-language description of the tampered content. The training framework integrates three components: 1) balanced real-vs-tampered mini-batch sampling, 2) a late-injection mechanism for incorporating Gemini-2.5 during training, and 3) a low-learning-rate adaptation schedule for pixel-level localization.

Datasets

The framework is evaluated using the PIXAR benchmark, which contains images spanning various local editing operations.

  • Base Training Source: A 70K subset of images manipulated by Qwen-Image.
  • Late-Injection Source: Just 3K images from Gemini-2.5.
  • Total Training Data: 73K images—amounting to only 19.2% of the original PIXAR training set scale.
  • Out-of-Distribution (OOD) Evaluation: Tested against four completely unseen, modern generators: GPT-Image-2.0, Gemini-3.1, FLUX.2, and Seedream 4.5.

Key Insights and Ideas

  • Data Efficiency Over Brute Force: The most surprising finding is that using less data can yield better generalization. By curating a diverse 73K subset and applying balanced training, the model significantly outperformed baselines trained on the full 380K dataset.
  • Staged Learning Protects Boundaries: Late injection acts as a regularizer. Establishing a reliable decision boundary on a massive base dataset first prevents the model from chasing superficial artifacts when exposed to new VLM distributions.
  • Flatter Loss Landscapes: Visualizing the loss landscape revealed that PIXAR-DG converges to a significantly flatter minimum than standard training protocols, which directly correlates with robust OOD generalization.

Key Results

PIXAR-DG achieves massive relative improvements over the prior state-of-the-art (PIXAR), despite using a fraction of the data:

  • Localization Accuracy: Achieved a 26.1% relative improvement in average generalized IoU (gIoU) and a 26.8% relative improvement in cumulative IoU (cIoU) across all OOD generators.
Table 1: Pixel-level localization results on the four OOD generators. “Avg.” denotes the average results across the four generators. Bold denotes the best result, and underline denotes the second-best result.
  • Ablation Verification: To prove these gains weren't just from the choice of training data, the authors retrained the baselines on the exact same data mix. PIXAR-DG still maintained a commanding lead, proving the algorithmic value of balanced sampling and late injection.
Table 6: Results under the same training data. All methods are trained on the same training data.

Limitations and Future Work

While highly effective, the authors note a few limitations:

  • Source Dependency: The model's baseline performance still relies on the diversity of the initial base dataset. If the base data lacks representative manipulation patterns, extreme OOD shifts may still cause failures.
  • Data Requirement for New Domains: Late injection still requires a small amount of labeled data from emerging models, which might not always be readily available for strictly closed-source or highly restricted commercial VLMs.
  • Architectural Ceiling: Because this is a training recipe rather than a new model architecture, its performance upper bound remains constrained by the underlying segmentation network it builds upon.

Summary updated

BibTeX
@misc{tang2026simple,
  author = {Yi Tang and Xinyi Shang and Jiacheng Cui and Sondos Mahmoud Bsharat and Jiacheng Liu and Xiaohan Zhao and Tran Dinh Tien and Ahmed Elhagry and Salwa K. Al Khatib and Tianjun Yao and Yonina C. Eldar and Jing-Hao Xue and Hao Li and Salman Khan and Zhiqiang Shen},
  title = {{Simple Domain Generalization for Strong Pixel-Level Image Tampering Detection in Modern VLMs}},
  year = {2026},
  eprint = {2607.18230},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.18230},
}
Figure