Abstract
New advancements for the detection of synthetic images are critical for fighting disinformation, as the capabilities of generative AI models continuously evolve and can lead to hyper-realistic synthetic imagery at unprecedented scale and speed. In this paper, we focus on the challenge of generalizing across different concept classes, e.g., when training a detector on human faces and testing on synthetic animal images—highlighting the ineffectiveness of existing approaches that randomly sample generated images to train their models. By contrast, we propose an approach based on the premise that the robustness of the detector can be enhanced by training it on realistic synthetic images that are selected based on their quality scores according to a probabilistic quality estimation model. We demonstrate the effectiveness of the proposed approach by conducting experiments with generated images from two seminal architectures, StyleGAN2 and Latent Diffusion, and using three different concepts for each, so as to measure the cross-concept generalization ability. Our results show that our quality-based sampling method leads to higher detection performance for nearly all concepts, improving the overall effectiveness of the synthetic image detectors.
Introduction
As generative AI models such as StyleGAN and Stable Diffusion become increasingly sophisticated, the ability to produce hyper-realistic synthetic imagery has outpaced our ability to reliably detect it. A significant hurdle in the field of synthetic image detection is the "generalization gap." While much research has focused on cross-architecture generalization (detecting images from a model the detector has never seen), this paper addresses the critical but understudied issue of cross-concept generalization.
Cross-concept generalization refers to the ability of a detector trained on one category of images (e.g., human faces) to accurately identify synthetic images from an entirely different category (e.g., animals or landscapes). Current detectors often fail this test because they "overfit" to the specific semantic features of the training category—learning to identify fake faces by looking for glitches in eyes or skin texture—rather than identifying the underlying "fingerprint" of the generative process itself.
The Proposed Methodology: Quality-Based Sampling
The authors propose that the key to achieving robust generalization lies in the selection of training data. Standard practices involve random sampling of synthetic images, which often includes low-quality examples with obvious visual flaws. These "easy" examples allow the detector to succeed during training without ever learning the subtle, invariant artifacts characteristic of the generator.
To combat this, the paper introduces a Quality Calculation (QC) score strategy:
- Modeling "Realness": A Gaussian Mixture Model (GMM) is trained on features extracted from a large corpus of real images to define a high-quality natural image distribution.
- Ranking Synthetic Images: Synthetic images are passed through this GMM. Those that align closely with the real distribution receive a high QC score, marking them as highly realistic.
- Top-k Selection: The detector (a ResNet-50 architecture) is trained exclusively on the top-$k$ highest-quality synthetic images.
By training on the "hardest" examples—fakes that are nearly indistinguishable from real images—the neural network is forced to ignore obvious category-specific glitches and instead identify the subtle spectral or structural signatures left behind by the generative architecture.
Experimental Setup and Datasets
The study utilized several standard benchmarks to represent diverse concepts:
- FFHQ: Human faces.
- AFHQ: Animals (dogs, cats, and wildlife).
- LSUN: Architectural and interior categories (Churches and Bedrooms).
Images were synthesized using two distinct generative frameworks: StyleGAN2 (representing Generative Adversarial Networks) and Latent Diffusion (representing modern diffusion-based models).
Key Insights
Artifact Invariance
High-quality synthetic images share a common "noise" or spectral signature characteristic of the generator, regardless of the image's subject matter. Fourier Transform analysis reveals that high-quality fakes have magnitude spectrograms very similar to real images. Training on these high-fidelity samples requires the model to look deeper into the data to find discrepancies that persist across different concepts.
Performance Gains
The proposed method consistently outperformed random sampling in cross-concept scenarios:
- StyleGAN2: When trained on human faces and tested on animals, the Area Under the Curve (AUC) improved from 89.1% to 94.8%.
- Latent Diffusion: Training on human faces and testing on bedroom scenes saw a significant jump from 64.4% to 74.1%.
- Stability: Quality-based sampling not only improved accuracy but also led to more stable training cycles with lower standard deviation across experimental runs.
Conclusion and Future Work
This research demonstrates that selective training on high-quality synthetic samples is a powerful strategy for bridging the cross-concept generalization gap. By forcing detectors to focus on the most realistic examples, they become less dependent on semantic cues and more attuned to the fundamental artifacts of generative models.
While this method significantly improves cross-concept detection, the cross-architecture problem remains a challenge; a detector trained on StyleGAN still faces difficulties when identifying images from Latent Diffusion. Future work will explore frequency-based detection methods and model ensembles to further enhance the robustness of synthetic image detection across both varying concepts and evolving generative architectures.
Summary updated