Can We Model the Artifacts Explicitly? Disentangle Artifacts via Pairwise Edit Relations for Image Manipulation Localization

Xuekang Zhu, Kaiwen Feng, Ruifeng Wang, Xiwen Wang, Xiaochen Ma, Bo Du, Changjiang Jiang, Chenfan Qu, Songyu Ye, Jian liu, Ji-Zhe ZhouNeurIPS 2026

TL;DR

When an image is doctored, it leaves behind subtle, invisible digital traces—"artifacts"—that get tangled up with the visual content of the image itself. Instead of hoping neural networks will magically spot these traces during standard end-to-end training, this paper explicitly teaches models to isolate them first by playing a high-level game of "spot the edit relationship" between image pairs. The result is a universal, architecture-agnostic pre-training boost that makes existing forgery-detection models significantly harder to fool across unseen domains.

What Problem Does This Paper Address?

Imagine trying to spot a forged painting, not by looking at what is painted (a flying pig), but by examining microscopic inconsistencies in the brushstrokes. That is the core challenge of Image Manipulation Localization (IML), where a model takes an image $x$ and outputs a pixel-by-pixel binary mask $y$ highlighting tampered regions.

The true evidence of tampering lies in artifacts ($z$)—imperceptible, non-semantic statistical quirks introduced by editing software or AI generators. Because humans can’t see these artifacts to label them directly, existing methods rely on implicit modeling: they map images directly to masks ($x \to y$) and hope the network figures out the artifacts along the way. Unfortunately, deep networks are lazy. Given noisy labels and rich visual scenes, they take semantic shortcuts—overfitting to the objects in the training set rather than true forensic traces. Researchers have tried bolting on handcrafted noise filters to help, but these rigid priors struggle to generalize across diverse, modern editing tools.

The authors ask: Without pixel-level labels for invisible traces, can we force a model to learn artifacts explicitly?

Methods

The authors reframe IML as a two-step latent-variable problem: first extract the hidden artifacts from the image ($x \to z$), then map those artifacts to the tampered mask ($z \to y$).

Figure 1: Edit Groups and Edit Relations. (a) Edit Groups are organized as genealogical trees rooted at au- thentic anchors (I0). (b) Green and red arrows indicate edit-related and non-edit-related pairs, respectively.

Because you can't point to an artifact directly, the authors isolate it by contrasting edit relations. If you compare an original image to its directly edited counterpart, the difference contains both semantic changes (e.g., a new object) and manipulation artifacts. If you compare unrelated images—or two different edits of the same original—their differences do not share that direct edit trajectory.

This insight drives a novel two-stage training paradigm:

Figure 2: Overview of the proposed two-stage paradigm. (a) EditGroup-based training pair construction. (b) Pairwise Artifacts Learning (PAL) with a shared backbone and pairwise BCE supervision. (c) Standard Localization with the PAL-optimized backbone.
  1. Stage I: Pairwise Artifacts Learning (PAL) [Novel]: A shared backbone extracts features from two images and computes their absolute difference, summarizing it via Global Average and Max Pooling. A lightweight head trained with Binary Cross-Entropy (BCE) predicts whether the pair shares a direct original-to-edited relationship (1) or not (0). Crucially, the authors construct six distinct types of negative pairs (e.g., an image paired with a benignly augmented version of itself, or two different edits from the same source) to match marginal distributions and strip away semantic shortcuts.
  2. Stage II: Standard Localization (SL) [Standard]: Once the backbone is steeped in forensic awareness, the pairwise scaffolding is discarded. The PAL-optimized encoder is plugged directly into standard IML segmentation architectures and trained using conventional pixel-level mask supervision.

Datasets

To make Stage I possible, the authors needed something existing large-scale datasets lacked: authentic "anchor" images explicitly linked to their manipulated descendants.

Table 2: Comparison with representative IML datasets. ‘Anchor’ denotes source availability.
  • EditGroup-45K (Newly Introduced): Used for Stage I (PAL). Built from $M^3$ source anchors, it organizes 284,594 images (52,074 authentic, 232,520 manipulated) into 45,546 genealogical edit groups. Unlike benchmarks that focus solely on manual edits or AI generation, it features a hybrid mix: ~60% manual Photoshop-style tampering (copy-move, splicing, removal) and ~40% modern AIGC edits (via Doubao, Qwen-Edit, Banana, and GPT-Image-1), all run through identical post-processing to prevent cheap compression shortcuts.
  • Standard IML Benchmarks: Following the standard Protocol-CAT setup, Stage II trains on CASIA v2, IMD2020, Fantastic Reality, and tampCOCO, and evaluates across CASIA v1 (in-domain) plus Coverage, NIST16, Columbia, AutoSplice, and CocoGlide (cross-domain).

Key Insights and Ideas

  • Absolute "Real vs. Fake" pre-training is a trap: Simply training a classifier to label EditGroup-45K images as 0 (authentic) or 1 (fake) boosts in-domain accuracy, but actually hurts cross-domain generalization compared to plain ImageNet weights (0.5292 vs. 0.5320 F1). Pairwise relational learning is what unlocks true transferability (0.5868 F1).
  • Hard negatives do the heavy lifting: Two negative pair types proved critical. Removing In-Group Edited-Edited pairs (two different manipulations of the same photo) caused the worst drop in generalization—proving that forcing the model to distinguish edits within the exact same visual scene is what decouples artifacts from semantics. Meanwhile, removing Self-Augmented negatives caused massive source-domain overfitting.
  • Artifacts aren't just sharp edges: Probing feature activations showed that PAL amplifies sensitivity along manipulation boundaries by 5× to 7× over ImageNet initialization. Qualitatively, PAL adapts to the forgery type: highlighting localized borders for manual splices while firing broadly across the canvas for full-image AIGC edits.

Key Results

Evaluated via pixel-level binary F1 score across six benchmarks:

  • Strong Generalization: Using a ConvNeXt-Small backbone, PAL lifts overall average F1 from 0.5661 (ImageNet baseline) to 0.6266 (+10.68% relative gain), driven by a jump in cross-domain F1 from 0.5320 to 0.5868.
  • Architecture-Agnostic Boost: PAL consistently improves CNNs, Vision Transformers, and modern foundation backbones alike—including ResNet-101 (+7.12%), SegFormer-B3 (+8.24%), DINOv3-Base (+5.9%), and SAM-Base (+14.0%, jumping from 0.5206 to 0.5937 F1).
  • Drop-in Upgrade for Existing SOTA: Simply swapping ImageNet-pretrained backbones for PAL-initialized weights inside established forensic frameworks boosted MVSS-Net (+9.93%), TruFor (+8.39%), CAT-Net (+6.60%), Mesorch (+6.24%), and PSCC-Net (+5.72%).

Limitations and Future Work

The main text does not include a dedicated limitations section, though the authors note that constructing large-scale, source-anchored edit groups was previously a major bottleneck—one they had to curate EditGroup-45K specifically to overcome. For future directions, they position this work as a foundational shift for image forensics: moving the field away from designing ever-more-complex network architectures or rigid handcrafted filters, and toward data-driven, explicit artifact representation learning.

Summary updated

Abstract

Image Manipulation Localization (IML) is commonly formulated as a fully supervised learning task that estimates the optimal manipulation mask $y$ for a given image $x$. In this work, we first reveal the latent nature of artifacts and thus reinterpret IML as a latent-variable problem, $P(y| x)=\int P(y|z) P(z|x)dz$, where $z$ denotes the artifacts. Following this interpretation, we pinpoint the cause for the current IML models' insufficiency as their implicit artifacts modeling strategy, highlighting the necessity of modeling $z$ in an explicit manner. Without direct labels, feature disentanglement is the most appropriate solution for this explicit modeling. Accordingly, we propose a two-stage learning paradigm with the Pairwise Artifacts Learning (PAL) and Standard Localization (SL) phases to estimate $P(z|x)$ and $P (y|z)$ via edit relations. To support our edit-relation-based learning, we further curate EditGroup-45K, a source-anchored dataset organized into edit groups for pair construction. Extensive experiments show that our PAL paradigm yields consistent improvements across diverse IML architectures, and empirical analyses further verify that PAL does capture artifacts explicitly through feature disentanglement. Code and dataset are available at https://github.com/venus-guangjian/PAL
BibTeX
@inproceedings{zhu2026can,
  author = {Xuekang Zhu and Kaiwen Feng and Ruifeng Wang and Xiwen Wang and Xiaochen Ma and Bo Du and Changjiang Jiang and Chenfan Qu and Songyu Ye and Jian liu and Ji-Zhe Zhou},
  title = {{Can We Model the Artifacts Explicitly? Disentangle Artifacts via Pairwise Edit Relations for Image Manipulation Localization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=45xs8n0hj4},
}
Figure