TL;DR
Modern instruction-based image editing tools can seamlessly alter images using natural language prompts without leaving obvious boundary artifacts, rendering traditional forgery localization methods ineffective. To address this, the authors introduce LocateEdit-Bench, the first large-scale benchmark dataset containing 231K images across three manipulation types generated by four state-of-the-art editing models. Their evaluation reveals a critical gap: traditional forensic tools fail on these seamless edits, whereas vanilla semantic segmentation models perform significantly better by leveraging high-level semantic reasoning.
What Problem Does This Paper Address?
Historically, AI-driven image manipulation relied heavily on inpainting models. Inpainting requires a user-provided binary mask to constrain edits to a specific region, which inherently leaves behind low-level statistical mismatches and boundary artifacts that traditional forensic tools can easily detect.
However, the paradigm has shifted toward instruction-based image editing powered by Multi-Modal Diffusion Transformers (MMDiT). Users can now modify images using purely natural language instructions (e.g., "add a weathered wooden log for the couple to sit on"). Because these models generate edits without a predefined mask, the modified regions blend seamlessly and maintain deep semantic coherence with the rest of the image.
Existing forgery localization methods are largely blind to these instruction-driven modifications. This paper addresses the lack of standardized benchmarks and robust localization techniques for this modern editing paradigm.
Methods
The authors developed a rigorous three-stage pipeline to construct a high-quality dataset with precise ground-truth masks:
- Data Collection & Filtering: They sampled real images and text prompts from the OmniEdit dataset. To ensure semantic plausibility, they used ChatGPT to filter out non-object-centric prompts and Qwen3-VL to discard contextually incongruous instructions (e.g., adding an object that wouldn't fit the scene).
- Image Editing: The remaining ~400K pairs were processed using four cutting-edge open-source editing models: Qwen-Image-Edit, Flux-Kontext, Step1X-Edit, and BAGEL. They then used InternVL2 as a quality filter to score and retain only the most accurate and background-consistent images.
- Mask Generation: Since text-guided editing doesn't produce an inherent mask, the authors used ChatGPT to extract the target object from the prompt text, then fed these textual cues into SAM 3 (Segment Anything Model 3) to generate precise, pixel-level ground-truth masks. Only masks with a SAM 3 confidence score $\ge 0.5$ were kept.
Datasets
The paper introduces LocateEdit-Bench, a dataset comprising 231,093 edited images with corresponding high-quality segmentation masks.
- Composition: It is evenly distributed across the four advanced editing models.
- Manipulation Types: It covers three fundamental object-level categories: object addition (45.4%), object swap (30.8%), and attribute modification (23.8%).
- Source Data: The underlying real-world images originate from the LAION and OpenImages repositories via OmniEdit.
Key Insights and Ideas
- The Semantic Shift: Traditional forgery detectors look for low-level anomalies (like noise or edge artifacts). Instruction-based edits don't leave these traces. Instead, localization requires high-level semantic reasoning to identify cross-modal discrepancies introduced by text instructions.
- The Metric Illusion: Standard pixel-level metrics like Accuracy and AUC are heavily dominated by large, untouched background regions, making poor models look deceptively good. The authors argue that region-aware metrics like the Dice Score and mean Intersection over Union (mIoU) are mandatory for an accurate evaluation.
- Vanilla Models Win: Surprisingly, vanilla semantic segmentation models (like SegFormer) outperform specialized forensic networks (like ObjectFormer or PSCC-Net). This is because SegFormer's multi-scale feature fusion mechanism is better at capturing semantic inconsistencies across different spatial resolutions.
- Unified Models are Hardest to Detect: Images edited by BAGEL proved to be the most challenging to localize. Unlike task-specialized editors, BAGEL is a unified generation-understanding model that aligns text and vision more coherently, leaving fewer forensic traces.
Key Results
The authors established a benchmark using two evaluation protocols: Full-Set Evaluation and Cross-Editor Generalization.
- Full-Set Performance: SegFormer achieved the highest localization accuracy with an Average Dice Score of 82.6% and an mIoU of 77.1%. Mesorch (which uses SegFormer as a backbone) came in second at 82.1% Dice. Traditional forensic models like ObjectFormer (67.1% Dice) and PSCC-Net (70.8% Dice) lagged far behind.
- Cross-Editor Generalization: When trained on one editing model and tested on others, all localization models suffered a substantial performance drop. This indicates that different editing architectures leave distinct, model-specific signatures.
- Robustness: Introducing common real-world degradations like JPEG compression (quality = 0.75) or Gaussian blurring ($\sigma = 1.0$) caused a consistent decline across all metrics, proving that current localization approaches are highly sensitive to image quality variations.
Limitations and Future Work
The primary limitation identified is the generalization gap; models trained on specific editors struggle significantly when encountering images manipulated by unseen editing algorithms. Furthermore, the reliance on multi-scale semantic features makes top-performing models vulnerable to post-processing distortions like compression and blur.
The authors suggest that future research must move away from artifact hunting and focus on learning editor-agnostic forensic features and developing robust frameworks capable of modeling semantic consistency across diverse, evolving editing paradigms.
Summary updated