EditScout: Locating Forged Regions from Diffusion-based Edited Images with Multimodal LLM

Quang Nguyen, Truong Vu, Trong-Tung Nguyen, Yuxin Wen, Preston K. Robinette, Taylor T. Johnson, Tom Goldstein, Anh Tran, Khoi Nguyen

TL;DR

EditScout is a novel image forensics framework that leverages the semantic reasoning of Multimodal Large Language Models (MLLMs) to locate and segment forged regions in diffusion-edited images. By predicting both the edit instruction and the tampered area, it significantly outperforms traditional forensic methods, especially when generalizing to unseen editing techniques.

What Problem Does This Paper Address?

Traditional image forensic techniques are highly effective at spotting classic image manipulations like copy-move or splicing. They do this by hunting for low-level inconsistencies: JPEG compression artifacts, noise fingerprints, or unnatural blending edges.

However, the rise of diffusion-based image editing (e.g., DALL-E, Stable Diffusion) has broken these tools. Diffusion models generate photorealistic alterations that blend seamlessly with the original image's style, lighting, and texture. Because there are few low-level structural anomalies to detect, traditional machine forensics and human eyes alike are easily fooled.

Figure 1: Visualizing edited images with annotated bounding boxes highlights notable disparities between (a) traditional editing methods (boxes in red) and (b) diffusion-based techniques (boxes in blue). While conventional edits are easily identifiable, diffusion-based alterations present challenges in image forensics due to their seamless blending of edited regions with their surroundings, yielding photorealistic results.

To solve this, the authors shift the paradigm from low-level artifact detection to high-level semantic and contextual reasoning.

Methods

EditScout tackles forgery localization by combining an MLLM's contextual understanding with a powerful segmentation network. The architecture consists of two primary modules:

  1. MLLM-based Reasoning Query Generation: The system feeds the suspicious image and a fixed text prompt ("Can you segment the edited region and give the instruction used to edit this image.") into a LLaVA model. Finetuned via LoRA, the MLLM outputs a text sequence containing the predicted edit instruction (e.g., "put party hat on dog") and a special [SEG] token.
  2. Segmentation Network: The [SEG] token is passed through a Multi-Layer Perceptron (MLP) to transform it into a reasoning query. This query, alongside visual features extracted from the image, is fed into the mask decoder of a Segment Anything Model (SAM) to generate the final binary segmentation mask.
Overview of the EditScout framework, combining an MLLM for query generation with SAM for mask decoding.

The model is trained using a joint loss function: an autoregressive cross-entropy loss for the text instructions and a combination of binary cross-entropy and Dice loss for the segmentation mask.

Datasets

The authors trained EditScout on two main datasets:

  • MagicBrush: A dataset originally designed for instruction-guided image editing using DALL-E.
  • AutoSplice: A dataset featuring DALL-E manipulations, which the authors manually enhanced by adding descriptive verb-object manipulation instructions to provide better supervision.

For evaluation, they tested on MagicBrush (dev+test), CocoGLIDE (edited via GLIDE), and a newly introduced benchmark:

  • PerfBrush (New): A self-constructed test set designed to evaluate generalization. Instead of DALL-E, it utilizes BrushNet and PerFlow to generate high-quality, completely unseen types of diffusion edits.

Key Insights and Ideas

  • Semantics Over Pixels: Because diffusion models generate statistically consistent pixels, localizing a forgery requires understanding what shouldn't be there contextually, rather than just how the pixels look.
  • The Power of Multi-Task Supervision: One of the paper's core findings is that forcing the model to predict the edit instruction significantly boosts its segmentation accuracy. The text generation task acts as a regularizer and guide, helping the model anchor its visual search to semantically meaningful changes (improving mIoU from 22.23 to 23.77 in ablation studies).
  • The Overfitting Trap of Traditional Forensics: Traditional models fine-tuned on diffusion datasets overfit heavily to the specific generator used in training. When faced with a new generator, their performance plummets, whereas an MLLM-based approach retains its robustness.

Key Results

EditScout demonstrates superior generalization capabilities across multiple test sets compared to traditional forensic baselines like PSCC-Net, TruFor, and CAT-Net:

  • On CocoGLIDE (Unseen Model, Similar Edits): EditScout achieved 34.11 mIoU, outperforming the best fine-tuned traditional baseline (CAT-Net at 31.79 mIoU).
  • On PerfBrush (Unseen Model & Edits): This is where the gap widened dramatically. Fine-tuned CAT-Net's performance plummeted to a meager 3.67 mIoU, revealing severe overfitting. Meanwhile, EditScout maintained a robust 22.55 mIoU, proving its ability to generalize to entirely novel editing pipelines.
Qualitative comparison of predicted masks across different models.

Limitations and Future Work

While EditScout marks a significant step forward, the authors note a few limitations:

  • Imperfect Masks: The binary segmentation boundaries are not always flawless. Integrating specialized low-level image forensic modules directly into the MLLM architecture could help refine pixel-level accuracy.
  • Lack of Intent Explanation: While EditScout can identify what was changed and how (via the instruction), it cannot yet reason about why an edit was made or explain the underlying logic behind a forgery. The authors point to intent-based reasoning as a promising future research direction.

Summary updated

BibTeX
@misc{nguyen2024editscout,
  author = {Quang Nguyen and Truong Vu and Trong-Tung Nguyen and Yuxin Wen and Preston K. Robinette and Taylor T. Johnson and Tom Goldstein and Anh Tran and Khoi Nguyen},
  title = {{EditScout: Locating Forged Regions from Diffusion-based Edited Images with Multimodal LLM}},
  year = {2024},
  eprint = {2412.03809},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.03809},
}
Figure