Abstract
Diffusion-based image editing has made semantic level image manipulation easy for general users, but it also enables realistic local forgeries that are hard to localize. Existing benchmarks mainly focus on the binary detection of generated images or the localization of manually edited regions and do not reflect the properties of diffusion-based edits, which often blend smoothly into the original content. We present Diffusion-Based Image Editing Area Localization Dataset (DEAL-300K), a large scale dataset for diffusion-based image manipulation localization (DIML) with more than 300,000 annotated images. We build DEAL-300K by using a multi-modal large language model to generate editing instructions, a mask-free diffusion editor to produce manipulated images, and an active-learning change detection pipeline to obtain pixel-level annotations. On top of this dataset, we propose a localization framework that uses a frozen Visual Foundation Model (VFM) together with Multi Frequency Prompt Tuning (MFPT) to capture both semantic and frequency-domain cues of edited regions. Trained on DEAL-300K, our method reaches a pixel-level F1 score of 82.56% on our test split and 80.97% on the external CoCoGlide benchmark, providing strong baselines and a practical foundation for future DIML research.
Introduction
Traditional image forensics has historically focused on "manual" forgeries, such as Photoshop clones or splices. These manipulations often leave behind detectable digital artifacts like inconsistent noise patterns or JPEG grid misalignments. However, the advent of modern diffusion-based editing (e.g., "make the boy laugh" or "remove the phone") has introduced a new challenge: manipulations that blend seamlessly into the original content. These edits are often nearly invisible to traditional detection methods.
The field of Diffusion-based Image Manipulation Localization (DIML) faces two primary hurdles. First, there is a significant scarcity of data; existing datasets are small and often rely on "mask-required" models, which do not reflect the instruction-driven, mask-free editing workflows used by most modern users. Second, there is an annotation bottleneck, as manually labeling the exact pixels modified by a diffusion model is labor-intensive due to the semantic complexity and global nature of the changes.
The DEAL-300K Dataset
To address these challenges, we introduce DEAL-300K, a large-scale dataset featuring over 300,000 automated, pixel-level annotations. The dataset was constructed using a novel three-stage pipeline:
- Instruction Generation: A multi-modal large language model (Qwen-VL) was fine-tuned to generate realistic editing instructions based on input images.
- Mask-Free Editing: These instructions were processed by InstructPix2Pix, a diffusion model that performs edits based solely on text instructions, simulating realistic user interactions.
- Active-Learning Labeling: High-quality pixel-level ground truth masks were generated automatically using an active-learning pipeline based on SAM-CD (Segment Anything Model for Change Detection).
The resulting dataset includes 330,979 training images, 3,989 validation images, and 5,500 test images. It also features specialized subsets like DEAL-MB for multi-step edits to test more complex tampering scenarios.
The MFPT Framework
Alongside the dataset, we propose the Multi-Frequency Prompt Tuning (MFPT) framework. Rather than training a large model from scratch, MFPT utilizes a frozen Visual Foundation Model (VFM), specifically DINOv2, and augments it with parameter-efficient "prompters" designed to detect subtle forgery traces.
The framework incorporates two key components:
- Frequency Input Prompters (FInP): These extract high-frequency details, such as edges and textures, from the input image and inject them into the model's early stages.
- Feature Frequency Prompters (FFrP): Operating on internal features, these use dual-attention branches to balance high-frequency texture anomalies with low-frequency semantic consistency.
By explicitly prompting the model with frequency-domain data, MFPT can identify the fine-grained local texture anomalies that semantic-heavy foundation models might otherwise miss. This approach is highly efficient, with only approximately 8.3% of the total parameters being trainable.
Results and Discussion
Our method establishes a strong baseline for DIML. On the DEAL-E (edited-only) test set, the MFPT model achieved a pixel-level F1 score of 82.56% and an Intersection over Union (IoU) of 70.30%, significantly outperforming traditional baselines like HRNet and Segformer.
The model also demonstrates impressive generalization and robustness. When evaluated on the external CoCoGlide benchmark, MFPT reached an 80.97% F1 score, surpassing the previous state-of-the-art method (EVP) by over 36%. Furthermore, the model remains stable under common image degradations, maintaining an IoU above 68% even under heavy JPEG compression (quality level 50).
Conclusion
DEAL-300K and the MFPT framework provide a practical foundation for future research in diffusion-based image forensics. While the current model is highly effective at identifying tampered regions, future work will focus on refining the detail at edit boundaries, which can currently appear slightly coarse. Additionally, we plan to extend this research into the video domain to address the complexities of temporal consistency in diffusion-based manipulations. The dataset and code are open-sourced to support the broader forensics community.
Summary updated