FreqGuard: a frequency–spatial dual-stream network for detecting images synthesized by unseen diffusion models and generative adversarial networks
Images produced by generators that a detector has not seen during training can easily escape detection. We introduce FreqGuard, a lightweight network that combines an ImageNet-pretrained spatial encoder with a frequency stream of block discrete cosine transform (BDCT) spectra, noise residuals and a radial Fourier descriptor via cross-stream gated attention where frequency-band dropout is used to regularise the network. On Tiny-GenImage, we compared FreqGuard with six re-implemented detectors over three seeds (117 training runs). When trained on all seven generators, FreqGuard achieved an area under the receiver operating characteristic curve (AUC) of 99.91%. When trained only on Stable Diffusion v1.5, it achieved 90.85% on six unseen generators (Holm-adjusted P ≤ 0.008), whereas a frozen CLIP ViT-L/14 detector achieved 96.46% at 72 times the computation. Because the real images in this benchmark are JPEG files whereas the generated images are not, we also retrained all detectors on format-balanced images. This reduced the cross-generator AUC of six of eight detectors by 7.7–20.2 points, with FreqGuard seeing the smallest drop and maintaining an AUC of 83.15%, a result that was not statistically significantly different from that of CLIP ViT-L/14 (85.58%). Selecting the decision threshold on only 20 real and 20 fake images of the target generator raised the accuracy of FreqGuard from 70.4% to 85.1%. No detector transferred reliably to two unrelated datasets.
Authors
- Srilakshmi Cherukuri
- P Swetha Nagasri
- Chitturi Venkata Anupama
Institutions
- Malla Reddy Vishwavidyapeeth (IN)
- Koneru Lakshmaiah Education Foundation (IN)
Publication Details
- Journal
- Research Square
- Published
- 2026-11-30
- DOI
- https://doi.org/10.21203/rs.3.rs-11606029/v1
- Primary Topic
- Digital Media Forensic Detection
- Type
- preprint