ADCD-Net: Robust Document Image Forgery Localization via Adaptive DCT Feature and Hierarchical Content Disentanglement

Kahim Wong, Jicheng Zhou, Haiwei Wu, Yain-Whar Si, Jiantao Zhou

Introduction

Detecting forgeries in document images—such as altered bank statements, invoices, or identification cards—presents unique challenges compared to natural image forensics. Documents typically feature uniform backgrounds and high-contrast, structured text, which allows tampered regions to blend in seamlessly. While traditional forensic tools leverage Discrete Cosine Transform (DCT) traces—microscopic artifacts from JPEG compression—these signals are notoriously fragile. Simple operations like cropping a single row of pixels or resizing an image can misalign the 8x8 DCT block grid, causing conventional detectors to fail. Furthermore, document detectors often suffer from "text-BG bias," where the sharp edges of legitimate text are incorrectly flagged as forgery-related noise.

Methodology

To address these limitations, we propose ADCD-Net, a framework that enhances robustness through adaptive feature weighting and content disentanglement.

Adaptive RGB-DCT Encoder

Rather than relying statically on frequency-domain features, ADCD-Net predicts an "alignment score" for the input image. If the DCT grid has been compromised by cropping or shifting, the model automatically down-weights the DCT features and prioritizes robust RGB spatial cues. This "Mixture of Experts" (MoE) approach ensures the model remains effective even when forensic traces are degraded.

ADCD-Net's adaptive DCT weighting compared to existing fixed-domain features under various post-processing distortions.

Hierarchical Content Disentanglement (HCD)

To mitigate text-BG bias, ADCD-Net employs a dual-branch decoder. One branch is dedicated to reconstructing the document's "content" (text and layout), while the other focuses exclusively on "forgery traces" (noise and artifacts). By explicitly separating these components, the forgery branch avoids being distracted by the high-contrast edges of pristine text.

Feature space visualization (t-SNE) demonstrating how HCD disentangles document content from forensic noise.

Pristine Prototype Estimation (PPE)

Document backgrounds are typically untampered, providing a reliable baseline for "clean" noise. ADCD-Net utilizes an OCR model to identify these background regions and calculates a "pristine prototype"—a mathematical signature of unmanipulated noise for that specific document. The rest of the image is then compared against this prototype to highlight anomalies.

Experimental Results

ADCD-Net was evaluated against several benchmarks, including DocTamper and cross-domain sets (FCD, SCD). Key findings include:

  • Superior Robustness: The model achieved an average F1 score improvement of 20.79% over state-of-the-art methods across five distortion types (Gaussian noise, blur, downscaling, and JPEG compression).
  • Resilience to Misalignment: While competitors' performance plummeted with a mere 1-pixel shift, ADCD-Net maintained high accuracy by adaptively switching its reliance between RGB and DCT domains.
  • Efficiency and Precision: With only 23 million parameters, ADCD-Net is significantly more lightweight than many competitors. On the Tianchi pristine dataset, it achieved a remarkably low False Alarm Rate of 1.2%.

Conclusion

ADCD-Net represents a significant step forward in robust document forensics. By treating forgery detection as a source separation problem and adaptively managing frequency-domain features, it overcomes the fragility of traditional JPEG-based detectors. Future work will explore integrating OCR functionality directly into the end-to-end training process and extending the adaptive approach to other forensic traces, such as camera-specific sensor noise.

Summary updated

BibTeX
@inproceedings{wong2025adcd,
  author = {Kahim Wong and Jicheng Zhou and Haiwei Wu and Yain-Whar Si and Jiantao Zhou},
  title = {{ADCD-Net: Robust Document Image Forgery Localization via Adaptive DCT Feature and Hierarchical Content Disentanglement}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
  url = {https://openreview.net/forum?id=p4e2wisB6q},
}
Figure