Image Generation and Learning Strategy for Deep Document Forgery Detection

Yamato Okamoto, Osada Genki, Iu Yahiro, Rintaro Hasegawa, Peifei Zhu, Hirokatsu KataokaarXiv 2023 · DOI

Abstract

Digital document forgery has evolved beyond simple copy-move techniques to sophisticated AI-driven manipulations like inpainting and scene text editing. Traditional detection methods often fail to identify these "deep forgeries" which seamlessly blend into original document backgrounds. This paper proposes a novel framework for deep document forgery detection, introducing the FD-VIED dataset and a two-stage learning strategy. By combining self-supervised pre-training on both natural and document images with pixel-level semantic segmentation, the proposed method significantly outperforms existing state-of-the-art detectors, achieving a mean Intersection over Union (mIoU) of 0.834.

Introduction

As digital transformation accelerates, the reliance on scanned documents for critical processes—such as insurance claims and loan applications—has increased. While Optical Character Recognition (OCR) systems efficiently process these documents, they lack the capability to distinguish between authentic text and AI-generated forgeries. Modern deep neural networks (DNNs) enable insidious attacks: inpainting can remove text by seamlessly filling backgrounds, and Scene Text Editing (STE) can alter characters while mimicking original fonts and lighting. This paper addresses the vulnerability of current systems to these advanced forgery techniques.

Methodology

The researchers developed a robust detection framework centered on two key components: sophisticated data generation and a multi-stage learning strategy.

Forgery Generation and FD-VIED Dataset

To train models effectively, the authors created the Forged Document Images with Various Image Editing Dataset (FD-VIED). Unlike datasets limited to traditional copy-move attacks, FD-VIED incorporates DNN-based editing. The team utilized DeepFillv2 for high-quality text removal (inpainting) and SRNet for text replacement and addition. The dataset defines four primary tampering patterns: text removal, replacement, addition, and background addition.

Examples of forgery types in the FD-VIED dataset, including text removal, addition, and replacement with corresponding ground truth masks.

Two-Stage Learning Strategy

The detection model follows a two-stage pipeline:

  1. Pre-training: A convolutional encoder is pre-trained using SimCLR, a self-supervised framework. This stage teaches the model to extract general visual features from large unlabeled datasets (ImageNet and RVL-CDIP).
  2. Fine-tuning: The pre-trained encoder is integrated into a Fully Convolutional Network (FCN) for semantic segmentation. The model is fine-tuned on the FD-VIED dataset to perform pixel-wise classification, identifying tampered regions as foreground masks.
The proposed two-stage learning architecture, featuring self-supervised pre-training followed by FCN-based fine-tuning for pixel-level forgery detection.

Results and Discussion

The proposed approach demonstrates superior performance and robustness compared to general-purpose forgery detectors.

Performance Benchmarks

The model achieved an mIoU of 0.834, significantly outperforming general detectors like NEDB-Net (0.382) and MVSS-Net (0.499). It maintained high accuracy across all tampering types, proving effective against both traditional and DNN-based forgeries.

The Hybrid Pre-training Advantage

A key insight from the study is the "Natural Image Paradox." Pre-training on natural images (ImageNet) proved highly effective, and a hybrid approach combining ImageNet with document-specific data (RVL-CDIP) yielded the best results. This suggests that learning fundamental image physics—such as edges, textures, and lighting—from natural scenes helps the model detect the subtle statistical anomalies and "noise" left by AI editing tools on document backgrounds.

Robustness and Generalization

The model showed significant resilience; while traditional models saw performance drops when facing DNN-based removal (mIoU falling from 0.851 to 0.624), the proposed model remained stable. Furthermore, it successfully generalized to unseen document types like contracts and coupons in "wild" testing scenarios.

Conclusion

This research highlights the critical need for AI-powered detection to counter AI-powered forgery. By leveraging sophisticated data generation and a hybrid self-supervised learning strategy, the authors provide a powerful tool for maintaining document integrity in the digital age. Future work will focus on expanding dataset diversity to include more complex document layouts and evolving detection techniques to keep pace with advancing generative models like Diffusion networks.

Summary updated

BibTeX
@misc{okamoto2023image,
  author = {Yamato Okamoto and Osada Genki and Iu Yahiro and Rintaro Hasegawa and Peifei Zhu and Hirokatsu Kataoka},
  title = {{Image Generation and Learning Strategy for Deep Document Forgery Detection}},
  year = {2023},
  eprint = {2311.03650},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.03650},
}
Figure