NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

FakeShield: Explainable Image Forgery Detection and Localization via Multi-modal Large Language Models

Zhipei Xu, Xuanyu Zhang, Runyi Li, Zecheng Tang, Qing Huang, Jian Zhang

TL;DR

FakeShield is a multi-modal framework that moves beyond "black-box" image forgery detection by providing both precise localization masks and natural language explanations for why an image is considered fake. By leveraging a new descriptive dataset (MMTD-Set) and a decoupled architecture, it achieves state-of-the-art performance across diverse tampering methods, including Photoshop edits, DeepFakes, and AIGC-based manipulations.

What Problem Does This Paper Address?

The rise of Generative AI (AIGC) has made creating convincing image forgeries easier than ever. While existing Image Forgery Detection and Localization (IFDL) methods are effective, they suffer from two major drawbacks:

  1. The Black-Box Problem: Most tools provide a probability score or a mask but offer no reasoning. Users are left to guess whether the model is looking at a real artifact or just noise.
  2. Generalization Gaps: Models often specialize in one type of forgery (e.g., Photoshop "copy-move") but fail when faced with different domains like DeepFakes or AI-powered inpainting.
Comparison between conventional IFDL and the proposed FakeShield framework.

The authors propose the explainable-IFDL (e-IFDL) task, aiming to create a system that can detect, locate, and explain tampering clues (like lighting inconsistencies or edge artifacts) in a way humans can understand.

Methods

The authors developed FakeShield, which consists of several novel components:

The overall architecture of the FakeShield framework.
  • MMTD-Set (Multi-Modal Tamper Description dataSet): Since existing datasets lack textual explanations, the authors used GPT-4o to generate "image-mask-description" triplets. They crafted specific prompts to guide GPT-4o to look for pixel-level artifacts (edges, resolution) and image-level semantic errors (perspective, lighting).
  • DTE-FDM (Domain Tag-guided Explainable Forgery Detection Module): This module uses a Domain Tag Generator to first identify the likely tampering category (Photoshop, DeepFake, or AIGC). This "tag" guides a fine-tuned Large Multi-modal Model (LMM)—specifically LLaVA-v1.5-13B—to generate a detailed textual rationale.
  • MFLM (Multi-modal Forgery Localization Module): Instead of a single-pass detection, the authors decoupled localization. The textual explanation from the previous step is fed into a Tamper Comprehension Module (TCM). This module extracts a special <SEG> token embedding that acts as a prompt for the Segment Anything Model (SAM) to produce the final high-resolution mask.

Datasets

The study utilizes a massive range of benchmarks for both training and evaluation:

  • Training: Fantastic Reality, CASIAv2, FFHQ, FaceAPP, and a self-constructed AIGC-Editing dataset.
  • Evaluation: A battery of 11 datasets including CASIA1+, Columbia, Coverage, NIST, IMD2020, DSO, Korus, and Seq-DeepFake.
  • New Benchmark: The MMTD-Set, which enriches these existing datasets with high-quality textual descriptions of tampering rationale.

Key Insights and Ideas

  • Decoupling is Crucial: The authors found that trying to make one model do everything (detect, explain, and segment) leads to "task interference." By separating the language-heavy explanation task from the vision-heavy localization task, performance improved significantly.
  • Domain Tags Alleviate Conflict: Different types of forgeries have conflicting features (e.g., DeepFakes often involve blurring, while Photoshop splicing involves sharp edges). Using a domain tag helps the model apply the correct "forensic lens" to the image.
  • Language as a Prompt for Vision: One of the most elegant ideas is using the LLM's own explanation as a semantic guide for the segmentation model. The high-level understanding of what is wrong (e.g., "the penguin's lighting doesn't match the room") helps the segmenter pinpoint the exact pixels.

Key Results

FakeShield demonstrated superior performance across the board:

  • Detection Accuracy: On the IMD2020 dataset, it achieved an ACC of 0.83 and F1 of 0.90, outperforming the previous best (MVSS-Net) by a wide margin.
  • DeepFake Detection: It reached a near-perfect 0.98 ACC on the DFFD benchmark.
  • Localization: In terms of Intersection over Union (IoU), FakeShield consistently beat specialized models like PSCC-Net and OSN, particularly on complex AIGC-edited images.
  • Interpretability: Using Cosine Semantic Similarity (CSS), the authors showed that FakeShield’s explanations are much closer to ground-truth forensic rationales than those of general-purpose M-LLMs like InternVL2 or Qwen2-VL.

Limitations and Future Work

  • Complex DeepFakes: The model still struggles with highly sophisticated DeepFakes, such as identity switching or full-face generation where artifacts are extremely subtle.
  • Reasoning Depth: The authors plan to incorporate Chain-of-Thought (CoT) reasoning to further improve the logical flow of the "judgment basis."
  • Dataset Expansion: Future work will involve expanding the MMTD-Set to include more diverse and edge-case tampering scenarios to further harden the model against evolving generative techniques.

Summary updated

BibTeX
@inproceedings{xu2025fakeshield,
  author = {Zhipei Xu and Xuanyu Zhang and Runyi Li and Zecheng Tang and Qing Huang and Jian Zhang},
  title = {{FakeShield: Explainable Image Forgery Detection and Localization via Multi-modal Large Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=pAQzEY7M03},
}
Figure