Introduction
The rapid advancement of generative AI models, such as Midjourney and Stable Diffusion, has made it increasingly difficult to distinguish between real and synthetic images. While existing detection methods often rely on "black-box" binary classifiers that identify pixel-level artifacts, they lack the ability to explain their reasoning to human users. Humans, by contrast, typically identify deepfakes through semantic and physical anomalies—such as anatomical errors or unnatural lighting.
ForenX addresses this gap by leveraging Multimodal Large Language Models (MLLMs) to provide both high-accuracy detection and human-understandable explanations. While standard MLLMs like LLaVA are proficient at content description, they often fail to scrutinize image authenticity out-of-the-box. ForenX bridges this "authenticity blind spot" by injecting forensic awareness directly into the model architecture.
Methodology: The Forensic Prompt
The core innovation of ForenX is the Forensic Prompt. Unlike standard text-based prompting, which yields poor results in deepfake detection (approx. 51% accuracy), ForenX utilizes a specialized "forensics projector."
This projector extracts visual features via a CLIP-ViT encoder and transforms them into a "forensic embedding." This embedding is fed into the LLM alongside standard image and text tokens, forcing the model to prioritize forgery-indicative attributes. The training process involves two distinct stages:
- General Recognition: Fine-tuning the CLIP encoder and LLM on a large-scale dataset of real and fake images using LoRA.
- Explainability Fine-Tuning: Freezing the vision layers and training the LLM on high-quality, human-annotated reasoning data to align its outputs with human cognitive forensic analysis.
Datasets and the ForgReason Benchmark
To evaluate detection performance, the authors utilized standard benchmarks like GenImage and ForenSynths. However, to enable explainability, they introduced ForgReason, a novel dataset comprising 8,215 images. This dataset includes 2,215 realistic AI-generated images from Midjourney, manually annotated by humans who identified specific unrealistic areas and provided detailed explanations. These annotations were then refined by GPT-4V to create high-quality training pairs.
Key Results
ForenX demonstrates superior performance in both detection and reasoning. On the GenImage benchmark, it achieved a 97.8% mean accuracy across eight different diffusion models, significantly outperforming standard MLLM baselines. It also maintained high performance on GAN-based images with a 94.4% accuracy on ForenSynths.
Beyond binary classification, ForenX excels at identifying logical and physical errors. As shown in the dialogue below, the model can pinpoint specific issues such as uneven beard distribution or missing support structures for objects.
User studies and automated evaluations using GPT-4o confirm that ForenX's explanations are more comprehensive, relevant, and reasonable than those of baseline models.
Conclusion and Future Work
ForenX represents a significant step toward transparent and explainable AI-generated image detection. By combining the strengths of artifact-based detection with the reasoning capabilities of MLLMs, it provides a tool that is both accurate and interpretable.
Future research will focus on mitigating LLM hallucinations—where the model may invent non-existent forgery cues—and exploring more complex forensic prompts, such as those incorporating frequency-domain features or image gradients. Expanding the ForgReason dataset will further enhance the model's robustness across diverse generative techniques.
Summary updated