TL;DR
Public image-editing datasets contain millions of pairs but lack the pixel-level masks required to train forgery detection models. SIGMA solves this data bottleneck by combining semantic feature differencing with instruction grounding to automatically generate high-quality localization masks at scale. By converting existing public editing corpora into a massive 1.1-million-sample training resource, SIGMA boosts the performance of diverse downstream forgery detectors by an average of 18.34% F1.
What Problem Does This Paper Address?
The rapid rise of text-driven AI image editors (like FLUX or Midjourney) makes it incredibly easy to generate realistic forgeries, creating an urgent need for robust Image Manipulation Localization (IML) models. However, training these models requires pixel-accurate masks showing exactly what changed, and manual annotation is too expensive to scale.
While millions of open-source (original, edited) image pairs already exist in public editing datasets, automatically extracting masks from them is surprisingly difficult. Simple pixel-level differencing fails because diffusion models introduce global reconstruction noise across the entire image via VAE encoding/decoding. Conversely, relying solely on Vision-Language Models (VLMs) to ground text instructions fails because they only highlight what should have changed according to the prompt, completely missing unintended editor side-effects or cases where the generator ignored instructions.
Methods
SIGMA (Semantic-difference Instruction-Grounding Mask Annotator) introduces a two-branch framework that elegantly marries "what actually changed" with "what was intended to change."
- Semantic Difference Branch: Instead of comparing raw pixels, SIGMA extracts multi-scale dense features from a frozen DINOv2 foundation model backbone. It computes both magnitude and directional differences across layers and refines them using Transformer-based Difference Refinement Blocks (DRBs) to eliminate patch-level quantization artifacts.
- Instruction-Grounding Branch: A lightweight LLM (Qwen2.5-0.5B) parses the editing prompt into a structured tuple:
(original concept, edited concept, action). LangSAM then generates concept-conditioned attention maps, which are fused based on the action type (e.g., add, remove, replace, attribute change). - Bidirectional Cross-Modal Refinement (BCMR): This module iteratively fuses both streams using cross-attention. The visual difference branch attends to the text prior to amplify true edit signals, while the text branch re-anchors itself to the strongest visual evidence.
To bridge the domain shift between clean inpainting data and noisy diffusion edits, SIGMA uses a two-stage training strategy. Stage I pre-trains on exact inpainting masks. Stage II adapts to unlabeled editing pairs using self-supervised techniques: VAE-roundtrip noise calibration (to teach the model what pure reconstruction noise looks like), EMA self-training, and an edit-noise feature disentanglement loss.
Datasets
- Pre-training (Stage I): BR-Gen (focused on image inpainting operations).
- Unlabeled Editing Corpora (Converted to IML Data): AnyEdit, CrispEdit-2M, OmniEdit-Filtered-1.2M, and PromptfixData. Together, SIGMA processed these into a unified dataset of ~1.1 million image pairs covering 24 distinct editing categories.
- Evaluation Benchmarks: CoCoGlide, AutoSplice, MagicBrush, DEAL-300K, and OpenSDI.
Key Insights and Ideas
- Complementary Failure Modes: The core "aha" moment is realizing that pixel differencing and instruction grounding fail in opposite, complementary ways. Visual differencing knows that something changed but can't filter out noise; text grounding knows why things should change but can't verify execution. Fusing them allows them to validate each other.
- Lifting to Semantic Space: Operating in DINOv2's feature space rather than pixel space naturally filters out low-level VAE reconstruction artifacts while preserving high-level structural and semantic modifications.
- Data Recycling: Instead of generating new datasets from scratch or paying for manual annotations, SIGMA unlocks a massive, previously unusable reservoir of existing public image-editing data, turning it into a model-agnostic supervisory resource.
Key Results
- Mask Generation Superiority: SIGMA establishes a new state-of-the-art, achieving an average of 89.83% F1 and 83.52% IoU across five benchmarks, outperforming the strongest baseline (DDPM-CD) by +12.20% F1. On the challenging DEAL-300K dataset, it beats DDPM-CD by a striking +55.53% F1.
- Downstream Detector Boost: The authors used their 1.1M automatically annotated pairs to fine-tune six diverse off-the-shelf IML detectors (including CAT-Net, MVSS-Net, and TruFor). This fine-tuning yielded massive cross-dataset generalization gains, boosting mean F1 scores by up to +30.79% (for MVSS-Net).
- Robustness to Post-Processing: SIGMA maintains near-flat performance curves (~0.95 F1) under heavy post-processing perturbations like JPEG compression, Gaussian noise, and blurring, whereas pixel-differencing methods completely collapse under noise.
Limitations and Future Work
The authors note that while automated mask generation could theoretically be used to refine adversarial editing pipelines to evade detection, SIGMA currently only benefits the detector side.
In terms of technical limitations, the instruction-grounding branch is inherently vulnerable to the precision limits of off-the-shelf text parsers (e.g., occasionally over-extracting contextual phrases), though SIGMA's visual branch successfully filters out these false positives during multimodal fusion. Future work could explore extending this semantic-difference grounding approach to video manipulation localization or more complex multi-turn editing scenarios.
Summary updated