ForensicFormer: Hierarchical Multi-Scale Reasoning for Cross-Domain Image Forgery Detection
Hema Hariharan Samson
TL;DR
Cross-domain forgery detection remains challenging as AI-generated imagery evades traditional forensic cues. ForensicFormer integrates three parallel feature streams (low-level frequency/noise, mid-level boundary, high-level semantic plausibility) with hierarchical cross-attention fusion and a triad of task heads (classification, localization, manipulation-type) trained through staged and adversarial strategies. It achieves a cross-domain average accuracy of $86.8\%$ across seven datasets, $0.76$ F1 for pixel-level localization, and robust performance under aggressive JPEG compression ($83\%$ at $Q=70$) while providing interpretable attention maps that align with forensic reasoning. By bridging classical image forensics and modern deep learning, the approach offers a scalable, explainable solution for real-world deployment where manipulation techniques evolve.
Abstract
The proliferation of AI-generated imagery and sophisticated editing tools has rendered traditional forensic methods ineffective for cross-domain forgery detection. We present ForensicFormer, a hierarchical multi-scale framework that unifies low-level artifact detection, mid-level boundary analysis, and high-level semantic reasoning via cross-attention transformers. Unlike prior single-paradigm approaches, which achieve <75% accuracy on out-of-distribution datasets, our method maintains 86.8% average accuracy across seven diverse test sets, spanning traditional manipulations, GAN-generated images, and diffusion model outputs - a significant improvement over state-of-the-art universal detectors. We demonstrate superior robustness to JPEG compression (83% accuracy at Q=70 vs. 66% for baselines) and provide pixel-level forgery localization with a 0.76 F1-score. Extensive ablation studies validate that each hierarchical component contributes 4-10% accuracy improvement, and qualitative analysis reveals interpretable forensic features aligned with human expert reasoning. Our work bridges classical image forensics and modern deep learning, offering a practical solution for real-world deployment where manipulation techniques are unknown a priori.
