Abstract
Detecting AI-generated images with multimodal large language models (MLLMs) has gained increasing attention due to their rich world knowledge and reasoning potential. However, naive application often leads to suboptimal performance because MLLMs are asked to reason about fakes before they can truly "see" them. Existing vision encoders are optimized for high-level semantics rather than low-level forgery traces, and narrow fine-tuning often leads to "shortcut learning" and catastrophic forgetting of general capabilities. We propose Forensic-Chat, a framework based on the principle of "seeing before reasoning." By first enhancing artifact-aware visual perception and then grounding reasoning in actual observations through dialectical fine-tuning, Forensic-Chat achieves superior generalization and genuinely reliable explainability.
Introduction: The Perception Gap in MLLMs
As AI-generated images (AIGIs) become more photorealistic, traditional detectors struggle to generalize to unseen generators. While MLLMs offer a promising solution due to their reasoning capabilities, they suffer from two critical failures. First, their vision encoders (typically CLIP-based) are "blind" to the subtle, low-level artifacts left by generative models, as they are trained for high-level semantic recognition. Second, when fine-tuned on simple binary labels, these models often learn "linguistic shortcuts"—memorizing response templates rather than developing robust causal reasoning. This results in "catastrophic forgetting," where the model loses its general conversational abilities and provides hallucinated explanations.
As illustrated in the comparison above, baseline models often fail basic dialogue tasks after forensic fine-tuning or rely on repetitive templates. Forensic-Chat, however, maintains its general capabilities while providing adaptive, multi-round forensic analysis.
The Forensic-Chat Framework
To bridge the gap between perception and reasoning, we propose a two-stage training strategy designed to sensitize the model to artifacts before engaging its reasoning engine.
Stage 1: Visual Enhancement (VE)
The first stage focuses on fixing the "blindness" of the vision encoder. We freeze the Large Language Model (LLM) and fine-tune only the vision encoder using a self-reconstruction task. By training the model to distinguish between real images and their VAE-reconstructed versions—which are semantically identical but differ in low-level architectural traces—the encoder becomes sensitive to subtle forgery artifacts without damaging the LLM’s pretrained knowledge.
Stage 2: Dialectical Fine-Tuning (DFT)
In the second stage, we fine-tune the LLM using a multi-round dialogue curriculum. Instead of simple "real or fake" labels, the model is prompted to identify specific visual clues and contrast them with real-world common sense (e.g., "a bird's feet should be distinct from the branch, but here they appear to merge"). This "dialectical" approach forces the model to ground its final verdict in the actual visual evidence perceived in Stage 1, preventing the use of linguistic shortcuts.
Experimental Evaluation
We evaluated Forensic-Chat across a massive array of datasets, including GenImage, AIGI-Holmes, and "in-the-wild" social media data. We also introduced ExplainFake-Bench, a specialized benchmark designed to quantify explainability across five dimensions: Correctness, Specificity, Logical Consistency, Factual Accuracy, and Instruction Following.
Key Results
- State-of-the-Art Performance: Forensic-Chat achieved an average accuracy of 97.81% on the AIGI-Holmes benchmark, outperforming previous MLLM-based detectors by over 5 percentage points.
- Robustness: On the WildRF dataset, which includes real-world social media compressions, Forensic-Chat reached 81.08% accuracy, while other top-tier detectors struggled near 60%.
- Superior Explainability: On ExplainFake-Bench, Forensic-Chat outperformed commercial giants like GPT-4o and Gemini-1.5-Pro in providing specific and factually accurate forensic analysis, achieving the highest average rating (4.22/5).
Conclusion
Forensic-Chat demonstrates that for MLLMs to be effective in image forensics, they must first be equipped to "see" the artifacts they are asked to "reason" about. By decoupling visual perception enhancement from reasoning fine-tuning, we create a model that is not only a superior detector but also a reliable, conversational assistant that retains its general-purpose intelligence.
Summary updated