Introduction
The rapid advancement of sophisticated image editing tools and generative AI has significantly heightened the risks associated with "fake news," judicial evidence tampering, and copyright infringement. Traditional Image Forgery Detection and Localization (IFDL) methods often struggle with two primary limitations: "semantic blindness" and the "black box" problem. These tools typically focus on low-level artifacts like noise patterns or JPEG inconsistencies while ignoring high-level context. Furthermore, they usually output simple probability scores or heat maps without explaining the reasoning behind a detection.
ForgeryGPT addresses these gaps by integrating forensic expertise into a Multimodal Large Language Model (MLLM) framework. It is designed to not only detect and localize forgeries at the pixel level but also provide natural language explanations, bridging the gap between low-level forensic traces and high-level semantic reasoning.
Methodology
The ForgeryGPT architecture utilizes a Vicuna-7B backbone enhanced by several specialized components designed to capture and interpret forensic evidence:
- Mask-Aware Forgery Extractor (MAFE): This module generates precise pixel-level masks of tampered regions. These masks are converted into "mask tokens" that the LLM can process, enabling the model to describe specific forged areas with spatial awareness.
- Forgery Localization Expert (FL-Expert): A sub-module within MAFE that employs object-agnostic forgery prompts and a vocabulary-enhanced vision encoder. This allows the model to capture domain-specific forensic "visual words" that standard CLIP encoders might overlook.
- Three-Stage Training Strategy:
- Image-Text Alignment: Establishes a baseline understanding of general imagery.
- Mask-Text Alignment: Trains the model to associate specific forgery masks with descriptive text using a large-scale dataset of over 768,000 pairs.
- Task-Specific Instruction Tuning: Fine-tunes the model on 48,000 multi-turn dialogues to enable interactive forensic reasoning and dialogue.
Dataset Construction
To train ForgeryGPT, the authors developed high-quality data pipelines to create new benchmarks:
- Mask-Text Alignment Dataset: This dataset covers splicing, copy-move, and removal techniques. The authors utilized the Segment Anything Model (SAM) to create "multi-granularity" fakes—such as replacing specific parts of an object rather than the whole—to increase training rigor.
- Instruction Tuning Dataset: Consists of 48,000 GPT-assisted multi-turn dialogues focused on forensic analysis.
- Evaluation Benchmarks: The model was validated against a gauntlet of datasets including CASIA1.0+, NIST16, Columbia, IMD2020, and modern AI-generated datasets like AutoSplicing and OpenForensics.
Key Results and Discussion
ForgeryGPT demonstrates superior performance in both localization and explainability compared to existing state-of-the-art (SOTA) methods and general-purpose MLLMs.
- Localization Performance: On the NIST16 benchmark, ForgeryGPT achieved an F1 score of 0.549, significantly outperforming previous SOTA models like DiffForensics (0.415).
- Detection Accuracy: The model reached an average accuracy of 81.6% across multiple benchmarks, surpassing both specialized models like PSCCNet and general models like GPT-4o.
- Explainability: In terms of ROUGE scores for generated explanations, ForgeryGPT (0.303) outperformed LLaVA (0.238) and GPT-4o (0.251).
- Robustness: The system remains resilient against common image perturbations such as JPEG compression and Gaussian noise, which often degrade the performance of traditional forensic tools.
A key innovation is the treatment of forgery masks as visual tokens. This allows the model to provide context-aware reasoning, such as identifying mismatched shadows or lighting inconsistencies in specific regions, and enables a "human-in-the-loop" approach where investigators can ask follow-up questions.
Conclusion and Future Work
ForgeryGPT represents a significant step toward transparent and interactive image forensics. By combining pixel-level localization with high-level semantic reasoning, it provides a more reliable tool for forensic experts. While highly effective, the model can occasionally struggle with objects outside its training distribution. Future research will focus on extending this framework to video deepfake detection and integrating more diverse forensic vocabularies for specialized domains like medical and satellite imagery.
Summary updated