[Paper Review] ForgeryGPT: Multimodal Large Language Model For Explainable Image Forgery Detection and Localization
ForgeryGPT is a multimodal large language model that enhances image forgery detection and localization by integrating a Mask-Aware Forgery Extractor with object-agnostic prompts and vocabulary-enhanced vision encoding, enabling precise, explainable, and interactive detection of forgeries across diverse datasets, outperforming both GPT-4o and state-of-the-art IFDL methods.
Multimodal Large Language Models (MLLMs), such as GPT4o, have shown strong capabilities in visual reasoning and explanation generation. However, despite these strengths, they face significant challenges in the increasingly critical task of Image Forgery Detection and Localization (IFDL). Moreover, existing IFDL methods are typically limited to the learning of low-level semantic-agnostic clues and merely provide a single outcome judgment. To tackle these issues, we propose ForgeryGPT, a novel framework that advances the IFDL task by capturing high-order forensics knowledge correlations of forged images from diverse linguistic feature spaces, while enabling explainable generation and interactive dialogue through a newly customized Large Language Model (LLM) architecture. Specifically, ForgeryGPT enhances traditional LLMs by integrating the Mask-Aware Forgery Extractor, which enables the excavating of precise forgery mask information from input images and facilitating pixel-level understanding of tampering artifacts. The Mask-Aware Forgery Extractor consists of a Forgery Localization Expert (FL-Expert) and a Mask Encoder, where the FL-Expert is augmented with an Object-agnostic Forgery Prompt and a Vocabulary-enhanced Vision Encoder, allowing for effectively capturing of multi-scale fine-grained forgery details. To enhance its performance, we implement a three-stage training strategy, supported by our designed Mask-Text Alignment and IFDL Task-Specific Instruction Tuning datasets, which align vision-language modalities and improve forgery detection and instruction-following capabilities. Extensive experiments demonstrate the effectiveness of the proposed method.
Motivation & Objective
- Address the lack of interpretability and explainability in existing image forgery detection methods, which typically provide only a binary score or confidence threshold without reasoning.
- Overcome the limitation of current methods in detecting subtle, high-level semantic forgeries by leveraging rich linguistic and knowledge-driven representations beyond low-level visual artifacts.
- Enable interactive, multi-turn dialogue for users to query forgery details, such as forgery type, location, and object identity, enhancing trust and usability.
- Improve generalization across diverse domains by training on multi-granularity forged images and aligning forgery masks within the LLM’s textual and visual feature space.
- Develop a unified framework that combines visual reasoning, semantic understanding, and explainable inference for robust and transparent forgery detection.
Proposed method
- Introduce the Mask-Aware Forgery Extractor, composed of a Forgery Localization Expert (FL-Expert) and a Mask Encoder, to extract precise forgery mask information from input images at the pixel level.
- Augment the FL-Expert with an Object-agnostic Forgery Prompt to enable cross-modal reasoning without dependency on specific object identities, improving generalization across diverse forgeries.
- Enhance the vision encoder with a Vocabulary-enhanced Vision Encoder that incorporates domain-specific forgery terminology to improve detection of fine-grained, multi-scale tampering artifacts.
- Construct a Mask-Text Alignment Pre-training dataset using multi-granularity forged images to align forgery masks with textual descriptions in the LLM’s latent space.
- Apply a three-stage training pipeline: (1) Image-Text Alignment Pre-training, (2) Mask-Text Alignment Pre-training, and (3) Task-Specific Instruction Tuning to refine detection, localization, and dialogue capabilities.
- Leverage the resulting ForgeryGPT model for end-to-end explainable inference, including multi-turn dialogue, forgery type classification, and region-specific reasoning.

Experimental results
Research questions
- RQ1Can a multimodal LLM be effectively fine-tuned to detect and localize subtle image forgeries with high precision while providing detailed, human-interpretable explanations?
- RQ2How does the integration of object-agnostic prompts and vocabulary-enhanced vision encoders improve the detection of diverse forgery types across varying image content?
- RQ3To what extent can a unified MLLM framework generalize to unseen domains, such as industrial anomaly detection, without task-specific retraining?
- RQ4Does interactive, multi-turn dialogue capability enhance user trust and interpretability in forgery detection systems compared to static output models?
- RQ5Can Mask-Text Alignment pre-training significantly improve alignment between forgery masks and textual descriptions in the LLM’s feature space?
Key findings
- ForgeryGPT significantly outperforms both GPT-4o and state-of-the-art IFDL methods on multiple benchmarks, demonstrating superior detection and localization accuracy.
- The integration of the Object-agnostic Forgery Prompt improves forgery localization accuracy by enabling cross-modal reasoning independent of specific object identities.
- The Vocabulary-enhanced Vision Encoder enhances feature learning, resulting in more precise and contour-accurate forgery mask predictions compared to baseline models.
- ForgeryGPT achieves strong zero-shot generalization on industrial anomaly detection datasets, correctly identifying defects such as scratches and deformities in electronic components.
- Human evaluation confirms that ForgeryGPT generates detailed, convincing, and logically consistent explanations for its detection decisions, significantly improving model interpretability.
- The model’s multi-turn dialogue capability enables users to iteratively query forgery details, including object identity, forgery type, and region-specific reasoning, demonstrating robust interactive inference.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.