Rethinking VLMs for Image Forgery Detection and Localization

Shaofeng Guo, Jiequan Cui, Richang Hong

TL;DR

Current Vision-Language Models (VLMs) are surprisingly bad at spotting fakes because they are biased toward "semantic plausibility"—if a scene looks right, they assume it is real. This paper introduces IFDL-VLM, a two-stage framework that decouples forgery detection from explanation, using specialized localization masks to guide a VLM to produce state-of-the-art detection results and highly faithful natural language explanations.

What Problem Does This Paper Address?

As AI-generated content (AIGC) becomes indistinguishable from reality, the task of Image Forgery Detection and Localization (IFDL) has become a high-stakes arms race. Recent attempts to use VLMs (like CLIP or LLMs) for this task have hit a wall.

The authors identify a fundamental "semantic plausibility bias": because VLMs are trained to align images with text descriptions of what is in the scene, they tend to overlook low-level forensic artifacts (like edge inconsistencies or lighting mismatches) if the overall image makes sense. For example, a CLIP model might see a real cat and a seamlessly "Photoshopped" cat as 98% identical because both represent the concept of "cat." Furthermore, LLMs aren't typically exposed to "forgery concepts" during pre-training, making it difficult for them to explain why an image is fake without explicit guidance.

Methods

The authors propose a new pipeline called IFDL-VLM, which moves away from trying to make a VLM do everything at once. Instead, they decouple the "finding" from the "explaining" in two distinct stages:

  1. Stage 1: The Forgery Expert. They train a learnable ViT (Vision Transformer) backbone integrated with a Segment Anything Model (SAM) decoder. This stage is dedicated solely to binary classification (real vs. fake) and generating a precise pixel-level localization mask.
  2. Stage 2: The Region-Aware Explainer. Instead of asking an LLM to find the forgery, they provide the mask from Stage 1 as a "Mask Prior." They use a "CLIP-Region-Aware Fusion" technique to combine global image features with features specifically from the tampered region. This "zoomed-in" context is fed into a Large Language Model (Vicuna-13B) to generate detailed, faithful explanations about the type, location, and visual inconsistencies of the forgery.

By decoupling these tasks, the model avoids the optimization struggle of trying to learn forensic traces and language generation simultaneously.

Datasets

The researchers evaluated their model on a massive scale using 9 popular benchmarks:

  • SID-Set: A large-scale dataset of 300,000 images used for primary training and in-domain evaluation.
  • MMTD-Set: Used for cross-dataset generalization testing, which includes diverse subsets like CASIA1+, IMD2020, Columbia, NIST, DSO, Korus, DeepFake, and AIGC-Editing.

These datasets cover a wide range of manipulations, from traditional "copy-move" and splicing to modern AI-generated deepfakes and object removals.

Key Insights and Ideas

  • The Plausibility Trap: The authors quantitatively prove that CLIP features are nearly identical for authentic and tampered images (often >96% similarity). This confirms that standard VLM priors are actually a hindrance to forensic tasks.
  • Decoupling is Key: Previous SOTA models tried to derive localization and detection directly from the LLM's internal tokens. This paper shows that letting a dedicated vision model handle the "where" and "what" first significantly improves the LLM's ability to handle the "why."
  • Masks as Language Priors: Providing a localization mask acts as a "cheat sheet" for the LLM. It relieves the language model from having to infer forgery concepts from raw data, allowing it to focus on mapping visual artifacts to descriptive language.

Key Results

IFDL-VLM achieved new state-of-the-art performance across the board:

  • Detection: Achieved 99.7% accuracy and a 0.998 F1-score on the SID-Set, virtually perfecting the classification task.
  • Localization: On the SID-Set, it reached an IoU of 0.65, a massive 21% absolute improvement over the previous strongest baseline (SIDA).
  • Generalization: In cross-dataset tests (training on one set, testing on others), it maintained an average IoU of 0.47, outperforming the previous best by 13%.
  • Interpretability: In a human study, raters preferred IFDL-VLM's explanations in 65.2% of cases. Automated GPT-5 evaluations also rated its explanations significantly higher in detail and faithfulness compared to prior work.

Limitations and Future Work

While the model is highly effective, the authors acknowledge a few areas for improvement:

  • Error Propagation: Because the system is a pipeline, if Stage 1 fails to find a forgery or produces a "false positive" mask, Stage 2 might attempt to explain a non-existent artifact (hallucination). However, they note that the LLM's "secondary verification" capabilities help mitigate this.
  • Computational Intensity: The framework relies on several large models (ViT-L, SAM, and a 13B parameter LLM), which may be too heavy for real-time or edge-device applications.
  • Future Directions: The authors suggest exploring more lightweight backbones and investigating how to better handle "hybrid forgeries" where AI generation is blended with traditional manual editing.

Summary updated

Abstract

With the rapid rise of Artificial Intelligence Generated Content (AIGC), image manipulation has become increasingly accessible, posing significant challenges for image forgery detection and localization (IFDL). In this paper, we study how to fully leverage vision-language models (VLMs) to assist the IFDL task. In particular, we observe that priors from VLMs hardly benefit the detection and localization performance and even have negative effects due to their inherent biases toward semantic plausibility rather than authenticity. Additionally, the location masks explicitly encode the forgery concepts, which can serve as extra priors for VLMs to ease their training optimization, thus enhancing the interpretability of detection and localization results. Building on these findings, we propose a new IFDL pipeline named IFDL-VLM. To demonstrate the effectiveness of our method, we conduct experiments on 9 popular benchmarks and assess the model performance under both in-domain and cross-dataset generalization settings. The experimental results show that we consistently achieve new state-of-the-art performance in detection, localization, and interpretability.Code is available at: https://github.com/sha0fengGuo/IFDL-VLM.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
GPT-5 evaluation on SIDA validation imagesIFDL-VLMoverall language-only score2.44split: val
Source quote
L309: To mitigate the potential bias from generic or templated responses—particularly in high-level categories like type and summary, which may achieve spuriously high scores via surface-level phrasing—we assign lower weights to these dimensions. Specifically, guided by the principle that interpretable forgery analysis should prioritize concrete ``where'', ``what'', and ``why'' (i.e., spatial location, semantic content, and visual anomalies), we integrate the scores of forgery type, tampered areas, tampered content, visual inconsistencies, and summary with the weights \{0.05, 0.35, 0.40, 0.15, 0.05\}, yielding an overall language-only score of 2.44, surpassing SIDA-13B by approximately 46%. When combining both mask and textual scores, IFDL-VLM achieves an overall score of 2.36 versus 1.44 for SIDA-13B, further validating the advantage of IFDL-VLM regarding interpretability.
GPT-5 evaluation on SIDA validation imagesIFDL-VLMoverall mask-and-text score2.36split: val
Source quote
L309: To mitigate the potential bias from generic or templated responses—particularly in high-level categories like type and summary, which may achieve spuriously high scores via surface-level phrasing—we assign lower weights to these dimensions. Specifically, guided by the principle that interpretable forgery analysis should prioritize concrete ``where'', ``what'', and ``why'' (i.e., spatial location, semantic content, and visual anomalies), we integrate the scores of forgery type, tampered areas, tampered content, visual inconsistencies, and summary with the weights \{0.05, 0.35, 0.40, 0.15, 0.05\}, yielding an overall language-only score of 2.44, surpassing SIDA-13B by approximately 46%. When combining both mask and textual scores, IFDL-VLM achieves an overall score of 2.36 versus 1.44 for SIDA-13B, further validating the advantage of IFDL-VLM regarding interpretability.
GPT-5 evaluation on SIDA validation imagesSIDA-13Boverall mask-and-text score1.44split: val · params=13B
Source quote
L309: To mitigate the potential bias from generic or templated responses—particularly in high-level categories like type and summary, which may achieve spuriously high scores via surface-level phrasing—we assign lower weights to these dimensions. Specifically, guided by the principle that interpretable forgery analysis should prioritize concrete ``where'', ``what'', and ``why'' (i.e., spatial location, semantic content, and visual anomalies), we integrate the scores of forgery type, tampered areas, tampered content, visual inconsistencies, and summary with the weights \{0.05, 0.35, 0.40, 0.15, 0.05\}, yielding an overall language-only score of 2.44, surpassing SIDA-13B by approximately 46%. When combining both mask and textual scores, IFDL-VLM achieves an overall score of 2.36 versus 1.44 for SIDA-13B, further validating the advantage of IFDL-VLM regarding interpretability.
BibTeX
@misc{guo2026rethinking,
  author = {Shaofeng Guo and Jiequan Cui and Richang Hong},
  title = {{Rethinking VLMs for Image Forgery Detection and Localization}},
  year = {2026},
  eprint = {2603.12930},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.12930},
}
Figure