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 Tuan Tran, Khoi Nguyen · DOI · OpenReview

Introduction

The rapid advancement of diffusion models has democratized high-quality image editing, allowing users to create photorealistic modifications with ease. However, this accessibility poses a significant threat to digital integrity. Traditional image forensic tools, which typically search for low-level pixel artifacts like JPEG compression inconsistencies or sensor noise, are increasingly ineffective against diffusion-based forgeries. These modern edits generate new pixels that are semantically and stylistically consistent with the original scene, leaving few traditional "seams."

The Challenge of Diffusion Forgeries

Diffusion-based editing tools, such as DALL-E 3 and Stable Diffusion, produce forgeries that are nearly indistinguishable from authentic images at the pixel level. Unlike older "cut-and-paste" methods, these models understand the context of the image, ensuring that lighting, shadows, and textures match perfectly.

Examples of diffusion-based image edits across various datasets, highlighting the difficulty of localizing forged regions.

Current forensic models often fail to generalize across different editing techniques. A detector trained on one specific model's output frequently "plummets" in performance when faced with a new, unseen editing pipeline. There is a critical need for a more robust approach that relies on high-level reasoning rather than just microscopic signal analysis.

The EditScout Framework

To address these challenges, researchers from VinAI, the University of Maryland, and Vanderbilt University developed EditScout. This framework treats forgery localization as a reasoning segmentation task, leveraging the semantic power of Multimodal Large Language Models (MLLMs).

The EditScout architecture consists of two primary components:

  1. MLLM-based Reasoning Query Generation: Utilizing a pretrained MLLM (LLaVA) and a visual encoder (CLIP), the system processes a suspicious image alongside a prompt. The model generates a sequence of text tokens, including a specialized [SEG] token. This token captures the model's "reasoning" about the location and nature of the edit.
  2. Segmentation Network: The [SEG] token is transformed into a reasoning query via a Multi-Layer Perceptron (MLP). This query then guides the mask decoder of a Segment Anything Model (SAM) to produce a precise binary mask of the tampered area.
A detailed example of a diffusion-based edit (adding parrots) that requires semantic reasoning to identify.

By fine-tuning only a small portion of the MLLM and SAM using Low-Rank Adaptation (LoRA), the researchers preserved the general knowledge of the heavy visual encoders while specializing the system for forgery detection.

Experimental Evaluation and Results

EditScout was evaluated against state-of-the-art forensic methods on several benchmarks, including a new dataset called PerfBrush. PerfBrush was specifically designed to test generalization by using a different inpainting pipeline (BrushNet) than the one used during training.

The results highlight the superiority of reasoning-based localization:

  • Generalization: On the unseen PerfBrush dataset, EditScout achieved a 22.55 mIoU, significantly outperforming traditional models like CAT-Net, which dropped to 3.67 mIoU.
  • Semantic Synergy: An ablation study confirmed that forcing the model to predict the "Edit Instruction" (e.g., "add a hat") improved segmentation performance, proving that linguistic understanding directly aids localization.

Conclusion

EditScout represents a paradigm shift in image forensics. By moving from pixel-level signal detection to semantic reasoning, it provides a more robust and generalizable solution for unmasking diffusion-based forgeries. While challenges remain in perfecting mask quality and providing deeper forensic explanations, the integration of MLLMs marks a promising new frontier in the fight against digital misinformation.

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 Tuan 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