Detecting Text Manipulation in Images using Vision Language Models

Vidit Vidit, Pavel Korshunov, Amir Mohammadi, Christophe Ecabert, Ketan Kotwal, Sébastien MarcelarXiv 2025 · DOI

Introduction

As Large Vision Language Models (VLMs) become increasingly sophisticated, their ability to interpret complex visual scenes has grown. However, the specific domain of text manipulation detection remains a critical yet neglected frontier. Unlike general image forgeries (e.g., face-swaps), text manipulation is often semantically dense; a single altered digit on a passport or bank statement can facilitate significant financial fraud or security breaches. This paper benchmarks the performance of state-of-the-art VLMs against specialized forensic models in identifying these subtle, high-stakes alterations.

Overview of the text manipulation detection task, showing examples of manipulated scene text (a), the VLM detection pipeline (b), and pristine vs. manipulated document samples from the FantasyID dataset (c, d).

Methodology

The researchers evaluated several classes of models using a zero-shot prompting approach to determine their inherent forensic capabilities:

  • Closed-Source VLMs: GPT-4o, tested at both "low" and "high" resolutions.
  • Open-Source VLMs: Qwen-2.5-VL-72B and Llama-3.2-90B-Vision.
  • Specialized Forensic Models: FakeShield and SIDA, which are fine-tuned specifically for general image manipulation detection.
  • Non-VLM Baseline: TruFor, a transformer-based architecture designed for anomaly localization.

To understand the impact of context, the team conducted an ablation study on prompting, varying the detail from a simple query (L1: "Is this image manipulated?") to a highly descriptive prompt (L3) that defined specific text forgery characteristics. They also investigated resolution as a potential bottleneck for detecting small-scale text edits.

Benchmarking Datasets

The study utilized two primary benchmarks to test generalization across different environments:

  1. Open-Set Text Forensics (OSTF): This dataset focuses on "in-the-wild" scene text, such as billboards and street signs, manipulated using eight distinct methods ranging from traditional rendering to modern diffusion models.
  2. FantasyID: A specialized dataset containing 362 "fantasy" ID cards. These documents simulate real-world "injection attacks" used to bypass Know Your Customer (KYC) checks by altering names, dates, and other sensitive text fields.

Key Results and Insights

The Performance Gap

GPT-4o-high emerged as the top performer, achieving an Average F1 score of 0.86 on OSTF and 0.85 on FantasyID. Among open-source models, Qwen-2.5-VL-72B showed promise on scene text (0.79 F1) but struggled significantly with the complex layouts of ID documents (0.56 F1), highlighting a substantial gap between proprietary and open-source reasoning in structured documents.

The Failure of Specialized Models

Surprisingly, models fine-tuned specifically for image forensics (SIDA and FakeShield) performed poorly on text-specific tasks, hovering around an F1 of 0.51 on OSTF. This suggests these models are overfit to general artifacts (like blending inconsistencies in faces) and fail to recognize the unique signatures of forged text.

Resolution and Prompting

Resolution proved to be a primary bottleneck. GPT-4o's performance on FantasyID improved dramatically when switched to "high" resolution mode, as text often occupies only a tiny fraction of the total image area. Furthermore, performance scaled positively with prompt detail, indicating that VLMs benefit from explicit instructions on what forensic markers to look for.

Conclusion

While general-purpose VLMs like GPT-4o are currently the most effective tools for detecting text manipulation, they are not infallible and come with high API costs. The failure of specialized forensic models to generalize to text highlights a need for more diverse training data. Future research should focus on distilling the reasoning capabilities of top-tier models into smaller, open-source architectures and developing datasets that specifically target the nuances of text-based forgery.

Summary updated

BibTeX
@misc{vidit2025detecting,
  author = {Vidit Vidit and Pavel Korshunov and Amir Mohammadi and Christophe Ecabert and Ketan Kotwal and Sébastien Marcel},
  title = {{Detecting Text Manipulation in Images using Vision Language Models}},
  year = {2025},
  eprint = {2509.10278},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.10278},
}
Figure