Enhancing Tampered Text Detection Through Frequency Feature Fusion and Decomposition

Zhongxi Chen, Shen Chen, Taiping Yao, Ke Sun, Shouhong Ding, Xianming Lin, Liujuan Cao, Rongrong Ji

In an era of deepfakes and sophisticated image editing, document fraud—altering a single digit on an invoice or a name on a contract—has become a high-stakes game of "spot the difference." Traditional image forensics often struggle with these tiny, localized changes. A new research collaboration between Xiamen University and Tencent’s Youtu Lab introduces a novel architecture designed to catch even the most subtle digital forgeries by leveraging frequency-domain analysis.

The Challenge of Document Tampering

Document Image Tampering Detection (DITD) is fundamentally different from detecting manipulations in natural images. While a tampered area in a natural photo might involve a large object, a document forgery often targets a single character within a sea of identical-looking text. The authors identify two primary hurdles:

  1. Imperceptible Modifications: Document backgrounds are often simple and consistent, making it easy for attackers to hide traces of editing.
  2. Tiny Tampering Regions: Edits are often localized to specific characters, which are easily lost during the downsampling process that standard neural networks perform.

Previous methods attempting to use frequency information (like DCT coefficients) often struggled to balance this with standard RGB data, sometimes leading to degraded performance on high-quality, uncompressed images.

Methodology: The FFDN Architecture

The researchers developed the Feature Fusion and Decomposition Network (FFDN) to address these challenges. The core of the FFDN consists of two innovative modules designed to integrate and sharpen frequency-based features.

The FFDN architecture, highlighting the Visual Perception Head, Frequency Perception Head, and the Visual Enhancement Module.

Visual Enhancement Module (VEM)

The VEM integrates frequency data into the visual feature space using an attention mechanism. A critical engineering innovation here is the use of zero-initialized convolutions. By starting the weights at zero, the model initially relies entirely on reliable RGB features. It only incorporates frequency information as it "learns" that those signals are beneficial for finding tampering traces, preventing frequency-domain noise from overwhelming the visual detection.

Wavelet-like Frequency Enhancement (WFE)

The WFE acts as a detail sharpener using Haar Wavelet Decomposition to explicitly split features into high-frequency (edges, textures, artifacts) and low-frequency (structure, color) components. By isolating high-frequency details, the network can detect the sharp edges and blending artifacts typical of tampered text that are usually blurred out during standard processing.

Experimental Results and Insights

The authors evaluated FFDN on several benchmarks, most notably DocTamper, a massive dataset of 170,000 tampered document images. The model set a new state-of-the-art (SOTA) across the board:

  • Performance: Achieved an IoU (Intersection over Union) of 0.90 on DocTamper-T, a significant jump over the previous SOTA of 0.84.
  • Robustness: The model showed high resilience to JPEG compression. At a "Quality 75" level, FFDN’s performance dropped by only 20.2%, compared to a 28.5% drop for previous leading models.
  • Generalization: On the T-SROIE dataset of real-world receipts, the model achieved a near-perfect F1-score of 0.993.
Visual comparison showing how the addition of the DCT stream helps the model correctly identify tampered text (TP) and reduce false negatives (FN) and false positives (FP).

Conclusion

The FFDN demonstrates that frequency data is a powerful tool for document forensics when integrated carefully. The use of zero-initialized convolutions allows the network to "opt-in" to frequency data only when beneficial, solving a long-standing stability issue in multi-modal fusion. While the current work focuses on digital perturbations, future research may explore how these techniques handle physical-to-digital tampering, such as documents that are printed, physically altered, and re-scanned.

Summary updated

BibTeX
@inproceedings{chen2024enhancing,
  author = {Zhongxi Chen and Shen Chen and Taiping Yao and Ke Sun and Shouhong Ding and Xianming Lin and Liujuan Cao and Rongrong Ji},
  title = {{Enhancing Tampered Text Detection Through Frequency Feature Fusion and Decomposition}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73414-4\_12},
}
Figure