Toward Real-world Text Image Forgery Localization: Structured and Interpretable Data Synthesis

Zeqin Yu, Haotao Xie, Jian Zhang, Jiangqun Ni, Wenkan Su, Jiwu Huang

TL;DR

Researchers have developed Fourier Series-based Tampering Synthesis (FSTS), a novel framework that models the "invisible" behavioral patterns of human forgers to create more realistic synthetic training data. By treating complex image manipulations as a weighted combination of basis operations—much like a Fourier series decomposes a waveform—this approach significantly closes the generalization gap, allowing models to detect real-world text forgeries with much higher accuracy.

What Problem Does This Paper Address?

Text Image Forgery Localization (T-IFL) is the task of identifying manipulated regions in documents, receipts, or screenshots. While deep learning has shown promise here, it faces a major hurdle: generalization.

Models trained on existing synthetic datasets often fail when faced with real-world forgeries. This is because synthetic data typically focuses on "visible" attributes like scene variety or language, but fails to capture the "invisible" distribution—the complex, multi-step decision-making process a human forger follows (e.g., specific sequences of blurring, color adjustment, and geometric transformations). Real-world datasets that do capture this are too small and labor-intensive to create at scale.

Methods

The authors introduce FSTS, a structured and interpretable framework for data synthesis. The process involves three main stages:

  1. Data Collection: The team recruited 67 experts to create 16,750 real-world tampering instances. Crucially, they didn't just save the final images; they recorded the entire editing history via video, PSD files, and logs.
  2. Hierarchical Modeling: They observed that tampering behaviors are not random. Individuals have "habitual preferences" (Individual-level recurrence), and there are "shared tendencies" across the population (Population-level recurrence).
  3. Inspired by the Fourier series, they modeled each tampering parameter as a weighted combination of "basis" operation-parameter configurations.
  4. Just as a complex signal is a sum of simple sines and cosines, a complex forgery is modeled as a sum of basic operations (like Gaussian blur or Content-Aware Fill) with learned weights.
  5. Synthesis: By sampling from this modeled distribution, FSTS generates diverse, realistic training data that mimics the subtle traces left by human editors.
The FSTS framework decomposes complex tampering into basis functions and weights, then uses them to synthesize realistic training samples.

Datasets

The paper introduces several new benchmarks and uses a wide array of existing ones:

  • FSTS-T & FSTS-S: Large-scale synthetic training and cross-domain testing sets (50,000 and 5,705 images, respectively).
  • FSTS-1.5k: A high-quality test set of 1,488 real-world images created by independent tamperers not involved in the modeling phase.
  • FSTS-v2: A massive pretraining dataset containing 236,989 synthetic samples.
  • Evaluation Benchmarks: The models were tested against established real-world datasets including AFAC, CertificatePS, STFD, and FindIt, as well as generative datasets like TIC13 and OSTF.

Key Insights and Ideas

  • The "Invisible Distribution" is Key: The authors argue that the subtle, high-dimensional parameters of the tampering process (the "how") are more important for model generalization than the visible scene content (the "what").
  • Tampering is Structured: Analysis showed that even across different scenarios, tamperers repeatedly use similar configurations. For example, in "Replacement" tasks, Content-Aware Fill was used 61.7% of the time, often followed by specific noise and blur settings to hide the edit.
Analysis of parameter usage frequencies reveals recurring patterns across different human tamperers.
  • Interpretable Synthesis: Because the model uses a discrete set of basis operations, the synthesis process is transparent. Researchers can see exactly which "basis behaviors" the model is learning to detect.

Key Results

The results demonstrate a significant leap in performance:

  • Improved Generalization: Models trained with FSTS data consistently outperformed those trained on standard synthetic data (like DocTamper). The average F1 score gain exceeded 14%, with some models seeing improvements of over 21%.
  • Cross-Mechanism Success: Surprisingly, models trained on FSTS (based on human editing) generalized remarkably well to forgeries created by GANs and Diffusion models. This suggests that modeling human behavior captures fundamental "forgery-ness" that transcends the specific tool used.
  • Pretraining Power: Using FSTS for pretraining followed by fine-tuning on small real-world sets yielded the best overall performance, proving its value as a high-quality data source when real data is scarce.

Limitations and Future Work

The authors acknowledge that their model is currently based on a finite set of real-world scenarios. While 16,750 instances is a large start, the diversity of human tampering is vast. The initial data collection process (recording experts) is also time-consuming and resource-intensive, highlighting a need for more automated ways to capture these "invisible" parameters. Future work may involve expanding the range of tampering types and developing more efficient pipelines for behavioral data collection.

Summary updated

BibTeX
@misc{yu2025toward,
  author = {Zeqin Yu and Haotao Xie and Jian Zhang and Jiangqun Ni and Wenkan Su and Jiwu Huang},
  title = {{Toward Real-world Text Image Forgery Localization: Structured and Interpretable Data Synthesis}},
  year = {2025},
  eprint = {2511.12658},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.12658},
}
Figure